Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3-config yields incorrect output #7138

Closed
dagheyman opened this issue Jan 11, 2017 · 3 comments
Closed

python3-config yields incorrect output #7138

dagheyman opened this issue Jan 11, 2017 · 3 comments
Labels

Comments

@dagheyman
Copy link

This build succeeded before, now fails with
(libpython3.5m.so.1.0: cannot open shared object file: No such file or directory).

A green build the commit before.

@BanzaiMan in #5268:

I am guessing that somehow python3-config is not valid, and giving configure (and make) bad configuration flags somehow.

Any ideas ?

@BanzaiMan BanzaiMan changed the title Dec 5 image update causes python3 build to fail python3-config yields incorrect output Jan 11, 2017
@BanzaiMan
Copy link
Contributor

There appear to be a couple of issues at play.

  1. virtualenv appears to set up only a handful of scripts and symlinks in the designated directory (e.g., ~/virtualenv/python3.5/bin/). This is not entirely relevant to the indicated build, however, since it is a cpp build, not python.
  2. We set up $PATH in /etc/profile.d/pyenv.sh, but the order in which the components appear is (presumably) dependent on the order in which the runtimes were installed on the build image. This is how python3-config is found at all on the cpp job such as this one. python3-config is found in one of the directories added by /etc/profile/pyenv.sh, but the first one (which I think is the last one installed during the build image provisioning process).

It is not clear how to cleanly fix this in all images without a fix from virtualenv, but in your case, tweaking $PATH to match the files that are present on the image might fix it.

@BanzaiMan
Copy link
Contributor

Actually this is a duplicate of #3107.

@dagheyman
Copy link
Author

dagheyman commented Jan 16, 2017

Solved the build by tweaking the $PATH as you suggested.

export PATH="/opt/python/3.5.2/bin:$PATH" is what was needed in my case.

Thanks!

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

No branches or pull requests

2 participants