HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.51k stars 6.27k forks source link

No module named 'sip' #606

Open alam-haha opened 4 years ago

alam-haha commented 4 years ago

I have tried twice to install PyQt5 5.15.0 and lxml 4.5.1 . First install was on raspbery pi 4 in Raspberry Pi OS. Second install was on macOS Catalina 10.15.15.

but both device give me same error

   ModuleNotFoundError: No module named 'sip'

I have tried install 'sip' but the program still have same error

monschine commented 4 years ago

same here

kalfasyan commented 4 years ago

same problem

hnsywangxin commented 4 years ago

I used pip3 install pyqt5 lxml to solve it

MatthewPattell commented 4 years ago

If you use pipenv for install pyqt5 lxml: Run: pipenv python3 labelImg.py

fahadchauhan commented 3 years ago

I used pip3 install pyqt5 lxml to solve it

this solved my issue, thanks.

Digiraf commented 3 years ago

in my case on osx Catalina the issue is solved by reinstalling python. brew reinstall python

yuis-ice commented 3 years ago

same issue here. pip3 install pyqt5 lxml didn't work for me. I certainly have installed the requirements yet the error No module, weird. perhaps because I use pyenv??

edit

It was pyenv. I thought maybe this was because the library's mysterious bug but actually it was just pyenv's misconfiguration.

leviresende commented 3 years ago

I had the same problem, however, I found out how to solve that. First of all, I'm using pyenv under Ubuntu 18.04. To fix my problem I just had changed the command of the requirements to:

pip3 install -r requirements/requirements-linux-python3.txt

Once I'm interested to install the requirements in my specific env, and not in the root.

ghost commented 3 years ago

I had the same issue (using Mac) and none of the shared solutions here helped me to solve this problem.

Instead I was able to solve it by doing these steps:

Installation and configuration Also note that labelImg is a cross-platform application. For example, for MacOS, the following actions are required on the command line:

Install dependencies: 1) brew install qt, 2) brew install libxml2 3) Select the location of the folder to install. 4) When you are in the folder, run the following: git clone https://github.com/tzutalin/labelImg.git, 5) cd labelImg 6) and then make qt5py3 7) Run labelImg: python3 labelImg.py

I hope this helps to some of you. (Source: https://dida.do/blog/the-best-labeling-tools-for-computer-vision)

ghost commented 2 years ago

sudo apt install python3-sip

natasha-savic-msft commented 2 years ago

What helped me (using a venv) was: pipenv run python labelImg.py . If you dont include "run", pipenv will not recognise python to execute the script.

Kuo-TingKai commented 2 years ago

我曾經pip3 install pyqt5 lxml解決它

I successfully eliminated the error message that occurred in wrapping PyQt5 code to the executable. Thanks!

Nahid180 commented 2 years ago

I solved it by upgrading pip and pyqt5. I used this commands: python3 -m pip install --upgrade pip python3 -m pip install --upgrade pyqt5 make qt5py3

Hope it will help.

tahreemkhann commented 2 years ago

I used pip3 install pyqt5 lxml to solve it

I tried "pipenv install pyqt5 lxml" and it worked for me, thank you.

jancicS commented 1 year ago

The solution for me was: 1) download sip from their website: https://www.riverbankcomputing.com/software/sip/download 2) Then go to Terminal and navigate to unzipped folder and run: 'python configure.py' 3) After completed configuration run: 'make && sudo make install' 4) After SIP is installed you can check it with: 'which sip' for location and 'sip -V' for sip version I'm using macOS Monterey 12.6.3