travis-pyenv icon indicating copy to clipboard operation
travis-pyenv copied to clipboard

Installation is broken with PyPy 3.5-5.7.0 (portable)

Open danielkza opened this issue 8 years ago • 5 comments

PyPy 3.5-5.7.0 does not seem to include a python symlink in it's bin/ folder, which breaks the assumptions from this script, making the installation fail.

danielkza avatar Jun 04 '17 22:06 danielkza

Hi @danielkza, thanks for filing the issue.

Without some logs it's hard for me to know exactly what the issue is that you are encountering. As far as I understand, pyenv is supposed to handle linking the pypy executable as python.

What I think you may be encountering is pyenv/pyenv#925. See #8, which includes a successful installation of pypy3-portable-5.7.0, for a way to work around that issue for now.

JayH5 avatar Jun 05 '17 10:06 JayH5

Pyenv seems to be working correctly (calling it manually is fine), but setup_pyenv.sh fails when verifying the installation from the cache since $install_path/bin/python does not exist, and hence cannot be run to check the version string.

Em seg, 5 de jun de 2017 07:54, Jamie Hewland [email protected] escreveu:

Hi @danielkza https://github.com/danielkza, thanks for filing the issue.

Without some logs it's hard for me to know exactly what the issue is that you are encountering. As far as I understand, pyenv is supposed to handle linking the pypy executable as python.

What I think you may be encountering is pyenv/pyenv#925 https://github.com/pyenv/pyenv/issues/925. See #8 https://github.com/praekeltfoundation/travis-pyenv/pull/8, which includes a successful installation of pypy3-portable-5.7.0, for a way to work around that issue for now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/praekeltfoundation/travis-pyenv/issues/7#issuecomment-306160551, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtnTvUVtY9smU7oMyiekc9lTHrnkH8lks5sA95ygaJpZM4Nvg_m .

danielkza avatar Jun 05 '17 11:06 danielkza

Do you have a Travis build that is failing that I can see?

Because it is working for me at the moment: Fresh install: https://travis-ci.org/praekeltfoundation/travis-pyenv/jobs/239537668 Cached install: https://travis-ci.org/praekeltfoundation/travis-pyenv/jobs/239545868

JayH5 avatar Jun 05 '17 11:06 JayH5

https://travis-ci.org/Cobliteam/shelver/jobs/239411897

danielkza avatar Jun 05 '17 21:06 danielkza

@danielkza the problem is that your PYENV_VERSION_STRING is set to PyPy3 5.7.0... the output of python --version for that Python is:

Python 3.5.3 (b16a4363e930f6401bceb499b9520955504c6cb0, Mar 21 2017, 12:36:24)
[PyPy 5.7.0-beta0 with GCC 6.3.0]

So PYENV_VERSION_STRING should be set to something like PyPy 5.7.0-beta0 rather.

Sorry, the logging here should be better. I've created #11 to work on that.

JayH5 avatar Jun 06 '17 07:06 JayH5