Re: [Owfs-developers] python-ow failure with new Raspbian Stretch

2017-12-17 Thread HW
Stefano and the others who also responded,

Thanks very much for your clarification of this problem and especially for the 
detailed suggestions on how to move forward!


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] python-ow failure with new Raspbian Stretch

2017-12-15 Thread HW
Using a DS9490, I have been running the python based Weewx weather station 
software for several years on the Raspbian Wheezy OS. Unfortunately, the same 
program is failing on the new Raspbian Stretch OS and can be verified with a 
simple test case. Run the following program as root (to bypass any permission 
issues) on the Raspbian Stretch November Release:
    #!/usr/bin/python
    import ow
    ow.init('u')
and the test program exits with the error message:
  File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 224, in init 
raise exNoController

Syslog shows
Dec  7 17:33:27 wx kernel: [436943.136563] usb 1-1.5: new full-speed USB device 
number 107 using dwc_otg
Dec  7 17:33:27 wx kernel: [436943.270174] usb 1-1.5: New USB device found, 
idVendor=04fa, idProduct=2490
Dec  7 17:33:27 wx kernel: [436943.270189] usb 1-1.5: New USB device strings: 
Mfr=0, Product=0, SerialNumber=0
Dec  7 17:33:27 wx mtp-probe: checking bus 1, device 107: 
"/sys/devices/platform/soc/3f98.usb/usb1/1-1/1-1.5"
Dec  7 17:33:27 wx mtp-probe: bus: 1, device: 107 was not an MTP device
and after running the above test program:
Dec  11 07:05:46 wx OWFS[30742]: DEFAULT: owlib.c:(208) Cannot open USB bus 
master
Dec  11 07:05:46 wx OWFS[30742]: DEFAULT: owlib.c:(52) No valid 1-wire buses 
found

For the above test, after running apt-get update and upgrade, library versions 
were python-ow 3.1p5-1, libow 3.1.5.

A workaround was found by Glenn McKechnie and posted on the weewx-user Google 
group:
apt-get remove libow-3.1-5 python-ow owfs-common
Build and install owfs-2.9p8
The test program now exits normally and syslog shows
Dec 15 10:19:56 wx OWFS[12631]: DEFAULT: ow_ds9490.c:(250) Unclear what <> 
means in USB specification, will use first adapter.
Dec 15 10:19:56 wx OWFS[12631]: DEFAULT: ow_usb_msg.c:(292) Opened USB DS9490 
bus master at 1:11.
Dec 15 10:19:56 wx OWFS[12631]: DEFAULT: ow_usb_cycle.c:(190) Set DS9490 1:11 
unique id to 81 38 0F 31 00 00 00 4E

Unfortunately, I don't have a Debian Stretch system so I can't tell if this a 
Debian or a Raspbian issue.--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers