开发者

Pylibmc: ImportError: dynamic module does not define init function (init_pylibmc)

>>> import pylibmc

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylibmc.py", line 55, in <开发者_如何学Go;module>
    import _pylibmc
ImportError: dynamic module does not define init function (init_pylibmc)

Trying to import pylibmc, which tries to import _pylibmc.so

I'm using Mac OSX 10.5.6


That's very odd. I (the developer of pylibmc) use Mac OS X 10.6.3 to develop pylibmc, and libmemcached 0.38 should be fine.

Try downloading the actual tarball and unpacking it, then:

$ sudo python setup.py install --with-libmemcached=/path/to/libmemcached-0.38
(lots of output)
$ python -m pylibmc -v
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜