Skip to content

ModuleNotFoundError: No module named 'six' #121

@m-aciek

Description

@m-aciek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions