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

COAP throws exception when running under Python 3.9 #69

Open
johtso opened this issue Nov 26, 2020 · 2 comments
Open

COAP throws exception when running under Python 3.9 #69

johtso opened this issue Nov 26, 2020 · 2 comments

Comments

@johtso
Copy link

johtso commented Nov 26, 2020

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 950, in _bootstrap_inner
    self.run()
  File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/threading.py", line 888, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/human/.local/pipx/venvs/py-air-control/lib/python3.9/site-packages/coapthon/client/coap.py", line 270, in receive_datagram
    self._send_ack(transaction)
  File "/Users/human/.local/pipx/venvs/py-air-control/lib/python3.9/site-packages/coapthon/client/coap.py", line 304, in _send_ack
    self.send_datagram(ack)
  File "/Users/human/.local/pipx/venvs/py-air-control/lib/python3.9/site-packages/coapthon/client/coap.py", line 168, in send_datagram
    if self._receiver_thread is None or not self._receiver_thread.isAlive():
AttributeError: 'Thread' object has no attribute 'isAlive'

Doesn't look like CoAPthon3 is actively maintained, so maybe just a warning on the readme?

@rgerganov
Copy link
Owner

Thanks for reporting this, it is yet another problem with the CoAPthon3 library ... I am thinking to create a fork of this library where I can fix stuff like this and suggest people to update from the fork in the README.

rgerganov added a commit that referenced this issue Dec 3, 2020
The original repo is unmaintained and I am pushing fixes to my own fork
now.

Issue: #55
Issue: #71
Issue: #69
@CatalinMustata
Copy link

I've installed this on a new system and got Python 3.9 by default. Did use your fork of CoAPthon3, as I understood this works with 3.9 as well, but no luck.

What's the current status?

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

3 participants