robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
451 stars 114 forks source link

problem on MacOS 10.14, Python 3.9 #211

Open ifuchs opened 1 year ago

ifuchs commented 1 year ago

Here is the traceback:

`>>> import easygui

easygui.fileopenbox() 2022-10-16 14:23:08.435 Python[2353:31377] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'File types array cannot be empty' First throw call stack: ( 0 CoreFoundation 0x00007fff4a39e035 __exceptionPreprocess + 256 1 libobjc.A.dylib 0x00007fff74c06a17 objc_exception_throw + 48 2 CoreFoundation 0x00007fff4a39de67 +[NSException raise:format:] + 201 3 AppKit 0x00007fff48033744 -[NSSavePanel setAllowedFileTypes:] + 154 4 libtk8.6.dylib 0x0000000106fc54d5 Tk_GetOpenFileObjCmd + 1725 5 libtcl8.6.dylib 0x0000000106dcd78d TclNRRunCallbacks + 79 6 _tkinter.cpython-39-darwin.so 0x0000000106dab930 Tkapp_Call + 480 7 Python 0x0000000106431d31 cfunction_call + 90 8 Python 0x00000001063e7aca _PyObject_Call + 121 9 Python 0x00000001064e12a8 _PyEval_EvalFrameDefault + 44777 10 Python 0x00000001064d5286 _PyEval_EvalCode + 407 11 Python 0x00000001063e7d2c _PyFunction_Vectorcall + 380 12 Python 0x00000001064e3755 call_function + 164 13 Python 0x00000001064e1019 _PyEval_EvalFrameDefault + 44122 14 Python 0x00000001064d5286 _PyEval_EvalCode + 407 15 Python 0x00000001063e7d2c _PyFunction_Vectorcall + 380 16 Python 0x00000001064e3755 call_function + 164 17 Python 0x00000001064e1168 _PyEval_EvalFrameDefault + 44457 18 Python 0x00000001063e7da7 _PyFunction_Vectorcall + 503 19 Python 0x00000001064e3755 call_function + 164 20 Python 0x00000001064e0fd4 _PyEval_EvalFrameDefault + 44053 21 Python 0x00000001064d5286 _PyEval_EvalCode + 407 22 Python 0x0000000106538788 run_eval_code_obj + 128 23 Python 0x00000001065386d6 run_mod + 96 24 Python 0x00000001065390c9 PyRun_InteractiveOneObjectEx + 1245 25 Python 0x00000001065355df PyRun_InteractiveLoopFlags + 280 26 Python 0x0000000106535494 PyRun_AnyFileExFlags + 60 27 Python 0x0000000106554a6a pymain_run_stdin + 141 28 Python 0x0000000106553eeb Py_RunMain + 585 29 Python 0x0000000106555134 pymain_main + 35 30 Python 0x00000001065553b6 Py_BytesMain + 42 31 libdyld.dylib 0x00007fff763d63d5 start + 1 32 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6`