Skip to content

SpaceMouse Compact found, but "Failed to open device(Linux) #32

@FANMOSHENG

Description

@FANMOSHENG

I encountered an issue while trying to use my SpaceMouse Compact with the pyspacemouse library. The device is detected, but it fails to open, resulting in the following traceback:

Traceback (most recent call last):
  File "/home/ur5/.local/lib/python3.8/site-packages/pyspacemouse/pyspacemouse.py", line 183, in open
    self.device.open()
  File "/home/ur5/.local/lib/python3.8/site-packages/easyhid/easyhid.py", line 134, in open
    raise HIDException("Failed to open device")
easyhid.easyhid.HIDException: Failed to open device

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ur5/Desktop/test/spacemouse.py", line 4, in <module>
    success = pyspacemouse.open()
  File "/home/ur5/.local/lib/python3.8/site-packages/pyspacemouse/pyspacemouse.py", line 899, in open
    new_device.open()
  File "/home/ur5/.local/lib/python3.8/site-packages/pyspacemouse/pyspacemouse.py", line 185, in open
    raise Exception("Failed to open device") from e
Exception: Failed to open device

Any idea where it come from ? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions