AssertionError: Missing string id : useDefaultLabel
I just cloned, installed the deps and launched the app. I get this error.
Traceback (most recent call last):
File "labelImg.py", line 1475, in <module>
sys.exit(main())
File "labelImg.py", line 1471, in main
app, _win = get_main_app(sys.argv)
File "labelImg.py", line 1464, in get_main_app
argv[3] if len(argv) >= 4 else None)
File "labelImg.py", line 120, in __init__
self.useDefaultLabelCheckbox = QCheckBox(getStr('useDefaultLabel'))
File "labelImg.py", line 85, in <lambda>
getStr = lambda strId: self.stringBundle.getString(strId)
File "/home/vanangamudi/home/projects/code/cloned/lblimg/libs/stringBundle.py", line 43, in getString
assert(stringId in self.idToMessage), "Missing string id : " + stringId
AssertionError: Missing string id : useDefaultLabel
- Ubuntu 17.10
- PyQt 5.10.1
You probably did the same thing as I did, when encountering the missing package "resources" you installed the pypi package "resources", while you needed to create a resources.py file with the following command in the labelImg root directory.
pyrcc5 resources.qrc -o resources.py
how do you solve it ,I have the same problem
I installed labelImg from Pypi and resulted same. Cloning the repo was fine
I have the same issue on the Mac. I cloned the repo and ran
pyrcc5 -o resources.py resources.qrc
I also moved the resources directory inside the libs and re-run this step, but it still doesn't work.
I am still facing the error I am have tried this in a virtual environment on Arch Linux.
OS: Windows PyQt 5.10.1
I am facing the same problem even after following the above solution!!!
- I cloned the repository.
- Used these commands
pyrcc5 -o libs/resources.py resources.qrcpython labelImg.py - Still error :
labelImg\libs\stringBundle.py", line 47, in get_string assert(string_id in self.id_to_message), "Missing string id : " + string_id AssertionError: Missing string id : useDefaultLabel
File "D:\workspace\pythonproject\TensorflowObjectDetection\TFODCourse\Tensorflow\labelimg\labelImg.py", line 1649, in
I am facing the same problem even after following the above solution!!!
Hi , Try to fetch the latest code. This has been fixed