Giter Site home page Giter Site logo

Unable to build on windows about pyzmq HOT 6 CLOSED

zeromq avatar zeromq commented on May 19, 2024
Unable to build on windows

from pyzmq.

Comments (6)

jkd avatar jkd commented on May 19, 2024

Apparently this is only a problem in master. If I check out 2.0.10 I get a bunch of these:
constants.obj : error LNK2019: unresolved external symbol __imp__PyImport_Import referenced in function ___Pyx_ImportModule
constants.obj : error LNK2019: unresolved external symbol __imp__PyString_FromString referenced in function ___Pyx_ImportModule

when linking the first file, constants.obj.

from pyzmq.

minrk avatar minrk commented on May 19, 2024

The 'undeclared identifier' errors are because you have the wrong version of zeromq. pyzmq/master currently depends on zeromq/master, and I made a note of this on the instructions you mentioned. If you want to link against zeromq/maint, the matching branch for pyzmq right now is '2.0.x'.

As for your linking errors, those are basic Python symbols, so I would guess that you don't have your PATH configured correctly to find the Python dlls.

How did you install Python, and what is your PATH?

from pyzmq.

jkd avatar jkd commented on May 19, 2024

Thanks for replying, minrk. Continued selective Googling finally revealed someone else having similar problems. I obtained mvs 2008, checked out maint and 2.0.x, changed the profile to build to x64 as mentioned in the link, and got a successful build.

That was pretty painful. I do hope you guys find someone to maintain some windows binaries for you. I wish I knew win development enough to volunteer. In the meantime, it might help others if you note the need for cython and for the 64-bit compiler. Note that there is no free version of visual studio for 64 bit, but you can get a 90-day evaluation of 2008.

from pyzmq.

minrk avatar minrk commented on May 19, 2024

I just want to be clear. The ZeroMQ 'solution' specifies win32, so you had to change that to x64 per the mailing-list, and rebuild ZeroMQ. From there, the remaining instructions worked fine?

Is that correct?

Binaries would certainly be lovely, but there currently aren't any pyzmq developers that use Windows at all, let alone as a dev platform. I have a VM for testing, but that's it.

If you are volunteering, that would be great!

from pyzmq.

jkd avatar jkd commented on May 19, 2024

Correct. Once I changed the 'solution' to x64 and rebuilt ZeroMQ, the rest of the instructions worked.

At our shop here we run Python on Linux servers but develop on Windows 7. If this prototype I'm assembling with 0MQ works out, you'll have to up your pyzmq windows developer count to 4. If we can spare a moment I'll have one of the guys put together a windows build process for you guys.

from pyzmq.

minrk avatar minrk commented on May 19, 2024

That would be great, thanks!

I posted the mailing-list note to the wiki, so hopefully that will help others.

from pyzmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.