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

ValueError: file descriptor cannot be a negative integer (-1) #64

Open
ratsputin opened this issue Feb 5, 2022 · 0 comments · May be fixed by #65
Open

ValueError: file descriptor cannot be a negative integer (-1) #64

ratsputin opened this issue Feb 5, 2022 · 0 comments · May be fixed by #65

Comments

@ratsputin
Copy link

When shutting down Home Assistant (whose alarmdecoder component leverages this library), I'm seeing the following error:

2022-02-05 13:49:03 ERROR (Thread-3) [root] Uncaught thread exception
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/srv/homeassistant/venv/lib/python3.9/site-packages/alarmdecoder/devices/base_device.py", line 148, in run
    self._device.read_line(timeout=self.READ_TIMEOUT)
  File "/srv/homeassistant/venv/lib/python3.9/site-packages/alarmdecoder/devices/socket_device.py", line 323, in read_line
    read_ready, _, _ = select.select([self._device], [], [], 0.5)
ValueError: file descriptor cannot be a negative integer (-1)

Interestingly, this only cropped up since I upgraded from python 3.8 to 3.9. I have, however, seen other error reports with earlier versions.

@jjlawren jjlawren linked a pull request Feb 18, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant