-
Notifications
You must be signed in to change notification settings - Fork 233
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
from PyQt5 import QtWebEngineWidgets: "ImportError" #56
Comments
This thread looks relevant: https://stackoverflow.com/questions/63186438/pyside2-installation-problem-on-ubuntu18-04-python-3-8-3-on-anaconda I get a lot of issues like this about broken PyQt5 installations across various environments (often Linux and anaconda), not sure if there's anything I can do on pandasgui end to remedy this though... I just have PyQt5 and PyQtWebEngine as dependencies that get installed through pip along with pandasgui
I don't think so, I try to be as backward compatible as possible. And your error message doesn't seem like something related to version incompatibility, more like a failed install. What version do you have? |
I'm having a perhaps similar failure. I am trying to pip install pandasgui in a docker container from juypter: tried uninstalling and reinstalling PyQT5 using above steps within the container, no luck.
|
Yeah. I checked the requirements for PyQt5 and it should be >= 5.15 and I have 5.15.1. So it should work. |
I'm not sure I am of the pay grade to debug this, but even running this 'Hello World' pyqt5 app in a python 3 console in my conda docker enviroment seems to core dump python. Although, I am just guessing that, as I do not know how to find the juypter output or log:
result:
|
Hey did you find a fix? |
Reduce the version of PyQt to 5.12.1 and pip install PyQtWebEngine==5.12.1, arise other problem, pandasgui no response |
same issue here, trying to run pandasgui from within jupyter. tried installing libgtk2.0-dev, libgl1-mesa-glx, libnss3, libxtst6, & libxkbcommon-x11-0. Now I'm getting an error about the x11 server. is there a reason why pyqt5 isn't installing these modules when it is installed? |
Not sure which modules you mean, the dependencies for PandasGUI include these:
Everyone in this thread seems to have those installed but they fail to work properly. I'm not sure what went wrong with the installation and many people have different errors. If you are unable to run |
I believe my error is now related to pynput and there's an issue with the x-server installed. I'll have to look at the error and get back to you. In regards to my question, I was asking why PyQt5 wouldn't automatically install libgtk2.0-dev, libgl1-mesa-glx, libnss3, libxtst6, & libxkbcommon-x11-0 as I had to install those manually myself. |
I downgraded PyQt to 5.12.1 and pip install PyQtWebEngine==5.12.1. It sorta worked on Jupiter but it kills the kernel I tried it on PyCharm on Linux Mint and it works perfect 👍 |
After upgrading anaconda spyder to 4.1.5, it is failed to import pandasgui. The error is reported as
And I have found a issue related to pyqt5, something similar to the error here: https://stackoverflow.com/questions/55794101/valueerrorpycapsule-getpointer-called-with-incorrect-name-with-from-pyqt5-qtwe Being afraid to cause unstability to the spyder, I haven't tried it. |
Try uninstalling all of the PyQt packages and re-install using pip3
Packages being mixed up between pip1-3 installers causes problems |
Has a fix for this been provided yet? I currently still have this issue on Spyder 4.2.5, I've tried downgrading my Spyder to different versions but I still can't get it to work. The dependency versions never seem to be compatible when I try to install the correct version. "from PyQt5 import QtWebEngineWidgets This is just one of the different errors I run when trying to use the show command on Spyder. I've tried a different combination of the dependency versions and still run into different error messages/issues. |
The solution: pip uninstall PyQtWebEngine |
Sorry, but this solution doesn't works. I still have the issue. I use Python 3.8 and Elementary OS. |
I have tried to downgrade pyqt5 to 5.12. Then this issue disappears, but pandasqui still doesn't run. I got an Exit(1) failure.... |
This is the output by change 5.15 to 5.12: |
I have been changed to debian, but with this distribution I got the same issue. Maybe this could be an hardware problem? |
I had the same issue. Ubuntu 20.04LTS. |
@gatjaipur looks like I needed a few different "uninstall/install"s from https://stackoverflow.com/questions/51154871/python-3-7-0-no-module-named-pyqt5-qtwebenginewidgets # install latest python version for your operating system, then
# upgrade pip:
pip install --upgrade pip
# uninstall everything
pip uninstall PyQt5
pip uninstall PyQt5-sip
pip uninstall PyQtWebEngine
# install everything
pip install PyQt5
pip install PyQt5-sip
pip install PyQtWebEngine I tried quite a bit of everything, until the above worked. I was able to get it to run in a conda environment, running a jupyter notebook: conda create -n "plots" python=3.9.15 ipython
conda install jupyter
pip install pandasgui
pip uninstall PyQt5
pip uninstall PyQt5-sip
pip uninstall PyQtWebEngine
pip install PyQt5
pip install PyQt5-sip
pip install PyQtWebEngine
jupyter notebook I tried installing it with conda, but got a similar error, removed it via conda and added it via pip then did the above steps. I'm sure there is a similar way to correct it for conda? For Future Ref: error messages I saw from jupyter notebook:
and
when trying to do:
|
I encounter the issue today, not quite into the details of all these script. But I here proposed a method at least you can try before you can go in to all the code provided above. I am using conda on ubuntu . My "spyder" command actually refers to the "base" virtual environment, even i start spyder in a virtual environment. So first step is to make sure in which environment is your problematic spyder. then, using the following command to check your current installed python package uninstall all packages related to pyqt, spyder... (there may be some suffix in the word pyqt and spyder) After removal, install spyer by command Then it should work. |
Doing this in python3.8 virtual env worked in vs code |
Hi,
I installed
pandasgui
usingpip
and it installed the library but I got the following error:I am using the package in an anaconda environment with python 3.8. Is there any specific version of
PyQt5
that I need to install?The text was updated successfully, but these errors were encountered: