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 'six' #121

Open
m-aciek opened this issue Dec 1, 2024 · 0 comments
Open

ModuleNotFoundError: No module named 'six' #121

m-aciek opened this issue Dec 1, 2024 · 0 comments

Comments

@m-aciek
Copy link
Contributor

m-aciek commented Dec 1, 2024

transifex-python is dependent on six, but it's undisclosed in setup.py declaration. Recently another transifex-python dependency, asttokens dropped six dependency. In effect after installing transifex-python, we end up with ModuleNotFoundError in the line of six package import.

Traceback (most recent call last):
  File "/home/runner/work/python-docs-pl/python-docs-pl/./manage_translation.py", line 28, in <module>
    from transifex.api import transifex_api
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/transifex/api/__init__.py", line 6, in <module>
    from .jsonapi import JsonApi
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/transifex/api/jsonapi/__init__.py", line 1, in <module>
    from .apis import JsonApi  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/transifex/api/jsonapi/apis.py", line 6, in <module>
    import six
ModuleNotFoundError: No module named 'six'

Example

Possible solutions:

  • drop usage of six in transifex-python
  • declare the six dependency verbosely in setup.py
m-aciek added a commit to python/python-docs-pl that referenced this issue Dec 2, 2024
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