I have made some updates to the python-module and makefiles now. It seems to
work on all platforms I have tested right now, except FC7/x64.
I'm not sure why, since the _OW.so can't use contents in libow.so... such as
the "Global"-struct. It must be some bug in Fedoras configuration.

Ubunto 6.06.1-amd64 works though..

# uname -a
Linux vm-got01 2.6.15-29-amd64-server #1 SMP Mon Sep 24 17:31:58 UTC 2007
x86_64 GNU/Linux
# module/swig/python/examples/tree.py --fake=10,10
Simulated-Random - /
DS18S20 - /10.67C6697351FF
DS18S20 - /10.4AEC29CDBAAB
# module/swig/python/examples/temperature.py --fake=10,10
/10.67C6697351FF      36.4784
/10.4AEC29CDBAAB      51.3401

Download and try the latest CVS version...

/Christian


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Magnusson
Sent: den 17 december 2007 22:53
To: owfs-developers@lists.sourceforge.net
Subject: Re: [Owfs-developers] owfs python wrapper

The tree-structure have changed a bit lately, and /system/adapter/name.0 is
replaced with
/bus.0/interface/settings/name.

Patches need to be done in module/swig/python/ow/__init__.py, but it's not
only the change above which is needed... I'm no guru at python, but I'll see
if I find any obvious patches which needs to be done.

/Christian


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthias
Fuchs
Sent: den 17 december 2007 22:12
To: owfs-developers@lists.sourceforge.net
Subject: [Owfs-developers] owfs python wrapper

Hi,

I am just doing my first experiments with owfs-2.7p1 and its
python wrapper. Before I start with my problem: owserver with owhttpd
works fine and I can access my three DS1820 sensors.

When using the python wrapper to get a list of the owfs structure
I took a look into the tree.py example and encountered this issue:

[EMAIL PROTECTED]:~/owfs-2.7p1/module/swig/python/examples$ python
Python 2.5.1 (r251:54863, May  2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ow
>>> ow.init("/dev/ttyUSB0")
>>> s = ow.Sensor("/")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "usr/lib/python2.5/site-packages/ow/__init__.py", line 258, in
__init__
  File "usr/lib/python2.5/site-packages/ow/__init__.py", line 401, in
useCache
  File "usr/lib/python2.5/site-packages/ow/__init__.py", line 146, in _get
ow.exUnknownSensor: '/system/adapter/name.0'
>>>

Shouldn't that work?

Python is 2.5.1 under ubuntu 7.06, SWIG Version is 1.3.31 and owfs version
is 
2.7p1.

Either there is something wrong or I misunderstood something.
Any hint?

Thanks
Matthias



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to