tonysimpson / nanomsg-python

nanomsg wrapper for python with multiple backends (CPython and ctypes) should support 2/3 and Pypy
MIT License
382 stars 85 forks source link

Under windows: OSError: [WinError 126] The specified module could not be found #47

Closed jonathon-love closed 7 years ago

jonathon-love commented 8 years ago

hi,

i installed nanomsg-python with pip install nanomsg, but when i try and import from it, i receive the following errors. my application works fine under OSX, and i'm only encountering this issue on windows.

from googling, i think the first line of the error might be diagnostic to someone who knows what it means.

screen shot 2016-02-03 at 13 54 53

could someone shed some light on this?

with thanks

jonathon-love commented 8 years ago

ok, it looks like the nanomsg.dll is missing. i've gotten it to work by building nanomsg.dll and copying it to the Scripts folder of my virtualenv. poking around in the site-packages/nanomsg* directories, i can't find this dll anywhere, so perhaps it isn't shipped with the package at all?

this is all in python 3.5

amiden commented 8 years ago

you need build nanomsg.dll with CMAKE

codypiersall commented 7 years ago

You can find some binary wheels on appveyor. Just click on the right environment, then click "Artifacts". These were made with the 1.0.0 tag of nanomsg. PR #54 will make this part of this repository.