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.78k stars 6.31k forks source link

Question: how to fix "ModuleNotFoundError: No module named 'libs.resources' " #510

Closed javadba closed 5 years ago

javadba commented 5 years ago

I am trying to run python labelImg.py

and it gives the error message in the title

ModuleNotFoundError: No module named 'libs.resources'

What is supposed to be done? I am on MacOs Mojave and using PyQt5

yuta-imai commented 5 years ago

@javadba I also ran into the same issue, using Mac and MyQt5, and I could fix the issue with referring to https://github.com/tzutalin/labelImg/issues/475

javadba commented 5 years ago

Thx v much for that reference. The following band-aid from that issue fixed for me:

pyrcc5 -o libs/resources.py resources.qrc

harbidel commented 4 years ago

Mine still not working, this is what have been getting; Traceback (most recent call last): File "labelImg.py", line 30, in from libs.resources import * ModuleNotFoundError: No module named 'libs.resources'

am using windows 10

harbidel commented 4 years ago

Thanks have been able to solve the error on windows, i used pypl pip install labelImg on cmd run labelImg boom... it runs

suresh88 commented 4 years ago

I have the same issue. I am using Ubuntu and this is my trace back:

Traceback (most recent call last): File "labelImg.py", line 30, in from libs.resources import * ModuleNotFoundError: No module named 'libs.resources'.

Any help will be greatly appreciated.

trinhthanhhoakg commented 4 years ago

Tks mọi người em đã thử nhiều cách và đã cài được python3 download labelImg -> pip3 install lebelImg -> python labelImg.py -> bị lỗi "ModuleNotFoundError: No module named 'libs.resources'"-> pyrcc5 -o libs/resources.py resources.qrc -> python labelImg.py -> ok :D :D

78-t0b1 commented 4 years ago

Thanx @trinhthanhhoakg. It works perfectly. For my English speaking friends. It's like follows.

jiapei100 commented 4 years ago

@78-t0b1 Thanks .... working now...

ashish23jan commented 4 years ago

Thanx @trinhthanhhoakg. It works perfectly. For my English speaking friends. It's like follows.

  • You should have python3.
  • clone git@github.com:tzutalin/labelImg.git -> pip3 install lebelImg -> Go to cloned project folder -> python labelImg.py If it works you are good to go.
  • Else you will get error *Traceback (most recent call last): File "labelImg.py", line 30, in from libs.resources import ModuleNotFoundError: No module named 'libs.resources'**
  • Then execute "pyrcc5 -o libs/resources.py resources.qrc" OR "pyrcc5 -o libs/resources.py resources.qrc OR both."
  • Again try "python labelImg.py"

Working fine ....thank you

Aarshiya1 commented 3 years ago

i am getting this issue a lot. how can i solve this. Traceback (most recent call last): File "labelImg.py", line 30, in from libs.resources import * ModuleNotFoundError: No module named 'libs.resources'

i am using windows 10. help needed

tzutalin commented 3 years ago

i am getting this issue a lot. how can i solve this. Traceback (most recent call last): File "labelImg.py", line 30, in from libs.resources import * ModuleNotFoundError: No module named 'libs.resources'

i am using windows 10. help needed

Do you run ? 'pyrcc5 -o libs/resources.py resources.qrc' or 'make qt5py3'

xelandar commented 3 years ago

Thanks have been able to solve the error on windows, i used pypl pip install labelImg on cmd run labelImg boom... it runs

This one worked for me.

You just run in command prompt pip install labelImg and labelImg after that. labelImg opens!

Aarshiya1 commented 3 years ago

i am getting this issue a lot. how can i solve this. Traceback (most recent call last): File "labelImg.py", line 30, in from libs.resources import * ModuleNotFoundError: No module named 'libs.resources' i am using windows 10. help needed

Do you run ? 'pyrcc5 -o libs/resources.py resources.qrc' or 'make qt5py3'

yes i run that but still it says the module not found. i tried installing pypI but it says could not find the version that statisfies the packages. what should i do?

alfavat commented 3 years ago

just copy the resources.py file to libs filder

infokiftikhar commented 3 years ago

@javadba I also ran into the same issue, using Mac and MyQt5, and I could fix the issue by referring to #475

Thank you so much. It works for me. The issue was I was misspelling this "pyrcc5 -o libs/resources.py resources.qrc".

StankovskiA commented 3 years ago

Thx v much for that reference. The following band-aid from that issue fixed for me:

pyrcc5 -o libs/resources.py resources.qrc

No idea what this does, but it works :)

hyn34 commented 3 years ago

Tks mọi người em đã thử nhiều cách và đã cài được python3 download labelImg -> pip3 install lebelImg -> python labelImg.py -> bị lỗi "ModuleNotFoundError: No module named 'libs.resources'"-> pyrcc5 -o libs/resources.py resources.qrc -> python labelImg.py -> ok :D :D

Thanks! Good! Now it works well!

hyn34 commented 3 years ago

Tks mọi người em đã thử nhiều cách và đã cài được python3 download labelImg -> pip3 install lebelImg -> python labelImg.py -> bị lỗi "ModuleNotFoundError: No module named 'libs.resources'"-> pyrcc5 -o libs/resources.py resources.qrc -> python labelImg.py -> ok :D :D

Thanks!

RAravindDS commented 2 years ago

pyrcc5 -o libs/resources.py resources.qrc

Thankyou so much worked for me

kwlaial commented 2 years ago

Reminded that you are in labelImg directory before you run pyrcc5 -o libs/resources.py resources.qrc and python labelImg.py i.e. cd labelImg

image

IndeeraWE commented 2 years ago

pyrcc5 -o libs/resources.py resources.qrc 'pyrcc5' is not recognized as an internal or external command, operable program or batch file. help me windows 10

mostafa-orban commented 1 year ago

Thanks have been able to solve the error on windows, i used pypl pip install labelImg on cmd run labelImg boom... it runs

This one worked for me.

You just run in command prompt pip install labelImg and labelImg after that. labelImg opens!

it works for me windows 10 besides only one comment dont run labellmg py file after > > pip install labelImg on cmd just write labellmg in the cmd it will open sucessfully

subhendu-majumder commented 1 year ago

For me following solves the error

pip install pyqt5-tools pyrcc5 -o libs/resources.py resources.qrc

Selva-TS-cube commented 1 year ago
  • pyrcc5 -o libs/resources.py resources.qrc

Thank you so much it's working 😍

ibtehajali67 commented 1 year ago

Thx v much for that reference. The following band-aid from that issue fixed for me:

pyrcc5 -o libs/resources.py resources.qrc

thank you its work for me

christina-cyber commented 1 year ago

thank you a lot

harbidel commented 1 year ago