Skip to content

ModuleNotFoundError: No module named 'aiofiles' #3

@HubKing

Description

@HubKing

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions