Giter Site home page Giter Site logo

In Ubuntu 20.04 - Getting error - cannot import name 'sip' from 'PyQt5' (/usr/lib/python3/dist-packages/PyQt5/__init__.py) about pandasgui HOT 2 CLOSED

adamerose avatar adamerose commented on July 17, 2024 1
In Ubuntu 20.04 - Getting error - cannot import name 'sip' from 'PyQt5' (/usr/lib/python3/dist-packages/PyQt5/__init__.py)

from pandasgui.

Comments (2)

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

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.

adamerose avatar adamerose commented on July 17, 2024

Weird, looks like you don't have PyQt5-sip installed even though it says it's a dependency of PyQt5 which you do have. Maybe I'll explicitly add it to setup.py.

I noticed you posted a 2nd issue with a different error, does that mean you fixed this one?

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.