[PYTHON-CRYPTO] Problem when installing the crypto package

GOUAICH Abdelkader gouaich at LIRMM.FR
Fri Dec 20 16:56:21 CET 2002


Hi there,


I've downloaded the pycryto package and I am having some troubles when
installing it.
Here are my config:
Windows 2000
Python 2.2
I'm using cygwin to make the setup.

And here the command line that i am using:

python setup.py  build --compiler=mingw32


I have had already a problem with cl.exe but I have undestood that it war a
compiler problem that is way I have changed the --compiler option.

However I still having this message error:

...
not copying .\PublicKey\__init__.py (output up-to-date)
running build_ext
building 'Crypto.Hash.MD2' extension
skipping src/MD2.c (build\temp.win32-2.2\Release\md2.o up-to-date)
writing build\temp.win32-2.2\Release\MD2.def
C:\cygwin\bin\gcc.exe -mno-cygwin -mdll -static --entry _DllMain at 12 -s
build\tem
p.win32-2.2\Release\md2.o
build\temp.win32-2.2\Release\MD2.def -Lc:\python22\lib
s -lpython22 -o build\lib.win32-2.2\Crypto\Hash\MD2.pyd
build\temp.win32-2.2\Release\md2.o(.text+0x444):MD2.c: undefined reference
to `_
imp___Py_NoneStruct'
build\temp.win32-2.2\Release\md2.o(.text+0x44c):MD2.c: undefined reference
to `_
imp___Py_NoneStruct'
build\temp.win32-2.2\Release\md2.o(.text+0x5b9):MD2.c: undefined reference
to `_
imp__PyType_Type'
error: command 'gcc' failed with exit status 1

Thanks,



More information about the python-crypto mailing list