On Friday, November 9, 2018 at 7:24:29 AM UTC-5, ianprescott10 wrote:
>
> Hi
>
> check the pyusb version on each os.  this is due to a difference in the 
> pyusb version, not jessie vs stretch.
>
> I am using the same usb utility u wrote to test the 4 port usb hub using 
> either stretch or jessie.
> It works on jessie but not on stretch as shown below. (the hardware 
> remains the same)
>

the utility only works with pyusb 0.x, not pyusb 1.x.  this is because 
pyusb 1.x removed the bus and device numbers.


 

> So I am confused now, u mentioned pyusb 1.x, ........ so is this your usb 
> utility (later version) or some other code supplied with the os???   and 
> how do I check.
> I am only using your usb utility (usb_control-0.6.py) as a test, I rely 
> on weewx fousb to do power cycling in the event of a usb lockup.
> The log shows *Nov  6 18:23:36 weatherpi weewx[2689]: fousb: found 
> station on USB bus= device=*
> So is this pyusb code issue or weewx fousb issue??
>

pyusb is a python library for communicating with usb.  you either installed 
it as a system package using apt or yum, or you installed it using pip.  or 
maybe it came with your system.

if you installed using pip, you can get the version using 'pip freeze':

pip freeze | grep usb

if you installed using apt or yum, then use your package manager to figure 
out the version.  for example:

rpm -qa | grep usb

or 

apt list pyusb

 

> you should be able to run debian9 (stretch) if you install pyusb 0.4
> So how do I get (stretch version) weewx using fineoffset usb driver to use 
> pyusb 
> 0.4 to power cycle a usb port lockup?
>

you need to install pyusb 0.4 on your system instead of pyusb 1.x.  do this 
using your system's package manager (apt, yum, etc) if you manage your 
python using system packages, or pip if you manage your python separately 
from the system packages.

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to