py-trans icon indicating copy to clipboard operation
py-trans copied to clipboard

ModuleNotFoundError: No module named 'aiofiles'

Open HubKing opened this issue 2 years ago • 0 comments

The following error occurs when I try to run the basic sample.

Traceback (most recent call last):
  File "/home/username/Documents/python-test/main.py", line 1, in <module>
    from py_trans import PyTranslator
  File "/home/username/Documents/python-test/.venv/lib/python3.11/site-packages/py_trans/__init__.py", line 20, in <module>
    from .extras import get_lang_code, get_lang_name
  File "/home/username/Documents/python-test/.venv/lib/python3.11/site-packages/py_trans/extras.py", line 5, in <module>
    import os, json, aiofiles

It was solved by pip install aiofiles, but shouldn't it not happen in the first place?

HubKing avatar Feb 19 '24 13:02 HubKing