sparrow-wifi
sparrow-wifi copied to clipboard
qtchart error
I get this error: File "sparrow-wifi.py", line 37, in
I'm using debian stretch. I followed the read me. I'm running sparrow-wifi.py as sudoer.
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 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 "
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.
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
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
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 =)