ImportError : undefined symbol

1,837 views
Skip to first unread message

notedit

unread,
Jul 21, 2011, 12:29:50 PM7/21/11
to cython-users
hi cython users:

i am new to cython.today i want to use cython to wapper the
localmemcache project.

i wapper one and successfuly compile it . but when i use it ,it raises
an ImportError:undefined symbol.

i can not figure out where is the problem, some one can help me ?

the localmemcache project:http://localmemcache.rubyforge.org/

the pyx file: http://code.google.com/p/python-wrapper-for-localmemcache/source/browse/trunk/mc_python.pyx

thx

notedit

unread,
Jul 21, 2011, 12:34:04 PM7/21/11
to cython-users
ps:
when i  "from mc_python import LMClient"
the full error information is:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: ./mc_python.so: undefined symbol: local_memcache_get_new

2011/7/22 notedit <not...@gmail.com>



--

Best Wishes..


Robert Bradshaw

unread,
Jul 21, 2011, 1:35:39 PM7/21/11
to cython...@googlegroups.com

You're likely forgetting to link the library in your setup.py. See
http://docs.cython.org/src/tutorial/clibraries.html

- Robert

Reply all
Reply to author
Forward
0 new messages