Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

installation with PYENV_VERSION=3.5.3 failed #12

Open
jab opened this issue Nov 20, 2017 · 2 comments
Open

installation with PYENV_VERSION=3.5.3 failed #12

jab opened this issue Nov 20, 2017 · 2 comments

Comments

@jab
Copy link

jab commented Nov 20, 2017

Just trying travis-pyenv for the first time and hit this:

2017-11-20 21:17:21 (131 MB/s) - ‘setup-pyenv.sh’ saved [5006/5006]
**** Installing pyenv.
mkdir: cannot create directory ‘/opt/pyenv’: File exists
**** Trying to find and use cached python 3.5.3.
No cached python found.
**** Installing python 3.5.3 with pyenv now.
pyenv: /opt/pyenv/versions/3.5.3 already exists
continue with installation? (y/N) 

[...and now my build is stuck]

I also specified PYENV_RELEASE="v1.1.5" (latest, and recent, pyenv release)

Full build log at https://travis-ci.org/jab/bidict/jobs/304959775

In general, ideally there'd be some way to make sure this can run in completely non-interactive mode, no matter what questions it might ever have.

@JayH5
Copy link
Contributor

JayH5 commented Nov 27, 2017

Hey, sorry for the slow response. We haven't used travis-pyenv in a while so it's been a lower priority.

The issue is that Travis keeps subtly changing their pyenv setup. They started setting the PYENV_ROOT environment variable which they didn't before. To fix it, set it yourself to something like PYENV_ROOT=$HOME/.travis-pyenv

@jab
Copy link
Author

jab commented Nov 27, 2017

Thanks for the info! Though to avoid the extra complexity and longer build times, I ended up switching back to using Travis's built-in python versions. FWIW, Travis is now providing much more up-to-date point releases of CPython. Hopefully they'll update their pypy versions soon too.

For the benefit of others though, I suggest a quick update to your README documenting that PYENV_ROOT should be set explicitly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants