Labelimg: AssertionError: Missing string id : useDefaultLabel

Created on 25 Mar 2019  路  3Comments  路  Source: tzutalin/labelImg

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

Most helpful comment

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

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings