# 'AsyncWorker' object has no attribute 'isAlive' when trying to import explorerhat

**URL:** <https://forums.pimoroni.com/t/asyncworker-object-has-no-attribute-isalive-when-trying-to-import-explorerhat/18590>\
**Category:** Support\
**Created:** [January 6, 2022, 11:28pm UTC](https://forums.pimoroni.com/t/asyncworker-object-has-no-attribute-isalive-when-trying-to-import-explorerhat/18590 "2022-01-06T23:28:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dain42](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@Dain42](https://forums.pimoroni.com/u/Dain42)\
**Post date:** [January 6, 2022, 11:28pm UTC](https://forums.pimoroni.com/t/asyncworker-object-has-no-attribute-isalive-when-trying-to-import-explorerhat/18590/1 "2022-01-06T23:28:28Z")

</div>

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 I get the following errors:

> Blockquote Explorer HAT Pro detected…  
> Traceback (most recent call last):  
> File “/home/pi/Pimoroni/explorerhat/examples/drums.py”, line 11, in   
> import explorerhat  
> File “/usr/lib/python3/dist-packages/explorerhat/ **init**.py”, line 756, in   
> touch.\_add(one=CapTouchInput(4, 1))  
> File “/usr/lib/python3/dist-packages/explorerhat/ **init**.py”, line 595, in **init**  
> \_cap1208.on(channel=self.channel, event=event, handler=self.\_handle\_state)  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 386, in on  
> self.start\_watching()  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 400, in start\_watching  
> self.async\_poll.start()  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 208, in start  
> if self.isAlive() == False:  
> AttributeError: ‘AsyncWorker’ object has no attribute ‘isAlive’  
> Explorer HAT exiting cleanly, please wait…  
> Stopping flashy things…  
> Error in atexit.\_run\_exitfuncs:  
> Traceback (most recent call last):  
> File “/usr/lib/python3/dist-packages/explorerhat/ **init**.py”, line 689, in explorerhat\_exit  
> light.stop\_pulse()  
> File “/usr/lib/python3/dist-packages/explorerhat/pins.py”, line 92, in handler  
> return self.\_do(name, \*args, \*\*kwargs)  
> File “/usr/lib/python3/dist-packages/explorerhat/pins.py”, line 111, in \_do  
> \_results[node] = handler(\*args, \*\*kwargs)  
> File “/usr/lib/python3/dist-packages/explorerhat/ **init**.py”, line 480, in stop\_pulse  
> self.pulser.stop()  
> File “/usr/lib/python3/dist-packages/explorerhat/pins.py”, line 20, in stop  
> if self.isAlive():  
> AttributeError: ‘Pulse’ object has no attribute ‘isAlive’  
> Error in atexit.\_run\_exitfuncs:  
> Traceback (most recent call last):  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 409, in stop\_watching  
> self.async\_poll.stop()  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 213, in stop  
> if self.isAlive() == True:  
> AttributeError: ‘AsyncWorker’ object has no attribute ‘isAlive’  
> Exception ignored in: \<function Cap1xxx. **del** at 0xb32f34a8\>  
> Traceback (most recent call last):  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 522, in **del**  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 409, in stop\_watching  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 213, in stop  
> AttributeError: ‘AsyncWorker’ object has no attribute ‘isAlive’

Likewise when I try to run ‘import explorerhat’, I get the following:

> Blockquote Explorer HAT Pro detected…  
> Traceback (most recent call last):  
> File “”, line 1, in   
> File “/usr/lib/python3/dist-packages/explorerhat/ **init**.py”, line 756, in   
> touch.\_add(one=CapTouchInput(4, 1))  
> File “/usr/lib/python3/dist-packages/explorerhat/ **init**.py”, line 595, in **init**  
> \_cap1208.on(channel=self.channel, event=event, handler=self.\_handle\_state)  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 386, in on  
> self.start\_watching()  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 400, in start\_watching  
> self.async\_poll.start()  
> File “/usr/lib/python3/dist-packages/cap1xxx.py”, line 208, in start  
> if self.isAlive() == False:  
> AttributeError: ‘AsyncWorker’ object has no attribute ‘isAlive’

I’m running a pretty fresh install of Raspbian that as far as I can tell is fully updated.  
I did run the curl script once before, but I think because I2C was switched off it didn’t work. I then switched it on and ran it again, which seems to have got me closer but still not actually working.

I’m open to any suggestions on this, the Explorer Hat seems like a great way to start learning electronics in general - I’m really hoping my weekend can be spent building things rather than trouble shooting haha!

---

<div class="post-metadata">

**Author:** ![newraspiuser](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@newraspiuser](https://forums.pimoroni.com/u/newraspiuser)\
**Post date:** [January 30, 2022, 9:31pm UTC](https://forums.pimoroni.com/t/asyncworker-object-has-no-attribute-isalive-when-trying-to-import-explorerhat/18590/2 "2022-01-30T21:31:56Z")

</div>

Hi there!  
I got exact the same error while trying to import explorer hat. Also fresh Raspian, I2C is running, system is updated and upgraded. Can anyone help?

---

<div class="post-metadata">

**Author:** ![davidswin](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@davidswin](https://forums.pimoroni.com/u/davidswin)\
**Post date:** [February 15, 2022, 11:12am UTC](https://forums.pimoroni.com/t/asyncworker-object-has-no-attribute-isalive-when-trying-to-import-explorerhat/18590/3 "2022-02-15T11:12:34Z")

</div>

I know it is kinda late but I thought if someone else has the same issue it might be useful to have another possible solution.

I had the same issues: first i had to enable i2c manually and then i got this AsyncWorker error.  
In my case the issue was that explorerhat was always on version0.4.2 even with updating/upgrading. I fixed it by removing it entirely: `sudo apt-get --purge remove python3-explorerhat`  
and then following the steps indicated by sandyjmacdonald: [Explorer HAT install instructions - #4 by sandyjmacdonald](https://forums.pimoroni.com/t/explorer-hat-install-instructions/515/4)

`git clone http://github.com/pimoroni/explorer-hat`  
then  
`cd explorer-hat/library`  
then  
`sudo python setup.py install`

now it is on version 0.5.1 and works just fine.
