Hi Marcus,

Sorry but it still does not work.  
I deleted the /usr/lib/python2.6/dist-packages/pyowfs folder and
installed the new code which created
a /usr/lib/python2.6/dist-packages/pyowfs-0.1 folder
I ran export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/owfs/lib
Then this is what I get in Python -

>>> from pyowfs import Connection
>>> root = Connection ("/dev/ttyD1")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/pyowfs/owfs.py", line
281, in __init__
    capi = libcapi.CAPI ()
  File "/usr/local/lib/python2.6/dist-packages/pyowfs/libcapi.py", line
44, in __init__
    self.libcapi = ctypes.cdll.LoadLibrary ("libowcapi.so")
  File "/usr/lib/python2.6/ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libowcapi.so: cannot open shared object file: No such file or
directory
>>> 


I guess I have done something wrong, but I don't know what.  

Thanks

Mick



On Thu, 2010-03-18 at 19:24 +0100, Marcus Priesch wrote:
> Hi Mick,
> 
> sorry for beeing lazy the last days, but fortunately i now have a
> solution for you ... 
> 
> after testing out a fresh compile and install from both owfs and pyowfs
> i also was not able to specify the path to the .so files ... 
> 
> i now have fixed this behaviour inside pyowfs (now using
> ctypes.cdll.LoadLibrary instead of ctypes.CDLL which honors the
> LD_LIBRARY_PATH settings ...)
> 
> i have tested it and for me it works by setting the LD_LIBRARY_PATH
> ahead of invoking the python interpreter.
> 
> sorry for the inconveniences but i never tested it with a non-standard
> library path.
> 
> you can find the new version (0.1.1) on 
> 
>       http://priesch.co.at/pyowfs
> 
> hope this works now for you !
> 
> have fun & thanks for pointing this out!!
> 
> regards,
> marcus.
> 
> 



------------------------------------------------------------------------------
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
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to