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

Raspberry Pi 4B+ running example error #60

Open
Hbbbbbby opened this issue Oct 18, 2024 · 0 comments
Open

Raspberry Pi 4B+ running example error #60

Hbbbbbby opened this issue Oct 18, 2024 · 0 comments

Comments

@Hbbbbbby
Copy link

Hbbbbbby commented Oct 18, 2024

Hi developers,

Thanks for your great work! It is useful and helpful. However, when I tried out it on Raspberry Pi 4B+ with the Bluetooth mode, throwing an error. The file I tried is example/leds.py and the error shown in following,

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/xxx/.local/lib/python3.8/site-packages/pydualsense/pydualsense.py", line 231, in sendReport
    inReport = self.device.read(self.input_report_length)
AttributeError: 'pydualsense' object has no attribute 'input_report_length'

And this is my system configuration:

  System: Ubuntu Mate 20.04
  Architecture: Linux 5.4.0-1118-raspi  aarch64 GNU/Linux
  Python: 3.8 version
  Pydualsense: 0.7.1 version

To solve it, I checked the pydualsense.py and found that the class actually doesn't have this object, only the input_report_length variable. Confusedly, in the mode of the USB connection, there was no such error. I am just getting up the speed with it, so could you give me some advice?


Thanks again.
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

1 participant