Hi Marcus,
I still get the same problem.
I have just removed owfs and pyowfs completely and downloaded
owfs-2.7p32.tar.gw and pyowfs0.1.2.tar.gz to /usr/local/src and
installed them both from there.
I have two libowcapi.so
lrwxrwxrwx 1 root root 23 2010-03-20 16:34 /opt/owfs/lib/libowcapi.so ->
libowcapi-2.7.so.32.0.0
lrwxrwxrwx 1 root root 23 2010-03-20
16:30 /usr/local/src/owfs-2.7p32/module/owcapi/src/c/.libs/libowcapi.so
-> libowcapi-2.7.so.32.0.0
I have run export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/owfs/lib
m...@mick-desktop: echo $LD_LIBRARY_PATH
:/opt/owfs/lib
When I run the Python I get -
>>> 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
>>>
Where does it expect to find libowcapi.so ? Can I create a symlink to
fix the problem?
Regards
Mick
On Fri, 2010-03-19 at 23:33 +0100, Marcus Priesch wrote:
> Hi Mick,
>
> are you sure a libowcapi.so can be found in /opt/owfs/lib ?
>
> i just tried a fresh install with the following commands and it worked
> (at least i was able to initialise the usb adapter i have here)
>
> p...@mexx-desktop:~$ mkdir tmp
> p...@mexx-desktop:~$ cd tmp
> p...@mexx-desktop:~/tmp$ tar -xzvf owfs-2.7p32.tar.gz
> p...@mexx-desktop:~/tmp$ ./configure --prefix=/home/pr/tmp/owfs
> --disable-owperl && make && make install
> [...]
> p...@mexx-desktop:~/tmp$ virtualenv python_virtenv
> [...]
> p...@mexx-desktop:~/tmp$ source python_virtenv/bin/activate
> (python_virtenv)p...@mexx-desktop:~/tmp$ easy_install pyowfs
> [...]
> (python_virtenv)p...@mexx-desktop:~/tmp$ export
> LD_LIBRARY_PATH=/home/pr/tmp/owfs/lib
> (python_virtenv)p...@mexx-desktop:~/tmp$ python
> [...]
> >>> import pyowfs
> >>> c = pyowfs.Connection ("u")
> Could not open the USB bus master. Is there a problem with permissions?
> DEFAULT: ow_ds9490.c:DS9490_detect(311) Could not open the USB bus master. Is
> there a problem with permissions?
> DEFAULT: owlib.c:SetupInboundConnections(181) Cannot open USB bus master
> >>>
>
> if i get rid of the permission problem it would probably work ;) -
> however, currently i have no clue how ... it was hard enough to get rid
> of the kernel 1wire modules getting autoloaded ... however, i assume you
> dont have this kind of problems ...
>
> i am running ubuntu 9.10 with python2.6
>
> btw: virtualenv is in package python-virtualenv on ubuntu and provides a
> convenient way to not pollute your system python path with packages you
> just try out ...
>
> hope this helps,
> marcus.
>
------------------------------------------------------------------------------
Download Intel® 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