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

Broken pipe #34

Open
interSAP opened this issue Mar 17, 2024 · 0 comments
Open

Broken pipe #34

interSAP opened this issue Mar 17, 2024 · 0 comments

Comments

@interSAP
Copy link

interSAP commented Mar 17, 2024

Hello,
on raspberry PI, the response I have is:
sudo python ./temper.py
Traceback (most recent call last):
File "/home/admin/scripts/./temper.py", line 472, in
main()
File "/home/admin/scripts/./temper.py", line 469, in main
sys.exit(temper.main())
^^^^^^^^^^^^^
File "/home/admin/scripts/./temper.py", line 462, in main
results = self.read(args.verbose)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/admin/scripts/./temper.py", line 379, in read
results.append({ **info, **usbread.read() })
^^^^^^^^^^^^^^
File "/home/admin/scripts/./temper.py", line 304, in read
return self._read_hidraw(self.device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/admin/scripts/./temper.py", line 181, in _read_hidraw
firmware = self._read_hidraw_firmware(fd, self.verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/admin/scripts/./temper.py", line 149, in _read_hidraw_firmware
os.write(fd, query)
BrokenPipeError: [Errno 32] Broken pipe

and the response if requesting a --list is
sudo python ./temper.py --list
Bus 001 Dev 001 1d6b:0002 xHCI Host Controller ['hidraw0']
Bus 001 Dev 002 2109:3431 USB2.0 Hub ['hidraw0']
Bus 001 Dev 003 1a86:e025 * TEMPerX232 ['hidraw0']
Bus 002 Dev 001 1d6b:0003 xHCI Host Controller
Bus 002 Dev 012 1058:107c Elements 107C

not sure why. Thanks for your kind support

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