Re: urgent issue: loading lib under Linux [SEC=UNCLASSIFIED]

"Axel Seibert" <[email protected]>
Newsgroups gmane.comp.python.ctypes
Message-ID <[email protected]>
> Can you use a fully qualified path name?

Python 2.6.4 (r264:75706, Mar 17 2010, 20:42:48)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> cdll.LoadLibrary("/home/casa/api700p002linux/lib/libar.so")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/casa/python/lib/python2.6/ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "/home/casa/python/lib/python2.6/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/casa/api700p002linux/lib/libar.so: cannot open shared object file: No such file or directory

No, I cannot.

Any other thoughts? What about this handle parameter that one can hand over to CDLL?

Thanx,
Axel

--
[email protected]                        http://www.globonaut.org 
  You are young only once but you can stay immature indefinitely. 
PGP Fingerprint: 9AAB CEBC CB6C 7C20 BEBC  4B88 3E2E A5CA 57F4 D70B

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
ctypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ctypes-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.