nicknochnack / TFODCourse

944 stars 919 forks source link

`pyrcc5 -o libs/resources.py resources.qrc` doesn't work #141

Open QMjnh opened 1 year ago

QMjnh commented 1 year ago

while running pyrcc5 -o libs/resources.py resources.qrc, I ran in to this error:

'pyrcc5' is not recognized as an internal or external command, operable program or batch file.

So I looked online and found a solution to give the full directories (here). I changed the code into if os.name =='nt': !cd {LABELIMG_PATH} && D:\python\Scripts\pyrcc5.exe -o D:\python\venv_tf-object-detect\Lib\site-packages\pip\_vendor\distlib\resources.py D:\python\venv_tf-object-detect\labelimg\resources.qrc

but then when running the next cell !cd {LABELIMG_PATH} && python labelImg.py I got this error

Traceback (most recent call last): File "D:\python\venv_tf-object-detect\labelimg\labelImg.py", line 29, in from libs.resources import * ModuleNotFoundError: No module named 'libs.resources'

does anyone know the solution to this? thanks in advance!

JT-Studios commented 8 months ago

Have you solved this issue