Tinche / aiofiles

File support for asyncio
Apache License 2.0
2.62k stars 151 forks source link

ModuleNotFoundError: No module named 'aiofiles.threadpool' #155

Closed flatsiedatsie closed 1 year ago

flatsiedatsie commented 1 year ago

I'm seeing this error and I'm not sure what's causing it:

Traceback (most recent call last):
  File "/home/pi/.webthings/addons/voco/main.py", line 15, in <module>
    from pkg.voco_adapter import VocoAdapter  # noqa
  File "/home/pi/.webthings/addons/voco/pkg/voco_adapter.py", line 26, in <module>
    import aiofiles
  File "/home/pi/.webthings/addons/voco/lib/aiofiles/__init__.py", line 2, in <module>
    from .threadpool import open
ModuleNotFoundError: No module named 'aiofiles.threadpool'
flatsiedatsie commented 1 year ago

It seems that for some reason the library didn't install properly. The aiofiles library only contained:

__init__.py  
__pycache__

I fixed it by using --upgrade with the pip install command.