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

Using wrong python #233

Closed
danielgordon10 opened this issue Feb 16, 2021 · 3 comments · Fixed by #234
Closed

Using wrong python #233

danielgordon10 opened this issue Feb 16, 2021 · 3 comments · Fixed by #234

Comments

@danielgordon10
Copy link

danielgordon10 commented Feb 16, 2021

On pip-compile-multi==2.2.2 when I run pip-compile-multi I get this error. The issue does not seem to be present on 2.2.1

I believe the issue is in part that /usr/bin/python points to python2.7 whereas pip-compille-multi is installed for python3.6. If I change the symlink for /usr/bin/python to python3.6 the issue goes away.

Exit code: 1

/usr/bin/python: No module named piptools

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/pipcompilemulti/cli_v1.py", line 26, in cli
    recompile()
  File "/usr/local/lib/python3.6/dist-packages/pipcompilemulti/actions.py", line 30, in recompile
    compile_topologically(env_confs, deduplicator)
  File "/usr/local/lib/python3.6/dist-packages/pipcompilemulti/actions.py", line 39, in compile_topologically
    if env.maybe_create_lockfile():
  File "/usr/local/lib/python3.6/dist-packages/pipcompilemulti/environment.py", line 50, in maybe_create_lockfile
    self.create_lockfile()
  File "/usr/local/lib/python3.6/dist-packages/pipcompilemulti/environment.py", line 81, in create_lockfile
    raise RuntimeError("Failed to pip-compile {0}".format(self.infile))
@peterdemin
Copy link
Owner

Interesting, I changed it to use python -m piptools compile exactly to make it more robust to environment setup.
Are you using virtualenv? Looks like you install pip-compile-multi system-wide. Is it inside of Docker?

@peterdemin
Copy link
Owner

Please upgrade to 2.3.1

@danielgordon10
Copy link
Author

danielgordon10 commented Feb 17, 2021

Thanks for the quick response. It is inside a docker. This fixed it for me.

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

Successfully merging a pull request may close this issue.

2 participants