Crypto 2.4 install via setuptools dies re: missing config.h

Bug #881130 reported by bitprophet on 2011-10-24
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Python-Crypto
Undecided
Unassigned
Tahoe-LAFS
Unknown
Unknown

Bug Description

I am unable to get PyCrypto 2.4 to install on any of my target systems via easy_install, or via dependent projects' setup.py files. Using pip works fine. PyCrypto 2.3 also installs fine in the same situations.

I have documented my findings in [this Fabric ticket](https://github.com/fabric/fabric/issues/459).

For now I've had to update software I control to specify PyCrypto >=2.1, <2.4 to protect some segment of my userbase from encountering this bug.

I'd like to add that using zc.buildout's zc.recipe.egg break while installing pycrypto = 2.4

There is no easy way to modify egg build process to call ./configure before building pycrypto, even in zc.recipe.egg:custom mode.

For now I pinned pycrypto to 2.3

Dwayne Litzenberger (dlitz) wrote :

I don't know anything about zc.buildout. How is it invoking setup.py?

Also, if anyone knows, why doesn't bdist_egg invoke the "build" task before doing whatever it does? Is there any documentation about the interface between these various tools and setup.py? I don't want to have to reverse engineer setuptools, distutils, distribute, etc. just to invoke a configure script.

drewp (drewp) wrote :

Same with virtualenv:

slash(pts/4):/tmp/e1% virtualenv .
slash(pts/4):/tmp/e1% bin/easy_install pycrypto
/tmp/e1/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/easy_install.py:198: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages)
  self.local_index = Environment(self.shadow_path+sys.path)
Searching for pycrypto
Reading http://pypi.python.org/simple/pycrypto/
Reading http://www.pycrypto.org/
Reading http://pycrypto.sourceforge.net
Reading http://www.amk.ca/python/code/crypto
Best match: pycrypto 2.4
Downloading http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.4.tar.gz
Processing pycrypto-2.4.tar.gz
Running pycrypto-2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-B41Ig2/pycrypto-2.4/egg-dist-tmp-_8DDme
Failure to get the list of managed files from darcs -- if you are building a package with 'setup.py sdist', 'setup.py bdist_egg', or other package-building commands, then the resulting package might be missing some files. If you are not building a package then you can ignore this warning.
error: Setup script exited with error: src/config.h: No such file or directory

The same problem I guess:

Searching for pycrypto
Reading http://pypi.python.org/simple/pycrypto/
Reading http://www.pycrypto.org/
Reading http://pycrypto.sourceforge.net
Reading http://www.amk.ca/python/code/crypto
Best match: pycrypto 2.4
Downloading http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.4.tar.gz
Processing pycrypto-2.4.tar.gz
Running pycrypto-2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-TYhOAX/pycrypto-2.4/egg-dist-tmp-OVNfeI
error: Setup script exited with error: src/config.h: No such file or directory

Changed in pycrypto:
status: New → Fix Released
bitprophet (jeff-bitprophet) wrote :

Fix confirmed for me on OS X 10.7, Python 2.7, multiple dependent projects. Thank you!

Daira Hopwood (daira) wrote :

Fixed in Tahoe trunk and 1.9.2 (soon to be released) by excluding PyCrypto 2.4.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.