작성
·
527
0
셀렉트 파일 할 때 누르자마자 오류가 납니다.
filedialog.askopenfilename(....) 에서 에러가 나는데
어떻게 해결해야 하나요?
2022-02-03 16:51:24.097 python[86373:5864365] *** Assertion failure in -[NSOpenPanel beginServicePanel:asyncExHandler:], NSVBOpenAndSavePanels.m:1907
2022-02-03 16:51:24.102 python[86373:5864365] -[NSSavePanel beginWithCompletionHandler:]_block_invoke caught non-fatal NSInternalInconsistencyException '<NSOpenPanel: 0x7fc3eff05e80> is attempting to advance this Open/Save panel to run phase while another self.advanceToRunPhaseCompletionHandler is in waiting for a previous attempt. An Open/Save panel cannot start to advance more than once.' with user dictionary {
NSAssertFile = "NSVBOpenAndSavePanels.m";
NSAssertLine = 1907;
} and backtrace (
0 CoreFoundation 0x00007ff81e8c262b __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff81e624dce objc_exception_throw + 48
2 Foundation 0x00007ff81f6a0653 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 267
3 AppKit 0x00007ff821ba3269 -[NSSavePanel beginServicePanel:asyncExHandler:] + 475
4 AppKit 0x00007ff821ba451d -[NSSavePanel runModal] + 297
5 libtk8.6.dylib 0x000000011dfcc003 showOpenSavePanel + 195
6 libtk8.6.dylib 0x000000011dfcb67d Tk_GetOpenFileObjCmd + 2205
7 libtcl8.6.dylib 0x000000011d9aa0d2 Tcl_EvalObjv + 370
8 _tkinter.cpython-37m-darwin.so 0x000000011cfc8890 Tkapp_Call + 480
9 python3.7 0x0000000102fd94f2 PyCFunction_Call + 402
10 python3.7 0x00000001030dd8fb _PyEval_EvalFrameDefault + 31179
11 python3.7 0x00000001030d5915 _PyEval_EvalCodeWithName + 3269
12 python3.7 0x0000000102fd8d23 _PyFunction_FastCallKeywords + 227
13 python3.7 0x00000001030e156f call_function + 735
14 python3.7 0x00000001030dd508 _PyEval_EvalFrameDefault + 30168
15 python3.7 0x00000001030d5915 _PyEval_EvalCodeWithName + 3269
16 python3.7 0x0000000102fd8d23 _PyFunction_FastCallKeywords + 227
17 python3.7 0x00000001030e156f call_function + 735
18 python3.7 0x00000001030dd658 _PyEval_EvalFrameDefault + 30504
19 python3.7 0x0000000102fd87b9 function_code_fastcall + 233
20 python3.7 0x00000001030e156f call_function + 735
21 python3.7 0x00000001030dd5b2 _PyEval_EvalFrameDefault + 30338
22 python3.7 0x0000000102fd87b9 function_code_fastcall + 233
23 python3.7 0x00000001030dd810 _PyEval_EvalFrameDefault + 30944
24 python3.7 0x00000001030d5915 _PyEval_EvalCodeWithName + 3269
25 python3.7 0x0000000102fd7f71 _PyFunction_FastCallDict + 945
26 python3.7 0x0000000102fdb3b3 method_call + 195
27 python3.7 0x0000000102fd92a1 PyObject_Call + 241
28 _tkinter.cpython-37m-darwin.so 0x000000011cfcb26d PythonCmd + 221
29 libtcl8.6.dylib 0x000000011d9ac672 TclEvalObjEx + 130
30 libtk8.6.dylib 0x000000011df2e632 ButtonWidgetObjCmd + 834
31 libtcl8.6.dylib 0x000000011d9aa0d2 Tcl_EvalObjv + 370
32 libtcl8.6.dylib 0x000000011d9ab9cb TclEvalEx + 2795
33 libtcl8.6.dylib 0x000000011d9aaeda Tcl_EvalEx + 26
34 libtk8.6.dylib 0x000000011def8e75 Tk_BindEvent + 6805
35 libtk8.6.dylib 0x000000011df005a8 TkBindEventProc + 360
36 libtk8.6.dylib 0x000000011df0859f Tk_HandleEvent + 879
37 libtk8.6.dylib 0x000000011df08bc4 WindowEventProc + 100
38 libtcl8.6.dylib 0x000000011da69a3c Tcl_ServiceEvent + 156
39 libtcl8.6.dylib 0x000000011da69d18 Tcl_DoOneEvent + 376
40 _tkinter.cpython-37m-darwin.so 0x000000011cfcaa36 _tkinter_tkapp_mainloop + 278
41 python3.7 0x0000000102fd8fc6 _PyMethodDef_RawFastCallKeywords + 646
42 python3.7 0x0000000102fe35e8 _PyMethodDescr_FastCallKeywords + 88
43 python3.7 0x00000001030e1595 call_function + 773
44 python3.7 0x00000001030dd508 _PyEval_EvalFrameDefault + 30168
45 python3.7 0x00000001030d5915 _PyEval_EvalCodeWithName + 3269
46 python3.7 0x0000000102fd8d23 _PyFunction_FastCallKeywords + 227
47 python3.7 0x00000001030e156f call_function + 735
48 python3.7 0x00000001030dd522 _PyEval_EvalFrameDefault + 30194
49 python3.7 0x00000001030d5915 _PyEval_EvalCodeWithName + 3269
50 python3.7 0x0000000103126bd4 PyRun_FileExFlags + 244
51 python3.7 0x0000000103126185 PyRun_SimpleFileExFlags + 469
52 python3.7 0x0000000103151862 pymain_main + 12002
53 python3.7 0x0000000102fb106d main + 125
54 dyld 0x00000002033df4fe start + 462
55 dyld 0x00000002033da000 dyld + 0
56 python3.7 0x0000000102fb0000 __dso_handle + 0
)
2022-02-03 16:51:24.154 python[86373:5864365] Warning: Expected min height of view: (<NSButton: 0x7fc3ff798200>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2022-02-03 16:51:44.913 python[86373:5864365] Warning: Expected min height of view: (<NSButton: 0x7fc3ff79f8d0>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
File name :
OpenCV: Couldn't read movie file ""
답변 2
0
버전차이 인거 같은데 저도 회사랩 우분투에 설치해서 하고있는데
같은 오류가 나네요 전 4.5버전이고 해서 디버깅 해보니
코랩같은경우는 i 값이 이차원인 반면 우분투에서 했을경우는 1차원으로 나오네요
코랩에서의 i 값 final output layer id: [[200] [227] [254]] 2차원
우분투에서 i의 값 [200 227 254] 1차원 이어서
output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()] 식을
output_layers = [layer_names[i - 1] for i in net.getUnconnectedOutLayers()] 변경하니 정상작동 하였습니다.
0
오류 하나 더 부탁드립니다.
욜로 사용시
net = cv2.dnn.readNet('yolo/yolov3.weights', 'yolo/yolov3.cfg')
파일을 잘 넣어줬고
output_layers = [layer_names[i[0] - 1] for i in net.getUnconnectedOutLayers()]
에서 IndexError: invalid index to scalar variable.
발생합니다 열심히 검색해봤는데 답을 찾을 수 없어서 2가지 문의 드립니다. ㅠ