You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E CalledProcessError: Command: ('/home/travis/build/pre-commit/pre-commit/.tox/py27/bin/python2.7', '-m', 'virtualenv', '/tmp/pytest-of-travis/pytest-0/test_arbitrary_bytes_hook0/0/repoXLdwhd/py_env-python3.5', '-p', 'python3.5')
E Return code: 127
E Expected return code: 0
E Output:
E Running virtualenv with interpreter /opt/pyenv/shims/python3.5
E
E Errors:
E pyenv: python3.5: command not found
E
E The `python3.5' command exists in these Python versions:
E 3.5
E 3.5.3
Reacted by Ruslan Baratov, David Hirvonen, Hong Minhee (洪 民憙), Ryan Hiebert, Oliver Bestwalter, Dr.-Ing. Fabian Schuh, Wilson Jallet and Darren Burns
Reacted by Standa Láznička, Dr.-Ing. Fabian Schuh and Wilson Jallet
As you can see /usr/bin added before old $PATH. That's the problem because with PATH=/.../my-custom-directory:$PATH I'm trying to overwrite tools from /usr/bin directory.
@cejkato2 If you have all the tools available you need for C in a Python image, and you only need a single Python version for each build, then the matrix build will do, I'm sure. You have to try that out yourself, though.
Also, it may be more straight-forward to install missing pieces of your C tool chain (when you're good at that) than Python (especially when you're just an occasional user).
Note that I'm not part of Travis (the company), so if you need reliable, first-hand information ask Travis support for help. I'm sure, though, they're good at maintaining their native build environments. (Much better than providing a working pyenv-powered setup, as proven in the past.)
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues
Activity
asottile commentedon Sep 7, 2017
This seems to line up with the release made here
[-]pyvenv for python3.5 misconfigured?[/-][+]pyenv for python3.5 misconfigured?[/+]Work around travis-ci/travis-ci#8363
asottile commentedon Sep 7, 2017
Here's my crummy workaround: pre-commit/pre-commit@e3ab890
Merge pull request #615 from pre-commit/multiple_versions
BanzaiMan commentedon Sep 7, 2017
Could this be related to the updated pyenv? https://docs.travis-ci.com/user/build-environment-updates/2017-09-06/#Changed
ruslo commentedon Sep 7, 2017
@asottile Thanks for the fix.
I have to use 3.4 because otherwise
pip installdoesn't have any effect.3.5:
3.4 works:
ruslo commentedon Sep 7, 2017
Still not happy...
Seems that Python prepends some directories to PATH:
As you can see
/usr/binadded before old$PATH. That's the problem because withPATH=/.../my-custom-directory:$PATHI'm trying to overwrite tools from/usr/bindirectory.Build:
A workaround to fix travis pyenv issue
Potential fix for pip3 failure on travis, as suggested in travis-ci/t…
ci/travis: workaround pip3 issue
ci/travis: workaround pip3 issue
ci/travis: skip pip3 upgrade if pip3 is missing
38 remaining items
bittner commentedon Jan 12, 2018
@cejkato2 If you have all the tools available you need for C in a Python image, and you only need a single Python version for each build, then the matrix build will do, I'm sure. You have to try that out yourself, though.
Also, it may be more straight-forward to install missing pieces of your C tool chain (when you're good at that) than Python (especially when you're just an occasional user).
Note that I'm not part of Travis (the company), so if you need reliable, first-hand information ask Travis support for help. I'm sure, though, they're good at maintaining their native build environments. (Much better than providing a working pyenv-powered setup, as proven in the past.)
Travis: Fix path to find python
Travis: Fix path to find python (#79)
Attempted workaround for travis pyenv issue.
stale commentedon Apr 12, 2018
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues
Change python on travis to 3.6 to avoid error (#171)
Workaround for travis-ci/travis-ci#8363
Migrate travis from pyenv workaround to use native version support
Migrate travis from pyenv workaround to use native version support
work around for travis-ci/travis-ci#8363
work around travis-ci/travis-ci#8363
Fixing pyenv on Travis build
Possible python 3.5 work around: travis-ci/travis-ci#8363