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.

Title: Configure thinks it finds python3.5 but doesn't
Type: compile error Stage: resolved
Components: Build Versions: Python 3.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vstinner Nosy List: larry, vstinner
Priority: release blocker Keywords: 3.5regression, patch

Created on 2017-09-24 09:15 by larry, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 3737 merged vstinner, 2017-09-24 21:54
PR 5274 merged ncoghlan, 2018-01-23 02:14
Messages (5)
msg302837 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2017-09-24 09:15
On Python 3.5, the makefile pseudotarget "regen-opcode" now fails if "python3.5" can't be found on the path.  What's strange is that the configure script scans to see if it can find "python3.5", and it thinks it can, but then actually attempting to run it fails.

I can't merge PRs in 3.5 right now because this is broken.  Note that everything is fine on my Ubuntu laptop because I *do* have "python3.5" on my path.  But the Travis CI buildbot doesn't.

Here is an example failure on Travis CI:

I don't know how this got merged, because the PR that made this change should itself have failed.  Maybe the configuration of the buildbot has changed since we merged that PR?
msg302838 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2017-09-24 09:16
Oh, and, Victor, I tagged you with this because git blame says you're the most person to touch PYTHON_FOR_REGEN in the makefile, checkin ab6b962ef24 .
msg302887 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-09-24 21:55
The Travis CI error is:
python3.5 ./Objects/ \

		< ./Include/typeslots.h \


pyenv: python3.5: command not found

pyenv: python3.5: command not found

The `python3.5' command exists in these Python versions:

pyenv: python3.5: command not found



make: *** [regen-opcode] Error 127

make: *** Waiting for unfinished jobs....

It looks like this Travis CI bug:

I wrote which should works around the Travis CI. Change inspired by:
msg302891 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2017-09-24 22:45
New changeset 70c630a7316f9f6063557786442e3c56502fe8ea by larryhastings (Victor Stinner) in branch '3.5':
bpo-31568, Travis CI: Fix python3.5 (#3737)
msg302923 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-09-25 08:25
It seems like the bug was fixed. Nice.
Date User Action Args
2022-04-11 14:58:52adminsetgithub: 75749
2018-01-23 02:14:51ncoghlansetpull_requests: + pull_request5119
2017-09-25 08:25:15vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg302923

stage: patch review -> resolved
2017-09-24 22:45:02larrysetmessages: + msg302891
2017-09-24 21:55:24vstinnersetmessages: + msg302887
2017-09-24 21:54:16vstinnersetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request3723
2017-09-24 09:16:36larrysetmessages: + msg302838
2017-09-24 09:15:21larrycreate