Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-21 Thread Mick Sulley
Marcus - Finally it works! I uninstalled and re-installed several times, then I ran sudo cp /usr/local/lib/libowcapi.so /usr/lib/libowcapi.so and then it works! Unfortunately I am working away from home all week so I will play with it some more next weekend. Many, many thanks for all your

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-21 Thread Gregg Levine
On Sun, Mar 21, 2010 at 7:12 PM, Mick Sulley m...@sulley.info wrote: Marcus - Finally it works! I uninstalled and re-installed several times, then I ran sudo cp /usr/local/lib/libowcapi.so /usr/lib/libowcapi.so and then it works! Unfortunately I am working away from home all week so I

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-21 Thread Marcus Priesch
Hi Mick, congratulations !!! however it would be very interesting why the LD_LIBRARY_PATH thing didnt work for you ... regards, marcus. -- Download Intel#174; Parallel Studio Eval Try the new software tools for

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-20 Thread Mick Sulley
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

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-20 Thread Marcus Priesch
Hi Mick, it should look in /usr/lib, /usr/local/lib all paths configured in /etc/ld.so.conf and in the paths configured in LD_LIBRARY_PATH - seperated by colon you could try to symlink in /usr/local/lib or install owfs to /usr/local/lib - the default i think when you dont specify a --prefix to

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-19 Thread Mick Sulley
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 -

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-19 Thread Marcus Priesch
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

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-18 Thread Marcus Priesch
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

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-14 Thread Marcus Priesch
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

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-14 Thread Mick Sulley
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

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-14 Thread Marcus Priesch
Hi Mick, great success by now ! Am Sonntag, den 14.03.2010, 19:42 + schrieb Mick Sulley: 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

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-14 Thread Mick Sulley
Hi Marcus, I tried export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/owfs/lib and ldconfig -v | less /owfs but it said Pattern not found I think it is set as I can echo it - m...@mick-desktop:~$ echo $LD_LIBRARY_PATH :/opt/owfs/lib m...@mick-desktop:~$ Have I

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-11 Thread Marcus Priesch
Hi Mick, Am Mittwoch, den 10.03.2010, 21:06 + schrieb Mick Sulley: Thanks for the link Marcus. Sorry to sound dim but how do I install it? I have put it into a new directory, un-tar'ed it and tried to run setup.py but I get an error - m...@mick-desktop:~/tmp/pyowfs-0.1$ ./setup.py

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-11 Thread Mick Sulley
No that's not the problem, I checked the file and it is correct. I think it's just the way it displays the errors. I think the problem is the previous error - can't read /var/mail/distutils.core I don't understand this at all. There is a line in setup.py from distutils.core

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-10 Thread Mick Sulley
Hi Paul, Thanks for the info I hit an error running temperature.py what I see is - m...@mick-desktop:~/Documents/Controls/owfs_examples $ ./temperature.py /dev/ttyD1 Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in type 'exceptions.AttributeError'

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-10 Thread Marcus Priesch
and not to forget ... 4) http://priesch.co.at/pyowfs - a simple (and more complete) wrapper around owcapi ... have fun, marcus. Am Dienstag, den 09.03.2010, 20:26 -0500 schrieb Paul Alfille: There are 3 ways to use python and OWFS. 1. run the FUSE virtual filesystem (program owfs) and

Re: [Owfs-developers] Python to read 1-wire temperatures

2010-03-09 Thread Paul Alfille
There are 3 ways to use python and OWFS. 1. run the FUSE virtual filesystem (program owfs) and just do standard read and writes. 2. run owpython, which is a standalone program and embeds all of owlib. see http://owfs.cvs.sourceforge.net/viewvc/owfs/owfs/module/swig/python/examples/ 3. run