473,231 Members | 1,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

compile pycrypto on windows

Hi

I'm trying to compile pycrypto on windows. I've installed mingw and try to
run the command 'python setup.py build -c mingw32 install' and I get this
error:

$ python setup.py build -c mingw32 install
running build
running build_py
creating build
creating build\lib.win32-2.3
creating build\lib.win32-2.3\Crypto
copying .\test.py -> build\lib.win32-2.3\Crypto
copying .\__init__.py -> build\lib.win32-2.3\Crypto
creating build\lib.win32-2.3\Crypto\Hash
copying .\Hash\HMAC.py -> build\lib.win32-2.3\Crypto\Hash
copying .\Hash\MD5.py -> build\lib.win32-2.3\Crypto\Hash
copying .\Hash\SHA.py -> build\lib.win32-2.3\Crypto\Hash
copying .\Hash\__init__.py -> build\lib.win32-2.3\Crypto\Hash
creating build\lib.win32-2.3\Crypto\Cipher
copying .\Cipher\__init__.py -> build\lib.win32-2.3\Crypto\Cipher
creating build\lib.win32-2.3\Crypto\Util
copying .\Util\number.py -> build\lib.win32-2.3\Crypto\Util
copying .\Util\randpool.py -> build\lib.win32-2.3\Crypto\Util
copying .\Util\RFC1751.py -> build\lib.win32-2.3\Crypto\Util
copying .\Util\test.py -> build\lib.win32-2.3\Crypto\Util
copying .\Util\__init__.py -> build\lib.win32-2.3\Crypto\Util
creating build\lib.win32-2.3\Crypto\Protocol
copying .\Protocol\AllOrNothing.py -> build\lib.win32-2.3\Crypto\Protocol
copying .\Protocol\Chaffing.py -> build\lib.win32-2.3\Crypto\Protocol
copying .\Protocol\__init__.py -> build\lib.win32-2.3\Crypto\Protocol
creating build\lib.win32-2.3\Crypto\PublicKey
copying .\PublicKey\DSA.py -> build\lib.win32-2.3\Crypto\PublicKey
copying .\PublicKey\ElGamal.py -> build\lib.win32-2.3\Crypto\PublicKey
copying .\PublicKey\pubkey.py -> build\lib.win32-2.3\Crypto\PublicKey
copying .\PublicKey\qNEW.py -> build\lib.win32-2.3\Crypto\PublicKey
copying .\PublicKey\RSA.py -> build\lib.win32-2.3\Crypto\PublicKey
copying .\PublicKey\__init__.py -> build\lib.win32-2.3\Crypto\PublicKey
running build_ext
building 'Crypto.Hash.MD2' extension
creating build\temp.win32-2.3
creating build\temp.win32-2.3\Release
creating build\temp.win32-2.3\Release\src
c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Isrc/ -Ic:\Python23\include
-Ic:\Python23\PC -c src/MD2.c -o build\temp.win32-2.3\Release\src\md2.o
writing build\temp.win32-2.3\Release\src\MD2.def
c:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.3\Release\sr
\md2/o build\temp.win32-2.3\Release\src\MD2.def -Lc:\Python23\libs -Lc
\Python23\PCBuild -lpython23 -o build\lib.win32-2.3\Crypto\Hash\MD2.pyd
build\temp.win32-2.3\Release\src\md2.o(.text+0x3e3):MD2.c: undefined
reference to `_imp___Py_NoneStruct'
build\temp.win32-2.3\Release\src\md2.o(.text+0x3eb):MD2.c: undefined
reference to `_imp___Py_NoneStruct'
build\temp.win32-2.3\Release\src\md2.o(.text+0x53c):MD2.c: undefined
reference to `_imp__PyType_Type'
---

can someone please help?

thanx
--
Haim
Jul 18 '05 #1
2 7725
Haim Ashkenazi <ha**@babysnakes.org> writes:
Hi

I'm trying to compile pycrypto on windows. I've installed mingw and try to
run the command 'python setup.py build -c mingw32 install' and I get this
error:

$ python setup.py build -c mingw32 install
running build
running build_py [snip] c:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.3\Release\sr
\md2/o build\temp.win32-2.3\Release\src\MD2.def -Lc:\Python23\libs -Lc
\Python23\PCBuild -lpython23 -o build\lib.win32-2.3\Crypto\Hash\MD2.pyd
build\temp.win32-2.3\Release\src\md2.o(.text+0x3e3):MD2.c: undefined
reference to `_imp___Py_NoneStruct'
build\temp.win32-2.3\Release\src\md2.o(.text+0x3eb):MD2.c: undefined
reference to `_imp___Py_NoneStruct'
build\temp.win32-2.3\Release\src\md2.o(.text+0x53c):MD2.c: undefined
reference to `_imp__PyType_Type'
---

can someone please help?
Did you create libpythonXX.a ?
http://sebsauvage.net/python/mingw.html describes how to do that.

thanx
--
Haim


--
brainbot technologies ag
boppstrasse 64 . 55118 mainz . germany
fon +49 6131 211639-1 . fax +49 6131 211639-2
http://brainbot.com/ mailto:ra**@brainbot.com
Jul 18 '05 #2
ra**@brainbot.com wrote:
Haim Ashkenazi <ha**@babysnakes.org> writes:
Hi

I'm trying to compile pycrypto on windows. I've installed mingw and try
to run the command 'python setup.py build -c mingw32 install' and I get
this error:

$ python setup.py build -c mingw32 install
running build
running build_py

[snip]
c:\mingw\bin\gcc.exe -mno-cygwin -shared -s
build\temp.win32-2.3\Release\sr \md2/o
build\temp.win32-2.3\Release\src\MD2.def -Lc:\Python23\libs -Lc
\Python23\PCBuild -lpython23 -o build\lib.win32-2.3\Crypto\Hash\MD2.pyd
build\temp.win32-2.3\Release\src\md2.o(.text+0x3e3):MD2.c: undefined
reference to `_imp___Py_NoneStruct'
build\temp.win32-2.3\Release\src\md2.o(.text+0x3eb):MD2.c: undefined
reference to `_imp___Py_NoneStruct'
build\temp.win32-2.3\Release\src\md2.o(.text+0x53c):MD2.c: undefined
reference to `_imp__PyType_Type' ---

can someone please help?


Did you create libpythonXX.a ?
http://sebsauvage.net/python/mingw.html describes how to do that.

thanx, that solved it.

Bye
--
Haim
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Carmine Noviello | last post by:
Hi, I want to say first of all that I'm totally a newbie in cryptography world. Is there someone can show me a simple example on how to use PyCrypto lib and RSA to encrypt large text file? I'm...
0
by: Fuzzyman | last post by:
The location of the prebuilt windows installer for PyCypto 2.0 (for python 2.4) has changed. Apologies for any confusion, this is because of a website reorganisation at Voidspace. The new...
11
by: dirvine | last post by:
Does anyone know if pycrypto is active at all. I have been browsing groups etc. for some info and have found entries from 2003 (latest) regarding some bits I was looking for in particular reference...
13
by: luca72 | last post by:
Hello I have to make an easy operation but reading the pycrypto doc. a never see AES example I have to cript this key 'ea523a664dabaa4476d31226a1e3bab0' with the AES. Can you help me for make it...
2
by: Ning | last post by:
I'm trying to write an IM client which sends encrypted messages to the server. I tried to use pycrypto library, but when I came to 3DES cypher I was confused about the keysize to use. In the...
3
by: mirandacascade | last post by:
Operating system: Win XP Vsn of Python: 2.4 Situation is this: Required to calcluate a message digest. The process for calcluating the digest must use an SHA-256 algorithm. Questions: 1) Is...
5
by: mirandacascade | last post by:
Attempting to determine whether the PyCrypto package has the capability to perform AES256 encryption. I received the following C# snippet: CryptoProvider provider = new CryptoProvider();...
0
by: yaipa | last post by:
I snipped this bit of code out of Andrew Kuchling 'pyCrypto' test fixture. Having a need to XOR Binascii Hex strings in my current project, I found it very helpful to cut down on a bit of code...
1
by: cokofreedom | last post by:
I am really stuck presently, trying to install these on my Windows XP. I have downloaded easy_install and it is now in Python25\Scripts but none of the commands I have read in either program folder...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.