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.19k stars 6.23k forks source link

pyrcc5 not recognized #971

Open ewerton-aquino opened 1 year ago

ewerton-aquino commented 1 year ago

pyrcc5 : O termo 'pyrcc5' não é reconhecido como nome de cmdlet, função, arquivo de script ou programa operável. Verifique a grafia do nome ou, se um caminho tiver sido incluído, veja se o caminho está correto e tente novamente. No linha:1 caractere:1

RajatVardam commented 1 year ago

Run this instead of that: pyrcc5 -o resources.py resources.qrc

Make sure you revert back any changes made to the repo. This worked for me.

after that, you will get two files resources.py and resources.qrc. cut paste them into libs folder and run this: python labelImg.py

asifahmed1997bd commented 1 year ago

Try to change the following code with your local setting. F:\labelmg_master\labelImg\venv\Scripts\pyrcc5.exe -o F:\labelmg_master\labelImg\venv\Lib\site-packages\pip\_vendor\distlib\resources.py F:\labelmg_master\labelImg\resources.qrc

asifahmed1997bd commented 1 year ago

Try to change the following code with your local setting. F:\labelmg_master\labelImg\venv\Scripts\pyrcc5.exe -o F:\labelmg_master\labelImg\venv\Lib\site-packages\pip\_vendor\distlib\resources.py F:\labelmg_master\labelImg\resources.qrc

If anyone dont find this "pycrc5.exe" , then try to re install older version. inside a Conda virtual environment reinstalling pyqt=5, worked for me.

Jinder2050 commented 1 year ago

pyrcc5 : O termo 'pyrcc5' não é reconhecido como nome de cmdlet, função, arquivo de script ou programa operável. Verifique a grafia do nome ou, se um caminho tiver sido incluído, veja se o caminho está correto e tente novamente. No linha:1 caractere:1

  • pyrcc5 -o libs/resources.py resources.qrc

  • + CategoryInfo          : ObjectNotFound: (pyrcc5:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
  • OS: Win 10 (PyCharm 2022.2.1 (Community Edition))

  • Python: 3.10.8

  • PyQt version: 5.15.7

Hello, check the folder C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and check if the pyrcc5.exe file is there, it is important that this file exists, finally check the path as in this video -> https://youtu.be/NPML38E6flQ

imagen_2023-03-31_120055779

naveenvj25 commented 1 year ago

Pyrcc5.exe file is not seen along with pip.exe file in Python310\Scripts location. I tried to download PyQt many times. In both methods of downloading steps suggested for Windows (Anconda based and normal way), the error happens at the stage: pyrcc5 -o resources.py resources.qrc. It is because of the missing pyrcc5 file

Jinder2050 commented 1 year ago

Pyrcc5.exe file is not seen along with pip.exe file in Python310\Scripts location. I tried to download PyQt many times. In both methods of downloading steps suggested for Windows (Anconda based and normal way), the error happens at the stage: pyrcc5 -o resources.py resources.qrc. It is because of the missing pyrcc5 file

Did you install python from the web or from the microsoft store? Try installing pip install pyqt5-tools Check your path as in this video https://youtu.be/NPML38E6flQ?t=285, there should be the location of C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\

naveenvj25 commented 1 year ago

Did you install python from the web or from the microsoft store? Try installing pip install pyqt5-tools Check your path as in this video https://youtu.be/NPML38E6flQ?t=285, there should be the location of C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\

Thanks Jinder..! The issues got solved, and now the installation is successful..! The error was in the path, the pyrcc5 file was actually hidden.

capt-amlan-padhi commented 10 months ago

Did you install python from the web or from the microsoft store? Try installing pip install pyqt5-tools Check your path as in this video https://youtu.be/NPML38E6flQ?t=285, there should be the location of C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\

Thanks Jinder..! The issues got solved, and now the installation is successful..! The error was in the path, the pyrcc5 file was actually hidden.

Hi naveen, I too can't find my pyrcc5 file. How to solve it??

naveenvj25 commented 10 months ago

Did you install python from the web or from the microsoft store? Try installing pip install pyqt5-tools Check your path as in this video https://youtu.be/NPML38E6flQ?t=285, there should be the location of C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\

Thanks Jinder..! The issues got solved, and now the installation is successful..! The error was in the path, the pyrcc5 file was actually hidden.

Hi naveen, I too can't find my pyrcc5 file. How to solve it??

Watch the Youtube video suggested above and give the correct location. May be the file is hidden

themeowsketeer commented 9 months ago

Pyrcc5.exe file is not seen along with pip.exe file in Python310\Scripts location. I tried to download PyQt many times. In both methods of downloading steps suggested for Windows (Anconda based and normal way), the error happens at the stage: pyrcc5 -o resources.py resources.qrc. It is because of the missing pyrcc5 file

Did you install python from the web or from the microsoft store? Try installing pip install pyqt5-tools Check your path as in this video https://youtu.be/NPML38E6flQ?t=285, there should be the location of C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\Scripts and C:\Users\YOURUSER\AppData\Local\Programs\Python\Python310\

Hello. I have followed all of the steps but the file is still not recognizable. Any advices on how I should fix this further? the pyrcc5 is there but the prompt does not recognize it.