zeromq/pyzmq — Issue #165: ImportError: ... undefined symbol: PyUnicodeUCS4_DecodeUTF8
Author: scottcarr
Created: 2012-01-11 22:51:21+00:00
State: open

When I import pyzmq I get the following error:

>>> import zmq
Traceback (most recent call last):
File "", line 1, in
File "/usr/share/enthought/lib/python2.7/site-packages/pyzmq-2.1.11-py2.7-64b-linux.egg/zmq/__init__.py", line 35, in
from zmq.utils import initthreads # initialize threads
ImportError: /usr/share/enthought/lib/python2.7/site-packages/pyzmq-2.1.11-py2.7-64b-linux.egg/zmq/utils/initthreads.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8

Could this be caused by my python using ucs2 and the .egg is ucs4? I also tried building my own .egg and I get the same error. I'm not sure how to tell it to build for ucs2. Can you please tell me how that's done, if that's what I should be doing?

sys.maxunicode gives me:

>>> sys.maxunicode
65535

Thank you.