Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'aiofiles' #3

Open
HubKing opened this issue Feb 19, 2024 · 0 comments
Open

ModuleNotFoundError: No module named 'aiofiles' #3

HubKing opened this issue Feb 19, 2024 · 0 comments

Comments

@HubKing
Copy link

HubKing commented Feb 19, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant