Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Fail to start the program #70

Closed
vitamin opened this issue Mar 16, 2017 · 1 comment
Closed

Fail to start the program #70

vitamin opened this issue Mar 16, 2017 · 1 comment

Comments

@vitamin
Copy link

vitamin commented Mar 16, 2017

use python3 and pyqt5 in mac

brew install pyqt5
pip3 install lxml
brew install libxml2 --force
make qt5py3
python3 labelImg.py

and then

localhost:labelImg didi$ python3 labelImg.py
2017-03-16 16:55:15.129 Python[77604:6980074] *** Assertion failure in -[NSBitmapImageRep initWithCGImage:], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.81.100/AppKit.subproj/NSBitmapImageRep.m:1296
2017-03-16 16:55:15.131 Python[77604:6980074] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: cgImage != NULL'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fffa8a94e7b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00007fffbd67ecad objc_exception_throw + 48
	2   CoreFoundation                      0x00007fffa8a99b82 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x00007fffaa4e3d50 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
	4   AppKit                              0x00007fffa668a112 -[NSBitmapImageRep initWithCGImage:] + 149
	5   QtGui                               0x000000011096679c _Z21qt_mac_create_nsimageRK5QIconi + 748
	6   libqcocoa.dylib                     0x00000001144acb00 qt_plugin_instance + 151216
	7   libqcocoa.dylib                     0x00000001144a9db7 qt_plugin_instance + 139623
	8   QtWidgets                           0x0000000111a59a14 _ZN5QMenu11actionEventEP12QActionEvent + 1380
	9   QtWidgets                           0x000000011191653b _ZN7QWidget5eventEP6QEvent + 299
	10  QtWidgets                           0x0000000111a575d7 _ZN5QMenu5eventEP6QEvent + 1175
	11  QtWidgets                           0x00000001118d5d3d _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 301
	12  QtWidgets                           0x00000001118d70e1 _ZN12QApplication6notifyEP7QObjectP6QEvent + 369
	13  QtWidgets.so                        0x00000001113c0222 _ZN15sipQApplication6notifyEP7QObjectP6QEvent + 114
	14  QtCore                              0x0000000110d70a34 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 164
	15  QtWidgets                           0x000000011190a60f _ZN7QWidget12insertActionEP7QActionS1_ + 367
	16  QtWidgets.so                        0x00000001114d8c42 _ZL20meth_QMenu_addActionP7_objectS0_S0_ + 146
	17  Python                              0x000000010fc4640a _PyCFunction_FastCallDict + 468
	18  Python                              0x000000010fcb116e call_function + 584
	19  Python                              0x000000010fcae110 _PyEval_EvalFrameDefault + 28303
	20  Python                              0x000000010fcb2347 _PyFunction_FastCall + 122
	21  Python                              0x000000010fcb1141 call_function + 539
	22  Python                              0x000000010fcae110 _PyEval_EvalFrameDefault + 28303
	23  Python                              0x000000010fcb1990 _PyEval_EvalCodeWithName + 1978
	24  Python                              0x000000010fcb2295 _PyFunction_FastCallDict + 477
	25  Python                              0x000000010fc0beb3 _PyObject_FastCallDict + 231
	26  Python                              0x000000010fc0bfd3 _PyObject_Call_Prepend + 149
	27  Python                              0x000000010fc0bd0b PyObject_Call + 102
	28  Python                              0x000000010fc5a164 slot_tp_init + 61
	29  Python                              0x000000010fc56f03 type_call + 184
	30  Python                              0x000000010fc0be74 _PyObject_FastCallDict + 168
	31  Python                              0x000000010fcb1007 call_function + 225
	32  Python                              0x000000010fcae110 _PyEval_EvalFrameDefault + 28303
	33  Python                              0x000000010fcb1990 _PyEval_EvalCodeWithName + 1978
	34  Python                              0x000000010fcb20ab fast_function + 241
	35  Python                              0x000000010fcb1141 call_function + 539
	36  Python                              0x000000010fcae110 _PyEval_EvalFrameDefault + 28303
	37  Python                              0x000000010fcb2347 _PyFunction_FastCall + 122
	38  Python                              0x000000010fcb1141 call_function + 539
	39  Python                              0x000000010fcae110 _PyEval_EvalFrameDefault + 28303
	40  Python                              0x000000010fcb1990 _PyEval_EvalCodeWithName + 1978
	41  Python                              0x000000010fca71d8 PyEval_EvalCode + 100
	42  Python                              0x000000010fcd1d82 run_mod + 58
	43  Python                              0x000000010fcd2097 PyRun_FileExFlags + 178
	44  Python                              0x000000010fcd1730 PyRun_SimpleFileExFlags + 676
	45  Python                              0x000000010fce5ea8 Py_Main + 3472
	46  Python                              0x000000010fbfbe17 Python + 7703
	47  libdyld.dylib                       0x00007fffbdf62255 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
@tzutalin
Copy link
Contributor

tzutalin commented May 9, 2017

Duplicate
#71

@tzutalin tzutalin closed this as completed May 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants