Code Monkey home page Code Monkey logo

Comments (5)

JoshOxford avatar JoshOxford commented on July 28, 2024 1

I assume you are using a virtualenv if so:

The issue is likely due to running the script as root the the virtualenv environment variables, aliases, functions, etc aren't being carried over.

Fix: When you run the script tell it to use the path to the virtualenv e.g. sudo /home/user/sparrow/bin/python3 sparrow-wifi.py

from sparrow-wifi.

ghostop14 avatar ghostop14 commented on July 28, 2024

Sounds like something is up with your pyqtchart install. Give this a shot and see what it says: "pip3 search pyqtchart".

You should get a response something like:
PyQtChart (5.12) - Python bindings for the Qt Charts library
INSTALLED: 5.12 (latest)

If it's installed correctly, from a command line you should be able to just simply do "python3" then type "from PyQt5.QtChart import QChart", or even more generically (just for testing) try "import PyQt5.QtChart". If you get any errors, sounds like some local install troubleshooting.

from sparrow-wifi.

awesome14 avatar awesome14 commented on July 28, 2024

From the first command I get: "PyQtChart (5.13.0) - Python bindings for the Qt Charts library"

From the second commands I get: Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'PyQt5.QtChart'

I can look into it, but I thought you should be aware of it. If you have a one-liner to solve it, let me know.

from sparrow-wifi.

rikosintie avatar rikosintie commented on July 28, 2024

Thanks Josh, This solved it for me:
Fix: When you run the script tell it to use the path to the virtualenv e.g. sudo /home/user/sparrow/bin/python3 sparrow-wifi.py

from sparrow-wifi.

stryngs avatar stryngs commented on July 28, 2024

Thanks Josh, This solved it for me:
Fix: When you run the script tell it to use the path to the virtualenv e.g. sudo /home/user/sparrow/bin/python3 sparrow-wifi.py

Close this =)

from sparrow-wifi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.