Hi Marcus,

OK it seems to install now, now to the next problem!

Following the example code from your web page 

>>> from pyowfs import Connection
>>> root = Connection ("/dev/ttyD1")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/pyowfs/owfs.py", line 281, in
__init__
    capi = libcapi.CAPI ()
  File "/usr/lib/python2.6/dist-packages/pyowfs/libcapi.py", line 42, in
__init__
    self.libcapi = ctypes.CDLL ("libowcapi.so")
  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
>>> 

My adapter is connected to /dev/ttyD1, is the format root = Connection
("/dev/ttyD1") correct? 

I have looked for libowcapi.so and I have 3 of them
/opt/owfs/lib/libowcapi.so
/usr/src/owfs-2.7p21/module/owcapi/src/c/.libs/libowcapi.so
/usr/src/owfs-2.7p29/module/owcapi/src/c/.libs/libowcapi.so
they all have privileges lrwxrwxrwx 1 root root

Thanks

Mick

On Sun, 2010-03-14 at 19:17 +0100, Marcus Priesch wrote:
> Hi Mick,
> 
> I'm sorry, i didnt recognize the /var/mail line at first sight ...
> 
> sorry again, now i see that you call ./setup.py directly ... 
> 
> you should instead invoke
> 
>       python setup.py install
> 
> otherwise the script will get executed with some other interpreter ...
> which yields to the syntax errors and import error you described
> earlier ... sorry again that i missed this ... 
> 
> @list: what gets executed if the first line is 
> # -*- coding: iso-8859-1 -*-
> 
> any clues ?!?
> 
> 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