Giter Site home page Giter Site logo

Comments (3)

adamerose avatar adamerose commented on July 17, 2024

I think you might have a corrupted PyQt5 installation. Can you try just running from PyQt5 import QtWebEngineWidgets? Should be the same error, so it's not related to PandasGUI specifically.

First thing I'd try to fix it is reinstall all PyQt packages:
pip uninstall -y PyQt5 PyQtWebEngine PyQt5-sip
pip install PyQt5 PyQtWebEngine PyQt5-sip

And if that doesn't work what's the output of pip freeze | grep -i pyqt?

from pandasgui.

alessandrobessi avatar alessandrobessi commented on July 17, 2024

@adamerose I have a similar problem related to PyQt5 (I'm on Ubuntu 20.04 too): when I import pandasgui I get ImportError: cannot import name 'sip' from 'PyQt5' (/usr/lib/python3/dist-packages/PyQt5/__init__.py).

I tried to reinstall all PyQt packages, but it did not fix the problem. The output of pip freeze | grep -i pyqt is

PyQt5==5.14.1
PyQt5-sip==12.8.1
PyQtWebEngine==5.14.0

Thanks

from pandasgui.

rohan-paul avatar rohan-paul commented on July 17, 2024

So I finally resolved in Ubuntu 20.04 it as below.

  1. Main reason for my case was, I had broken pyqt5 - so I was not able to uninstall it and also NOT able to install a fresh version of PyQt5.

  2. So finally had to manually delete PyQt5 + PyQt5-sip + PyQtWebEngine respective installed directories from the below three locations.

/usr/lib/python3/dist-packages

/usr/local/lib/python3.8/dist-packages

/home/user_name/.local/lib/python3.8/site-packages
  1. Then install them back with pip install PyQt5 PyQtWebEngine PyQt5-sip

  2. Now, check the installed versions of those packages by running pip freeze | grep -i pyqt

Now got the upgraded and correct package version as below

PyQt5==5.15.1
PyQt5-sip==12.8.1
PyQtWebEngine==5.15.1
  1. Then also had to uninstall pandasgui by running pip uninstall pandasgui and then reinstall it again.

And now pandasgui is running fine.

from pandasgui.

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.