This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [3.5] Travis CI fails on Python 3.5 with "pyenv: version `3.5' not installed"
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: larry, ncoghlan, ned.deily, vstinner
Priority: normal Keywords: patch

Created on 2018-01-22 10:56 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5274 merged ncoghlan, 2018-01-23 02:14
PR 5533 merged larry, 2018-02-04 18:58
Messages (5)
msg310416 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-01-22 10:56
My workaround for bpo-31568 is causing new issues on Python 3.5.

Output:
---
0.03s$ pyenv global system 3.5
pyenv: version `3.5' not installed
---

Extract of Python 3.5 .travis.yml:
---
      before_install:
        # work around https://github.com/travis-ci/travis-ci/issues/8363
        - pyenv global system 3.5
---

=> https://github.com/travis-ci/travis-ci/issues/8363

This workaround was added by me:
---
commit 70c630a7316f9f6063557786442e3c56502fe8ea
Author: Victor Stinner <victor.stinner@gmail.com>
Date:   Sun Sep 24 15:45:00 2017 -0700

    bpo-31568, Travis CI: Fix python3.5 (#3737)
    
    Works around Travis CI bug about the python3.5 binary:
    https://github.com/travis-ci/travis-ci/issues/8363
---

Without the workaround, running "python3.5" on Travis CI failed with "pyenv: python3.5: command not found".

Extract of Larry Hastings's email:
---

I have three PRs for Python 3.5.5rc1:

    https://github.com/python/cpython/pull/4656
    https://github.com/python/cpython/pull/5197
    https://github.com/python/cpython/pull/5201

I can't merge them because Travis CI is unhappy.  All three CI tests fail in the same way, reporting this error:

    The command "pyenv global system 3.5" failed and exited with 1 during .
---
https://mail.python.org/pipermail/python-committers/2018-January/005135.html
msg310461 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2018-01-23 02:11
I removed the snippet entirely from https://github.com/python/cpython/pull/5201, and while Travis didn't pass, it failed due to test suite failures, not anything environmental.
msg310487 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2018-01-23 09:10
New changeset 4a4c2743133e195cc3725b78a895d85d69e50089 by larryhastings (Nick Coghlan) in branch '3.5':
[3.5] bpo-32620: Remove failing pyenv call from CI config (#5274)
https://github.com/python/cpython/commit/4a4c2743133e195cc3725b78a895d85d69e50089
msg311615 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2018-02-04 19:37
New changeset 71b94e30b1d63c789908482b3b808cc613e57267 by larryhastings in branch '3.4':
[3.4] [3.5] bpo-32620: Remove failing pyenv call from CI config (GH-5274) (#5533)
https://github.com/python/cpython/commit/71b94e30b1d63c789908482b3b808cc613e57267
msg311618 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2018-02-04 19:44
I wanted it in 3.4 too, it was breaking CI.
History
Date User Action Args
2022-04-11 14:58:56adminsetgithub: 76801
2019-05-10 17:58:39ned.deilysetmessages: - msg342108
2019-05-10 17:36:40ned.deilysetnosy: + ned.deily
messages: + msg342108
2018-02-04 19:44:24larrysetstatus: open -> closed
versions: + Python 3.4
type: behavior
messages: + msg311618

resolution: fixed
stage: patch review -> resolved
2018-02-04 19:37:10larrysetmessages: + msg311615
2018-02-04 18:58:49larrysetpull_requests: + pull_request5360
2018-01-23 09:10:45larrysetnosy: + larry
messages: + msg310487
2018-01-23 02:14:51ncoghlansetkeywords: + patch
stage: patch review
pull_requests: + pull_request5118
2018-01-23 02:11:27ncoghlansetnosy: + ncoghlan
messages: + msg310461
2018-01-22 10:56:53vstinnercreate