[zeromq-dev] building python bindings on Windows
brad.reisfeld at gmail.com
Sat Jun 26 18:16:15 CEST 2010
Brian Granger suggested that I contact the list about the following.
I am interested in compiling and using py0mq on Windows XP.
I followed the straightforward directions at
In particular, I used MS Visual Studio 2008 to build libzmq.dll .
I then edited the python setup.cfg to point to the appropriate
directories and built and installed the pyzmq package using the
Everything looks fine and I now have a zmq directory in
python's site-packages directory with three items:
However, when I try to import the package, I get
>>> import zmq
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Python26\lib\site-packages\zmq\__init__.py", line 26, in
from zmq import _zmq
ImportError: DLL load failed: The specified module could not be found.
I have confirmed that the zmq directory is in my sys.path.
I have tried this in both Python 2.5.4 and Python 2.6.5
Do you have any idea what could be wrong?
Could there be an issue with me compiling the zmq.dll with Visual
studio and then creating the python extension with the mingw32-gcc
compiler? (Although when I try 'python setup.py build
--compiler=msvc', I get an error 'Python was built with Visual
Studio 2003; extensions must be built with a compiler than can
generate compatible binaries.')
Thank you for your help.
More information about the zeromq-dev