GDGVIT/pip-gui

Better alternative to fix PyQT5.Sip error

Closed this issue · 3 comments

Issue Description

While installing the pipgui(locally) package the following steps were taken

Executed action

The following commands were executed serially

$ virtualenv --python=python3 venv
$ source venv/bin/activate
$ python setup.py build
$ python setup.py install
$ pipgui

Outcome

image

The same thing was happening when installing through pip

$ pip install pipgui

How the issue was fixed

The PyQt5.sip error fixed by fixing the dependency of the following packages in the install_require setting param of setup.py.

The existing install_require now includes packages with the following dependencies :

  • PyQt5==5.10.1
  • sip==4.19.8

This is a temporary fix for now. Searching for an efficient solution for the bug.

Things that did'nt worked

Tried to fix the errors in the following ways

Why the current solution is not good

The method used to solve the error is mentioned here
The above method used is not a long term solution as the mentioned version of the packages may get depreciated in the near future.

Current requirement

Better alternative for fixing the PyQt5.Sip error

Is this still valid?
Having no issues with latest pyqt5

@ujjwal96 I will verify the installation before closing the issue

@ujjwal96 the fix in the PR resolved this issue. This issue no longer exists now.