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

tb-rest-client 3.8.0 does not work on Windows venv ImportError: No module named six.moves (with six version 1.10) #170

Open
rretanubun opened this issue Dec 24, 2024 · 0 comments

Comments

@rretanubun
Copy link

OS: windows OS (win-11 23H2)
Python version: 3.12.3

When I try to use the tb-rest client 3.8.0 (pip installed) on from a python script like this:

try:
    from tb_rest_client.rest_client_ce import RestClientCE
    from tb_rest_client.models.models_ce import EntityId
    from tb_rest_client.rest import ApiException
except ImportError as exc:
    print(f"ERROR: Missing dependency. {exc}\n")
    sys.exit(1)

I got this error:

ERROR: Missing dependency. No module named 'six.moves'

A workaround is to do

pip uninstall six // this uninstalls version 1.10
pip install six==1.17.0 // this gives a warning (because tb-rest-client expects 1.10)

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. 
This behaviour is the source of the following dependency conflicts.
tb-rest-client 3.8.0 requires six==1.10, but you have six 1.17.0 which is incompatible.
Successfully installed six-1.17.0

But then the script works. six 1.10 Works okay on Ubuntu Linux 22.04-LTS.

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