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
318 stars 30 forks source link

Failed to install and use API #149

Closed pho2Github closed 6 months ago

pho2Github commented 6 months ago

Hi Mihai,

I tried to use the API but have two problems.

  1. Using Python 3.7 with spyder on my windows PC I received this error message:

    
    Traceback (most recent call last):
    
    File "N:\10_Gemeinsam\Haus\Heizung\Vermessung\Datalogs\TPLink_P115_Auslesen_v2.py", line 32, in <module>
    asyncio.run(main())
    
    File "C:\ProgramData\Anaconda3\lib\asyncio\runners.py", line 34, in run
    "asyncio.run() cannot be called from a running event loop")

RuntimeError: asyncio.run() cannot be called from a running event loop

2. Triying to install the API on my raspberry pi this error

pi@raspberrypi:~/Documents $ pip install tapo Collecting tapo Downloading https://files.pythonhosted.org/packages/4a/20/914242caec6a15aae886f5eca36fce0d637b90dc2c2bd97bd5413c546b89/tapo-0.1.0.tar.gz (53kB) 100% |████████████████████████████████| 61kB 1.4MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in IOError: [Errno 2] No such file or directory: '/tmp/pip-build-Bnabi8/tapo/setup.py'



Any hint for me? 
mihai-dinculescu commented 6 months ago

Python 3.8 is the minimum supported version. Can you try with that?

pho2Github commented 6 months ago

Thank you, works now with python 3.8. And sorry, I should have noticed this in the release notes.