JurajNyiri / pytapo

Python library for communication with Tapo Cameras
MIT License
277 stars 58 forks source link

Feature Request: Add dependencies to install #122

Open JayWll opened 2 months ago

JayWll commented 2 months ago

It seems something changed on July 5th or 6th and I now get an error when attempting to use the library:

Traceback (most recent call last):
  File "/exec.py", line 7, in <module>
    from pytapo.media_stream.downloader import Downloader
  File "/usr/local/lib/python3.12/site-packages/pytapo/media_stream/downloader.py", line 1, in <module>
    from .convert import Convert
  File "/usr/local/lib/python3.12/site-packages/pytapo/media_stream/convert.py", line 7, in <module>
    import aiofiles
ModuleNotFoundError: No module named 'aiofiles'

I know very little about python, but I believe this indicates a new, unmet, dependency on another library. I solved for it by doing a pip install aiofiles as a workaround and things are working once again, but is there perhaps somewhere where dependencies are defined that's missing this one?

JurajNyiri commented 2 months ago

Yes this dependency was added recently, I renamed this as a feature request to add dependencies to this project.