Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yassine@cgxslymm ~/BOTTLE $ python
- Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
- [GCC 4.4.5] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import imp
- >>> from os.path import dirname
- >>> imp.find_module("_sesame_python_api")
- (<open file '_sesame_python_api.so', mode 'rb' at 0xb73f7020>, '_sesame_python_api.so', ('.so', 'rb', 3))
- >>> fp,path,description = imp.find_module("_sesame_python_api")
- >>> fp
- <open file '_sesame_python_api.so', mode 'rb' at 0xb73f7078>
- >>> path
- '_sesame_python_api.so'
- >>> description
- ('.so', 'rb', 3)
- >>> imp.load_module("_sesame_python_api.so",fp,path,description)
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- ImportError: ./_sesame_python_api.so: undefined symbol: PyCapsule_New
- >>>
Add Comment
Please, Sign In to add comment