<div dir="ltr">Hi Dave,<div><br></div><div><br></div><div style>You are missing the python3-dev package, or whatever it's called in Fedora-Land. That contains the headers that the compiler needs to compile C extensions for Python (specifically, Python.h). Without that header information, you can't compile the C extensions that are part of PyCrypto (or any other Python module that makes use of compiled extensions).</div>
<div style><br></div><div style>Basically, you just need to find and install that package from the Fedora repos.</div><div style><br></div><div style>Hope that helps,</div><div style>Philip Horger</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 12:10 AM, Dave Pawson <span dir="ltr"><<a href="mailto:dave.pawson@gmail.com" target="_blank">dave.pawson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
setup is Fedora 19, 64 bit.<br>
<br>
cmd was pip-python3 install pycrypto<br>
<br>
result<br>
<br>
...<br>
creating build/temp.linux-x86_64-3.3<br>
<br>
creating build/temp.linux-x86_64-3.3/src<br>
<br>
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -pipe<br>
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector<br>
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic<br>
-D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c99 -O3 -fomit-frame-pointer<br>
-Isrc/ -I/usr/include/python3.3m -c src/MD2.c -o<br>
build/temp.linux-x86_64-3.3/src/MD2.o<br>
<br>
src/MD2.c:31:20: fatal error: Python.h: No such file or directory<br>
<br>
#include "Python.h"<br>
<br>
^<br>
<br>
compilation terminated.<br>
<br>
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.<br>
<br>
error: command 'gcc' failed with exit status 1<br>
<br>
Any suggestions please?<br>
pycrypto installed fine on python 2.7<br>
<br>
regards<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dave Pawson<br>
XSLT XSL-FO FAQ.<br>
Docbook FAQ.<br>
<a href="http://www.dpawson.co.uk" target="_blank">http://www.dpawson.co.uk</a><br>
_______________________________________________<br>
pycrypto mailing list<br>
<a href="mailto:pycrypto@lists.dlitz.net">pycrypto@lists.dlitz.net</a><br>
<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto" target="_blank">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a><br>
</font></span></blockquote></div><br></div>