Guest User

Untitled

a guest
Nov 22nd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. yassine@cgxslymm ~/BOTTLE $ python
  2. Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
  3. [GCC 4.4.5] on linux2
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> import imp
  6. >>> from os.path import dirname
  7. >>> imp.find_module("_sesame_python_api")
  8. (<open file '_sesame_python_api.so', mode 'rb' at 0xb73f7020>, '_sesame_python_api.so', ('.so', 'rb', 3))
  9. >>> fp,path,description = imp.find_module("_sesame_python_api")
  10. >>> fp
  11. <open file '_sesame_python_api.so', mode 'rb' at 0xb73f7078>
  12. >>> path
  13. '_sesame_python_api.so'
  14. >>> description
  15. ('.so', 'rb', 3)
  16. >>> imp.load_module("_sesame_python_api.so",fp,path,description)
  17. Traceback (most recent call last):
  18. File "<stdin>", line 1, in <module>
  19. ImportError: ./_sesame_python_api.so: undefined symbol: PyCapsule_New
  20. >>>
Add Comment
Please, Sign In to add comment