You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
I tried running the setup instructions in the README. When i tried running this line in cmd pyrcc4 -o resources.py resources.qrc , i get this error - 'pyrcc4' is not recognized as an internal or external command,operable program or batch file
OS:Windows
PyQt version:PyQt5
Extra Note
I went inside C:\Program Files\Python36\Lib\site-packages\PyQt5 and there are files named pyrcc_main.py, pyrcc.pyd but could not find pyrcc5. Probably this is causing the error. So i tried removing the import resource line from labelImg.py and everything works as expected but I dont know if it would cause some other error or not because I dont see resource being used anywhere in labelImg.py. Would it be a problem if I dont have that resource file?
How do i resolve this issue?
The text was updated successfully, but these errors were encountered:
It is asked to use PyQt4 in the installation section. Get the correct file according to your computer and python version then use pip to install from the downloaded file. The pyrcc4.exe file will be either on the path you mentioned or, like for me, in AppData\Local\Programs\Python\<your python version>\Lib\site-packages\PyQt4 . You'll have this to your path and then you're good to go.
Last edit: if you don't want to install pyqt4 use pyrcc5.exe instead of pyrcc4.exe. It's located here AppData\Roaming\Python\<your python version>\Scripts
for me adding the pyrcc4 path to system environment variables made it work C:\Users\BenBouali\AppData\Local\Programs\Python\Python35\Lib\site-packages\PyQt4
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I tried running the setup instructions in the README. When i tried running this line in cmd
pyrcc4 -o resources.py resources.qrc
, i get this error -'pyrcc4' is not recognized as an internal or external command,operable program or batch file
Extra Note
I went inside C:\Program Files\Python36\Lib\site-packages\PyQt5 and there are files named pyrcc_main.py, pyrcc.pyd but could not find pyrcc5. Probably this is causing the error. So i tried removing the
import resource
line fromlabelImg.py
and everything works as expected but I dont know if it would cause some other error or not because I dont see resource being used anywhere inlabelImg.py
. Would it be a problem if I dont have that resource file?How do i resolve this issue?
The text was updated successfully, but these errors were encountered: