Open shadfien opened 2 years ago
安装labelImage,make all报错
ModuleNotFoundError: No module named 'lxml' ====================================================================== ERROR: test_setInvaleLocaleToEnv_printErrorMsg (test_stringBundle.TestStringBundle) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/autodrive/labelImg/tests/test_stringBundle.py", line 18, in test_setInvaleLocaleToEnv_printErrorMsg prev_lc = os.environ['LC_ALL'] File "/home/autodrive/software/anaconda3/envs/my_pytorch/lib/python3.6/os.py", line 669, in __getitem__ raise KeyError(key) from None KeyError: 'LC_ALL'
安装完lxml,运行make all继续报错
pyrcc5 -o libs/resources.py resources.qrc python3 -m unittest discover tests ...ERemove setting pkl file $/home/autodrive/.labelImgSettings.pkl ...E.. ====================================================================== ERROR: test_noop (test_qt.TestMainWindow) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/autodrive/labelImg/tests/test_qt.py", line 13, in setUp self.app, self.win = get_main_app() File "/home/autodrive/labelImg/labelImg.py", line 1688, in get_main_app args.save_dir) File "/home/autodrive/labelImg/labelImg.py", line 119, in __init__ self.label_dialog = LabelDialog(parent=self, list_item=self.label_hist) File "/home/autodrive/labelImg/libs/labelDialog.py", line 37, in __init__ layout.addWidget(bb, alignment=Qt.AlignmentFlag.AlignLeft) AttributeError: type object 'AlignmentFlag' has no attribute 'AlignLeft' ====================================================================== ERROR: test_setInvaleLocaleToEnv_printErrorMsg (test_stringBundle.TestStringBundle) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/autodrive/labelImg/tests/test_stringBundle.py", line 18, in test_setInvaleLocaleToEnv_printErrorMsg prev_lc = os.environ['LC_ALL'] File "/home/autodrive/software/anaconda3/envs/my_pytorch/lib/python3.6/os.py", line 669, in __getitem__ raise KeyError(key) from None KeyError: 'LC_ALL' ---------------------------------------------------------------------- Ran 10 tests in 0.098s
make qt5py3不报错,但是 运行labelImage.py继续报错,最后发现应该是缺少包,安装sip和Pyqt5,然后直接运行labelImge就行了,不需要make all,或者说是之前运行make qt5py3已经成功了
pip install sip pip install PyQt5
安装labelImage,make all报错
安装完lxml,运行make all继续报错
make qt5py3不报错,但是 运行labelImage.py继续报错,最后发现应该是缺少包,安装sip和Pyqt5,然后直接运行labelImge就行了,不需要make all,或者说是之前运行make qt5py3已经成功了