Problem when installing the crypto package

GOUAICH Abdelkader <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <[email protected]>
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@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,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.