Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[Solved] Failed attempt to call field 'ZMQ_Poller #13

Closed
hugows opened this Issue · 1 comment

2 participants

@hugows

Hi guys,

I can run most examples from the zguide successfully. But an example that uses Poller fails with this:

[machs Lua:master]$ lua rrbroker.lua
lua: /usr/local/lib/luarocks/share/lua/5.1/zmq/poller.lua:97: attempt to call field 'ZMQ_Poller' (a nil value)
stack traceback:
/usr/local/lib/luarocks/share/lua/5.1/zmq/poller.lua:97: in function
(tail call): ?
rrbroker.lua:18: in main chunk
[C]: ?

I have zeromq 2.1.7 installed, and had just installed luarocks using "https://github.com/Neopallium/lua-zmq/raw/master/rockspecs/lua-zmq-scm-1.rockspec".

Edit, Solved: I probably had multiple versions of zmq.so in the path]

@Neopallium
Owner

Please make sure you un-install all other version of lua-zmq. You may have to manually remove the "zmq.so" Lua module from Lua's LUA_CPATH search path.

One way to see which "zmq.so" file is being loaded is with strace:
strace -e trace=open lua rrbroker.lua 2>&1 | grep zmq.so

@Neopallium Neopallium closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.