ev3dev-python-tools / ev3dev2simulator

Simulator for an EV3 robot; a program using the ev3dev2 API can run both on the rover and on the simulator without any modifications to the code
MIT License
6 stars 9 forks source link

on macos get long error message, but everything seems to work alright though #32

Open harcokuppens opened 3 years ago

harcokuppens commented 3 years ago

On macos I get a long error message, but everything seems to work alright though. The error happens when running the program https://github.com/ev3dev-python-tools/ev3dev2simulator/blob/master/testprograms/bump.py on the simulator. The running simulator doesn't give an error, but the running ev3dev2 program does.

The error:

Exception in thread Thread-19: Traceback (most recent call last): File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyttsx3/init.py", line 44, in init eng = _activeEngines[driverName] File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/weakref.py", line 137, in getitem o = self.data[key]() KeyError: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run self._target(*self._args, *self._kwargs) File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/ev3dev2simulator/connector/sound_connector.py", line 161, in _tts engine = tts.init() File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyttsx3/init.py", line 46, in init eng = Engine(driverName, debug) File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyttsx3/engine.py", line 52, in init self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug) File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyttsx3/driver.py", line 75, in init self._module = importlib.import_module(name) File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyttsx3/drivers/nsss.py", line 4, in from PyObjCTools import AppHelper File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/thonny/backend.py", line 285, in _custom_import module = self._original_import(args, **kw) File "/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyObjCTools/AppHelper.py", line 21, in from AppKit import ( ImportError: cannot import name 'NSApplicationDidFinishLaunchingNotification' from 'AppKit._AppKit' (/Applications/Thonny-portable-3.2.6.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/AppKit/_AppKit.cpython-37m-darwin.so)