astro-pi / python-sense-emu

An emulator for the Raspberry Pi Sense HAT
https://sense-emu.readthedocs.io/
Other
40 stars 25 forks source link

Mac sense_emu_gui launch not sucessfull #34

Open shadhora opened 1 year ago

shadhora commented 1 year ago

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/sense_emu/gui.py", line 169, in do_startup self.imu = IMUServer(simulate_world=self.settings.get_boolean('simulate-imu')) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/sense_emu/imu.py", line 158, in init self._gyros = np.full((10, 3), self._gyro, dtype=np.float) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/init.py", line 305, in getattr raise AttributeError(former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'? Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/sense_emu/gui.py", line 207, in do_activate self.window = MainWindow(application=self) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/sense_emu/gui.py", line 529, in init__ self.ui.screen_widget = ScreenWidget(visible=True, client=self.props.application.screen) AttributeError: 'EmuApplication' object has no attribute 'screen'