Failure run labelImg on Windows

3.6k Views Asked by At

labelImg command gives me the following error on my installation and I am unable to figure out a fix for the problem.

OS: Windows PyQt version: PyQt5 Python version: 3.7

Traceback (most recent call last):
  File "labelImg.py", line 1649, in <module>
    sys.exit(main())
  File "labelImg.py", line 1645, in main
    app, _win = get_main_app(sys.argv)
  File "labelImg.py", line 1638, in get_main_app
    args.save_dir)
  File "labelImg.py", line 124, in __init__
    self.use_default_label_checkbox = QCheckBox(get_str('useDefaultLabel'))
  File "labelImg.py", line 87, in <lambda>
    get_str = lambda str_id: self.string_bundle.get_string(str_id)
  File "D:\Study\LV\rice_payment_support\venv\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

Thanks for your help

2

There are 2 best solutions below

1
Dhel Pino On BEST ANSWER

I just followed this links installation for labelImg https://blog.roboflow.com/labelimg/

from the terminal install labelImg

>pip3 install labelImg

then run

>labelImg
0
PrayogaBoedihartoyo On

i just spend 2 days for solved this issue.. and how i solve this issue just update microsoft store..

i know thats crazy but its work.

OS : Windows 11

Python : Python3.7

anaconda