Advertisement
riseriyo

OSError: dlopen Symbol not found: __ZNSs4_Rep20_S_empty_rep_

Nov 20th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. # Installation appears to be successful. However, when launching the Python Interpreter and entering 'import gmp', it
  2. # errs with: OSError: dlopen() Symbol not found: __ZNSs4_Rep20_S_empty_rep_
  3. # I found a post on the Anaconda Google Group that mentioned zeromq library linking to symbols not available in system:
  4. # https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/2Ywv6ggdIo4
  5. # http://superuser.com/questions/282450/where-do-i-set-dyld-library-path-on-mac-os-x-and-is-it-a-good-idea
  6. # http://stackoverflow.com/questions/1596945/building-osx-app-bundle
  7. # regarding otools -L and install_name_tool
  8.  
  9. (test1)Rise:test1 riseriyo$ conda list
  10. # packages in environment at /Users/riseriyo/anaconda/envs/test1:
  11. #
  12. dill 0.2.1 <pip>
  13. gevent 1.0.1 <pip>
  14. gmp (/Users/riseriyo/workspace/test1/src/gmp) 0.0.1 <pip>
  15. greenlet 0.4.5 <pip>
  16. openssl 1.0.1h 1
  17. pip 1.5.6 py27_0
  18. python 2.7.8 1
  19. pyzmq 14.4.1 <pip>
  20. readline 6.2 2
  21. setuptools 7.0 py27_0
  22. sqlite 3.8.4.1 0
  23. tk 8.5.15 0
  24. wsgiref 0.1.2 <pip>
  25. zlib 1.2.7 1
  26. (test1)Rise:test1 riseriyo$ python
  27. Python 2.7.8 |Continuum Analytics, Inc.| (default, Aug 21 2014, 15:21:46)
  28. [GCC 4.2.1 (Apple Inc. build 5577)] on darwin
  29. Type "help", "copyright", "credits" or "license" for more information.
  30. Anaconda is brought to you by Continuum Analytics.
  31. Please check out: http://continuum.io/thanks and https://binstar.org
  32. >>> import gmp
  33. Traceback (most recent call last):
  34. File "<stdin>", line 1, in <module>
  35. File "/Users/riseriyo/workspace/test1/src/gmp/gmp/__init__.py", line 2, in <module>
  36. from worker import WorkerHandle as Worker
  37. File "/Users/riseriyo/workspace/test1/src/gmp/gmp/worker.py", line 4, in <module>
  38. import zmq.green as zmq
  39. File "/Users/riseriyo/anaconda/envs/test1/lib/python2.7/site-packages/zmq/__init__.py", line 32, in <module>
  40. _libzmq = ctypes.CDLL(bundled[0], mode=ctypes.RTLD_GLOBAL)
  41. File "/Users/riseriyo/anaconda/envs/test1/lib/python2.7/ctypes/__init__.py", line 365, in __init__
  42. self._handle = _dlopen(self._name, mode)
  43. OSError: dlopen(/Users/riseriyo/anaconda/envs/test1/lib/python2.7/site-packages/zmq/libzmq.so, 10): Symbol not found: __ZNSs4_Rep20_S_empty_rep_storageE
  44. Referenced from: /Users/riseriyo/anaconda/envs/test1/lib/python2.7/site-packages/zmq/libzmq.so
  45. Expected in: dynamic lookup
  46.  
  47. >>>
  48. (test2)Rise:test2 riseriyo$ otool -L /Users/riseriyo/anaconda/envs/test2/lib/python2.7/site-packages/zmq/libzmq.so
  49. /Users/riseriyo/anaconda/envs/test2/lib/python2.7/site-packages/zmq/libzmq.so:
  50. /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
  51. /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 283.0.0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement