question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HCIdump' object has no attribute 'isAlive

See original GitHub issue

Hello, I recently update python to 3.9 and after the custom component stopped to work. I tried to update the component but nothing change. I checkhed with “sudo getcap readlink -f \which python3``” and the result was"/usr/local/bin/python3.9 = cap_net_admin,cap_net_raw+eip"

This is my log:

2020-10-17 11:23:13 ERROR (Thread-6) [root] Uncaught thread exception Traceback (most recent call last): File “/usr/local/lib/python3.9/threading.py”, line 950, in _bootstrap_inner self.run() File “/home/homeassistant/.homeassistant/custom_components/mitemp_bt/sensor.py”, line 137, in run mysocket = aiobs.create_bt_socket(self._interface) File “/srv/homeassistant/lib/python3.9/site-packages/aioblescan/aioblescan.py”, line 1280, in create_bt_socket sock = socket.socket(family=socket.AF_BLUETOOTH, AttributeError: module ‘socket’ has no attribute ‘AF_BLUETOOTH’ 2020-10-17 11:24:14 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved Traceback (most recent call last): File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run result = self.fn(*self.args, **self.kwargs) File “/home/homeassistant/.homeassistant/custom_components/mitemp_bt/sensor.py”, line 805, in update_ble discover_ble_devices(config, aeskeys, whitelist) File “/home/homeassistant/.homeassistant/custom_components/mitemp_bt/sensor.py”, line 562, in discover_ble_devices jres = scanner.stop() File “/home/homeassistant/.homeassistant/custom_components/mitemp_bt/sensor.py”, line 411, in stop if dumpthread.isAlive(): AttributeError: ‘HCIdump’ object has no attribute ‘isAlive’ <

It’s on Home Assistant Core on Python env on Raspberry Pi4.

I understand that the script can’t access the HCI interface, but I dont know why. I change the permission of custom component folder to 777 but nothing. Anyone can help me?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Ernst79commented, Oct 19, 2020

Thanks, I will test this on Python 3.8 today and will make a new release.

1reaction
Ernst79commented, Oct 19, 2020

0.7.3 is released, which should fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Heroku bot AttributeError: thread object has no attribute 'isAlive'
it is an object of InterruptableThread , which inherits from threading.Thread . The Thread class does not have any attribute named isAlive ......
Read more >
'AsyncWorker' object has no attribute 'isAlive' when trying to ...
I'm trying to follow the Pimoroni getting started guide but am having trouble getting anything to work. When I try to run drums.py...
Read more >
websocket/_app.py teardown AttributeError: 'Thread' object ...
AttributeError : 'Thread' object has no attribute 'isAlive'. I think it should be is_alive(). pythonrefinitiv-data-platform-libraries.
Read more >
Table 11 :: OIN Linux System - Open Invention Network
Extended attributes are extensions to the normal attributes which are associated with all inodes in the system (i.e. the stat(2) data).
Read more >
primary.xml.gz - Index of /
Xaw3d adds a three-dimensional look to applications with minimal or no source ... bluez-hcidump src 4721963f8abb2ea2e07fcf9da96f89ae8481d46b Bluetooth HCI ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found