mihai-dinculescu / tapo

Unofficial Tapo API Client. Works with TP-Link Tapo smart devices. Tested with light bulbs (L510, L520, L530, L610, L630), light strips (L900, L920, L930), plugs (P100, P105, P110, P115, P300), hubs (H100), switches (S200B) and sensors (KE100, T100, T110, T300, T310, T315).
MIT License
313 stars 30 forks source link

ImportError: cannot import name 'ApiClient' from partially initialized module 'tapo' (most likely due to a circular import) #229

Closed syco closed 2 weeks ago

syco commented 3 weeks ago

Hi,

I've seen https://github.com/mihai-dinculescu/tapo/issues/165 and I tried versions 0.2.0, 0.2.1, and 0.3.0. They all have this same problem for me. I'm using ArchLinux, with python 3.12.3

Thanks

thkaw commented 2 weeks ago

Hi,

I've seen #165 and I tried versions 0.2.0, 0.2.1, and 0.3.0. They all have this same problem for me. I'm using ArchLinux, with python 3.12.3

Thanks

I'm encouter similar problem, and I found it cause by my mistake... I create a tapo.py in same directory that confuse from tapo import ApiClient

syco commented 2 weeks ago

That's it.. just don't name your script tapo.py Thanks