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

Closed
hugows opened this Issue Aug 4, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@hugows

hugows commented Aug 4, 2011

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 </usr/local/lib/luarocks/share/lua/5.1/zmq/poller.lua:95>
(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

This comment has been minimized.

Show comment Hide comment
@Neopallium

Neopallium Aug 4, 2011

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

Owner

Neopallium commented Aug 4, 2011

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 Aug 4, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment