Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sense Hat Emulator error loading the gui #35

Closed
steveiliop56 opened this issue Feb 28, 2023 · 2 comments
Closed

Sense Hat Emulator error loading the gui #35

steveiliop56 opened this issue Feb 28, 2023 · 2 comments

Comments

@steveiliop56
Copy link
Contributor

When I try to run sense hat emulator it does not start up at all and it gives me this output:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sense_emu/gui.py", line 161, in do_startup
    self.imu = IMUServer(simulate_world=self.settings.get_boolean('simulate-imu'))
  File "/usr/lib/python3/dist-packages/sense_emu/imu.py", line 148, in __init__
    self._gyros = np.full((10, 3), self._gyro, dtype=np.float)
  File "/usr/local/lib/python3.9/dist-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
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sense_emu/gui.py", line 199, in do_activate
    self.window = MainWindow(application=self)
  File "/usr/lib/python3/dist-packages/sense_emu/gui.py", line 524, in __init__
    self.screen_widget = ScreenWidget(visible=True, client=self.props.application.screen)
AttributeError: 'EmuApplication' object has no attribute 'screen'
@bsimmo
Copy link

bsimmo commented Mar 12, 2023

#36 is a pull request for this.
Just adding so people can see a solution.

np.float is deprecated to just float (it was just a link to it).

@steveiliop56
Copy link
Contributor Author

Fixed #36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants