New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: No module named 'PyQt5.QtChart' #1
Comments
Hi fe8769a. Hmmm, sounds like it's not finding PyQtChart. Just to double-check if you do an apt search do you have python3-pyqt5 installed? does 'pip3 search PyQtChart' show a version installed? Just for good measure, what OS are you running on? I checked on both my Ubuntu and Kali/Debian test systems and both report back like this: |
here is the result os is xubuntu 64 xfce |
We should be able to figure this out. Sounds like python and QT5/QChart are crossed somewhere so we just have to find the difference. So a couple things to try... do an 'ls -l /usr/bin/python3*' and see what comes back. I've seen similar issues with multiple versions of python installed (python3 points one place and python3.5 points another so the pip3 didn't install the packages in the correct dist location). Here's mine on Ubuntu 16.04: The other thing to make troubleshooting quicker is you can just go 'python3' on the command-line and see if it'll even just let you do the import: 'from PyQt5.QtChart import QChart'. It'll either work or fail right there. I've also heard of errors if there's an issue in QtCore. Try a 'pip3 search pyqt5'. Here's what mine shows as installed: Searching with apt I also have these python3-pyqt5 packages installed there. |
That sound not easy to solve . here is the result of pip3 search pyqt5 👍 vext.pyqt5 (0.5.21) - Use system pyqt5 from a virtualenv |
Looks like you have the same things there. Let's try the import in a couple of python variations and see if we can figure out if it maybe didn't put it in all the distro's. From a command-line type 'python3.5'. You should get a python interactive command prompt. type 'from PyQt5.QtChart import QChart' and see if it throws the same error (On Ubuntu 16.04 python 3.5 is the version it's installed but it's possible the python3 symlink may not be correct, this'll be a quick test). |
here is the result Python 3.5.2 (default, Sep 14 2017, 22:51:06)
|
Lets try forcing a reset... sudo apt-get install --reinstall python3-pyqt5 |
sudo apt-get install --reinstall python3-pyqt5 worked fine except error message on pip3 version said it is 8.11 sould be 9.0.1 and still not working sudo ./sparrow-wifi.py very strange |
This fixed a QT5 widgets issue in another project... see if this helps: sudo apt-get install qt5-default |
Tried it on a fresh Ubuntu 16.04.3 install and there were a couple items that seem unrelated that I added to the install instructions. See if these help at all too. sudo apt-get install python3-tk |
I can't install a fresh ubuntu 16 , to much work on this linux to configure Same error with previous line to install |
I'm with you I hate having to rebuild or try a clean version. I'd prefer to fix whatever's going on. Just to see if it's something unique to that system, it may be worth rather than reloading, trying a fresh XUbuntu in a virtual machine (VMWare, virtual box, etc.). Do a quick base VM, nothing fancy, install the prerequisites and see if it works there. That way you don't have to disrupt that system at all. |
Will do if I have some time left ..
2017-11-29 19:18 GMT+01:00 ghostop14 <notifications@github.com>:
… I'm with you I hate having to rebuild or try a clean version. I'd prefer
to fix whatever's going on. Just to see if it's something unique to that
system, it may be worth rather than reloading, trying a fresh XUbuntu in a
virtual machine (VMWare, virtual box, etc.). Do a quick base VM, nothing
fancy, install the prerequisites and see if it works there. That way you
don't have to disrupt that system at all.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgDR1z86lO963vINgMM5UMFtarAsDjo_ks5s7Z_ngaJpZM4QpODM>
.
--
|
Debian Stretch |
Have you solved this issue? I have the same issue with you. |
Have you solved this issue? I have the same issue with you. PyQT5 demo working well . I use but get |
I can't reproduce the problem, so my suspicion is it's a fundamental Python issue on that system. I've tested it on Ubuntu 16, Kali linux, and a straight Debian 9, and everything seems to work fine from a standard OS installation. |
After a day and night. I have solve my issue.
I get both version string is 5.5.0. But I have check the pip3 list ,It has Following is : Install PyQT5/SIP for Py27 and Py35. Thay are all supported. #For Py35 or later version: #For Py27: (no pip whl support. manual build sip and pyqt5, and not support PyQtChart)
"python27-sip"
"PyQt5-sip".
following step will check "python27-sip" and system sip version first. manual chaeck run:
|
Excellent! It did seem like a local config issue. Hopefully that solution helps others. |
I use pip to install PyQt5 for Python3.6, which turns out it also doesn't include QtChart. python3 -m pip install PyQt5==5.13.1 |
Thanks mate, you're my hero ^^ |
this worked for me pip install PyQtChart==5.13.1 |
Digite no terminal: |
Me funcionó , ya tenía instalado el PyQt5; solamente faltaba esta librería, gracias por la ayuda @pavan555 . |
pip install PyQtChart |
running sudo ./sparrow-wifi.py
Traceback (most recent call last):
File "./sparrow-wifi.py", line 37, in
from PyQt5.QtChart import QChart, QChartView, QLineSeries, QValueAxis
ImportError: No module named 'PyQt5.QtChart'
command lines
sudo apt-get install python3-pip gpsd gpsd-clients
sudo pip3 install QScintilla PyQtChart gps3 dronekit manuf python-dateutil
have been done
The text was updated successfully, but these errors were encountered: