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

boost.python: Unable to find pyconfig.h #6099

Closed
AbdealiLoKo opened this issue May 24, 2016 · 4 comments
Closed

boost.python: Unable to find pyconfig.h #6099

AbdealiLoKo opened this issue May 24, 2016 · 4 comments
Labels

Comments

@AbdealiLoKo
Copy link

I am trying to compile boost in the virtualenv so that I compile/install dlib which uses boost.python.

I am compiling it by giving it the args --prefix=$VIRTUAL_ENV so that it would get configured and installed into the virtualenv and use the python version that is needed for that job. (I need jobs for 2.6, 2.7, 3.3, 3.4, 3.5)

Boost complains fatal error: pyconfig.h: No such file or directory. I also checked find $VIRTUAL_ENV -name pyconfig.h and it did not return any results. So, it seems like the virtualenv in travis does not have pyconfig.h.
On doing find / -name pyconfig.h here I found that this file is at:

/opt/python/2.6.9/include/python2.6/pyconfig.h
/opt/python/2.7.9/include/python2.7/pyconfig.h
/opt/python/3.2.5/include/python3.2mu/pyconfig.h
/opt/python/3.3.5/include/python3.3m/pyconfig.h
/opt/python/3.4.2/include/python3.4m/pyconfig.h
/opt/python/pypy-2.5.0/include/pyconfig.h
/opt/python/pypy3-2.4.0/include/pyconfig.h

Could you recommend how I can compile this ? Is the pyconfig.h not expected to be in the virtualenv ?

The build can be found at https://travis-ci.org/AbdealiJK/file-metadata/builds/132498595

@BanzaiMan
Copy link
Contributor

Hmm. Why is it not finding /opt/python/3.5.0/include/python3.5m/pyconfig.h? What is $VIRTUAL_ENV and how is it supposed to be set? I don't think our build script sets it.

@AbdealiLoKo
Copy link
Author

I have been using $VIRTUAL_ENV in travis builds for a while when I need the python virtualenv's path. If it's not being set by travis, I'm guessing it's being added by the package that created the virtualenv

https://travis-ci.org/AbdealiJK/file-metadata/jobs/132522625#L487 shows the value - /home/travis/virtualenv/python3.5.0 for python 3.5 and /home/travis/virtualenv/python2.7.9 for python 2.7

@BanzaiMan
Copy link
Contributor

Could you try python: 3.5.1?

@AbdealiLoKo
Copy link
Author

AbdealiLoKo commented May 29, 2016

I began using miniconda with travis (http://conda.pydata.org/docs/travis.html) as it had an easy installer (conda install boost) and also had easy installation methods for a bunch of other packages I needed.
This reduced my build time as I didn't need to build them (conda has pre-built binaries).

Hence, I'm closing this issue

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