when I run it like that:
$make qt4py2
pyrcc4 -py2 -o resources.py resources.qrc
$python labelImg.py
Segmentation fault: 11
same issue here!
Hey @huary, @suessmann, this worked for me:
brew install qt # will install qt-5.x.x
brew install libxml2
make qt5py3
python labelImg.py
python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
it doesn't work for me.... it is like ...
Traceback (most recent call last):
File "labelImg.py", line 35, in
from libs.stringBundle import StringBundle
File "/Users/10652029/Documents/work_object_detection/labelImg/libs/stringBundle.py", line 18, in
DEFAULT_LOCALE = locale.getlocale()[0] if locale.getlocale() and len(locale.getlocale()) > 0 else os.getenv('LANG')
File "/anaconda3/lib/python3.6/locale.py", line 581, in getlocale
return _parse_localename(localename)
File "/anaconda3/lib/python3.6/locale.py", line 490, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8
@kuabhish
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
before running labelImg
@kuabhish
Fixed your problem on d27e6a5
Thank you so much .. @duchengyao and @tzutalin .. it works :)..
Hi, when I try to run this on my mac I get this error
File "/Users/maharshichattopadhyay/Downloads/labelImg-master/labelImg.py", line 29, in
import resources
ImportError: No module named resources
Most helpful comment
Hey @huary, @suessmann, this worked for me:
Python 3 + Qt5 (Works on macOS High Sierra)