我有zeromq的问题,我收到此错误:
Traceback (most recent call last): File "BasicPub.py", line 1, in <module>
import zmq File "/home/przemek/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/zmq/__init__.py", line 66, in <module>
from zmq import backend File "/home/przemek/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/zmq/backend/__init__.py", line 40, in <module>
reraise(*exc_info) File "/home/przemek/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/zmq/backend/__init__.py", line 27, in <module>
_ns = select_backend(first) File "/home/przemek/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/zmq/backend/select.py", line 27, in select_backend
mod = __import__(name, fromlist=public_api) File "/home/przemek/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/zmq/backend/cython/__init__.py", line 6, in <module>
from . import (constants, error, message, context, ImportError: /home/przemek/Enthought/Canopy_32bit/User/lib/python2.7/site-packages/zmq/backend/cython/message.so: undefined symbol: zmq_msg_gets
我这样安装:
tar xzvf zeromq-4.1.4.tar.gz
./configure
./configure --without-libsodium
make
sudo make install
pip install pyzmq
我使用python2.7和Ubuntu 14.04
你可以帮帮我吗?答案 0 :(得分:3)
如果您使用pip安装pyzmq,我建议尝试将zmq捆绑到pyzmq:
pip install pyzmq --install-option="--zmq=bundled"
答案 1 :(得分:0)
zeromq 4.0.4(ubuntu / trusty版本)没有函数<div class='material' id='material1'>
<a class='product'><div class='tiles_bg' style='background:url(media/images/tile2.jpg);'><input class='select_all' id='tile' type='checkbox' name='1marm' value='Verde Guatemala'></div><p>Verde Guatemala</p></a>
<a class='product'><div class='tiles_bg' style='background:url(media/images/tile1.jpg);'><input class='select_all' id='tile' type='checkbox' name='1marm' value='Bianco Carrara'></div><p>Bianco Carrara</p></a>
</div>
<button type="button" class="nasta" onClick="processStep1()">Nasta</button>
和zeromq 4.1.4具有该功能的事实表明正在使用错误版本的C库。
在构建pyzmq时可能会找到新版本的C库,但由于某些原因,在加载模块时会加载旧版本。