Created
September 30, 2010 10:47
-
-
Save anonymous/604388 to your computer and use it in GitHub Desktop.
PyObject_GetBuffer missing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/setup.py b/setup.py | |
index b33bb0b..189d709 100644 | |
--- a/setup.py | |
+++ b/setup.py | |
@@ -89,6 +89,7 @@ class CleanCommand(Command): | |
cmdclass = {'test':TestCommand, 'clean':CleanCommand } | |
try: | |
+ raise ImportError() | |
from Cython.Distutils import build_ext | |
except ImportError: | |
zmq_source = os.path.join('zmq','_zmq.c') | |
debian@debian:~/dev/zeromq/rpyzmq$ python setup.py build | |
running build | |
running build_py | |
creating build | |
creating build/lib.linux-i686-2.5 | |
creating build/lib.linux-i686-2.5/zmq | |
copying zmq/__init__.py -> build/lib.linux-i686-2.5/zmq | |
creating build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_poll.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_monqueue.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_device.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_message.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_socket.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_multipart.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_pubsub.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_context.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_pair.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_log.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/__init__.py -> build/lib.linux-i686-2.5/zmq/tests | |
copying zmq/tests/test_reqrep.py -> build/lib.linux-i686-2.5/zmq/tests | |
creating build/lib.linux-i686-2.5/zmq/eventloop | |
copying zmq/eventloop/win32_support.py -> build/lib.linux-i686-2.5/zmq/eventloop | |
copying zmq/eventloop/stack_context.py -> build/lib.linux-i686-2.5/zmq/eventloop | |
copying zmq/eventloop/ioloop.py -> build/lib.linux-i686-2.5/zmq/eventloop | |
copying zmq/eventloop/__init__.py -> build/lib.linux-i686-2.5/zmq/eventloop | |
copying zmq/eventloop/zmqstream.py -> build/lib.linux-i686-2.5/zmq/eventloop | |
creating build/lib.linux-i686-2.5/zmq/log | |
copying zmq/log/__init__.py -> build/lib.linux-i686-2.5/zmq/log | |
copying zmq/log/handlers.py -> build/lib.linux-i686-2.5/zmq/log | |
copying zmq/_zmq.pxd -> build/lib.linux-i686-2.5/zmq | |
copying zmq/buffers.pxd -> build/lib.linux-i686-2.5/zmq | |
copying zmq/allocate.pxd -> build/lib.linux-i686-2.5/zmq | |
running build_ext | |
building 'zmq._zmq' extension | |
creating build/temp.linux-i686-2.5 | |
creating build/temp.linux-i686-2.5/zmq | |
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.5 -c zmq/_zmq.c -o build/temp.linux-i686-2.5/zmq/_zmq.o | |
zmq/_zmq.c: In function ‘__pyx_f_3zmq_7buffers_is_buffer’: | |
zmq/_zmq.c:11572: warning: implicit declaration of function ‘PyObject_CheckBuffer’ | |
zmq/_zmq.c: In function ‘__pyx_f_3zmq_7buffers_asbuffer’: | |
zmq/_zmq.c:11731: warning: implicit declaration of function ‘PyObject_GetBuffer’ | |
zmq/_zmq.c:11805: warning: implicit declaration of function ‘PyBuffer_Release’ | |
zmq/_zmq.c: In function ‘__pyx_f_3zmq_7buffers_frombuffer_3’: | |
zmq/_zmq.c:12302: warning: implicit declaration of function ‘PyBuffer_FillInfo’ | |
zmq/_zmq.c:12330: warning: implicit declaration of function ‘PyMemoryView_FromBuffer’ | |
zmq/_zmq.c:12330: warning: assignment makes pointer from integer without a cast | |
zmq/_zmq.c: In function ‘__pyx_f_3zmq_7buffers_viewfromobject’: | |
zmq/_zmq.c:12640: warning: implicit declaration of function ‘PyMemoryView_FromObject’ | |
zmq/_zmq.c:12640: warning: assignment makes pointer from integer without a cast | |
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.5/zmq/_zmq.o -L/usr/local/lib -lzmq -o build/lib.linux-i686-2.5/zmq/_zmq.so | |
building 'zmq.devices' extension | |
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include/python2.5 -c zmq/devices.c -o build/temp.linux-i686-2.5/zmq/devices.o | |
zmq/devices.c: In function ‘__pyx_f_3zmq_7buffers_is_buffer’: | |
zmq/devices.c:4595: warning: implicit declaration of function ‘PyObject_CheckBuffer’ | |
zmq/devices.c: In function ‘__pyx_f_3zmq_7buffers_asbuffer’: | |
zmq/devices.c:4754: warning: implicit declaration of function ‘PyObject_GetBuffer’ | |
zmq/devices.c:4828: warning: implicit declaration of function ‘PyBuffer_Release’ | |
zmq/devices.c: In function ‘__pyx_f_3zmq_7buffers_frombuffer_3’: | |
zmq/devices.c:5325: warning: implicit declaration of function ‘PyBuffer_FillInfo’ | |
zmq/devices.c:5353: warning: implicit declaration of function ‘PyMemoryView_FromBuffer’ | |
zmq/devices.c:5353: warning: assignment makes pointer from integer without a cast | |
zmq/devices.c: In function ‘__pyx_f_3zmq_7buffers_viewfromobject’: | |
zmq/devices.c:5663: warning: implicit declaration of function ‘PyMemoryView_FromObject’ | |
zmq/devices.c:5663: warning: assignment makes pointer from integer without a cast | |
zmq/devices.c: At top level: | |
zmq/devices.c:2729: warning: ‘__pyx_f_3zmq_7devices_z_free’ defined but not used | |
zmq/devices.c:5769: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_13tracker_queue___get__’ defined but not used | |
zmq/devices.c:5785: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_13tracker_queue___set__’ defined but not used | |
zmq/devices.c:5800: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_13tracker_queue___del__’ defined but not used | |
zmq/devices.c:5823: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_7tracker___get__’ defined but not used | |
zmq/devices.c:5839: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_7tracker___set__’ defined but not used | |
zmq/devices.c:5854: warning: ‘__pyx_pf_3zmq_4_zmq_7Message_7tracker___del__’ defined but not used | |
zmq/devices.c:5877: warning: ‘__pyx_pf_3zmq_4_zmq_7Context_6closed___get__’ defined but not used | |
zmq/devices.c:5893: warning: ‘__pyx_pf_3zmq_4_zmq_7Context_6closed___set__’ defined but not used | |
zmq/devices.c:5908: warning: ‘__pyx_pf_3zmq_4_zmq_7Context_6closed___del__’ defined but not used | |
zmq/devices.c:5931: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_11socket_type___get__’ defined but not used | |
zmq/devices.c:5955: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_11socket_type___set__’ defined but not used | |
zmq/devices.c:5981: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_7context___get__’ defined but not used | |
zmq/devices.c:5997: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_7context___set__’ defined but not used | |
zmq/devices.c:6018: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_7context___del__’ defined but not used | |
zmq/devices.c:6041: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_6closed___get__’ defined but not used | |
zmq/devices.c:6057: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_6closed___set__’ defined but not used | |
zmq/devices.c:6072: warning: ‘__pyx_pf_3zmq_4_zmq_6Socket_6closed___del__’ defined but not used | |
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.5/zmq/devices.o -L/usr/local/lib -lzmq -o build/lib.linux-i686-2.5/zmq/devices.so | |
debian@debian:~/dev/zeromq/rpyzmq$ nm build/lib.linux-i686-2.5/zmq/_zmq.so | grep 'PyObject_.*Buffer' | |
U PyObject_AsReadBuffer | |
U PyObject_AsWriteBuffer | |
U PyObject_CheckBuffer | |
U PyObject_GetBuffer | |
debian@debian:~/dev/zeromq/rpyzmq$ ldd build/lib.linux-i686-2.5/zmq/_zmq.so | |
linux-gate.so.1 => (0xb7f25000) | |
libzmq.so.0 => /usr/local/lib/libzmq.so.0 (0xb7e9e000) | |
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7e85000) | |
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7d29000) | |
libuuid.so.1 => /lib/libuuid.so.1 (0xb7d25000) | |
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7c37000) | |
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7c11000) | |
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7c04000) | |
/lib/ld-linux.so.2 (0xb7f26000) | |
debian@debian:~/dev/zeromq/rpyzmq$ cd build/ | |
lib.linux-i686-2.5/ temp.linux-i686-2.5/ | |
debian@debian:~/dev/zeromq/rpyzmq$ cd build/lib.linux-i686-2.5/ | |
debian@debian:~/dev/zeromq/rpyzmq/build/lib.linux-i686-2.5$ python | |
Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14) | |
[GCC 4.3.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import zmq | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "zmq/__init__.py", line 28, in <module> | |
from zmq import _zmq | |
ImportError: zmq/_zmq.so: undefined symbol: PyObject_GetBuffer | |
>>> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment