Hi Tormod
[snip]
> Maybe it is better if you tell us exactly what the troubles are.

Alright, we have an E10 gateway from Synapse wireless that will connect via 
cell modem to the internet (thus usb_modeswitch is required). We'll also have 
a (TP1080WC) weather station connected which requires the pywws driver to 
communicate with the E10 over usb. 
Now I have a buildroot environment (BusyBox) with libusb-1.0.8, libusb-
compat-0.1.3 and PyUSB-0.4.3 which I think should resolve all required 
depencies. I however when I invoke the "TestWeatherStation.py" script from 
pywws, I get these errors:

# python TestWeatherStation.py
20:35:08:usb.backend.libusb10:Error loading libusb 1.0 backend
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/usb/backend/libusb10.py", line 588, 
in get_backend
    _lib = _load_library()
  File "/usr/lib/python2.7/site-packages/usb/backend/libusb10.py", line 160, 
in _load_library
    raise OSError('USB library could not be found')
OSError: USB library could not be found
20:35:08:usb.backend.openusb:Error loading OpenUSB backend
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/usb/backend/openusb.py", line 588, in 
get_backend
    _lib = _load_library()
  File "/usr/lib/python2.7/site-packages/usb/backend/openusb.py", line 149, in 
_load_library
    raise OSError('USB library could not be found')
OSError: USB library could not be found
20:35:08:usb.backend.libusb01:Error loading libusb 0.1 backend
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/usb/backend/libusb01.py", line 539, 
in get_backend
    _lib = _load_library()
  File "/usr/lib/python2.7/site-packages/usb/backend/libusb01.py", line 180, 
in _load_library
    raise OSError('USB library could not be found')
OSError: USB library could not be found
Traceback (most recent call last):
  File "TestWeatherStation.py", line 146, in <module>
    sys.exit(main())
  File "TestWeatherStation.py", line 91, in main
    ws = WeatherStation.weather_station()
  File "/root/pywws-12.02_r487/pywws/WeatherStation.py", line 315, in __init__
    self.cusb = CUSBDrive(library)
  File "/root/pywws-12.02_r487/pywws/WeatherStation.py", line 237, in __init__
    self.dev = USBDevice(0x1941, 0x8021)
  File "/root/pywws-12.02_r487/pywws/device_pyusb.py", line 81, in __init__
    dev = self._find_device(idVendor, idProduct)
  File "/root/pywws-12.02_r487/pywws/device_pyusb.py", line 112, in 
_find_device
    for bus in usb.busses():
  File "/usr/lib/python2.7/site-packages/usb/legacy.py", line 326, in busses
    return (Bus(),)
  File "/usr/lib/python2.7/site-packages/usb/legacy.py", line 322, in __init__
    self.devices = [Device(d) for d in core.find(find_all=True)]
  File "/usr/lib/python2.7/site-packages/usb/core.py", line 819, in find
    raise ValueError('No backend available')
ValueError: No backend available
Exception AttributeError: "'USBDevice' object has no attribute 'devh'" in 
<bound method USBDevice.__del__ of <pywws.device_pyusb.USBDevice object at 
0x4039b9f0>> ignored
# 

Which tell me that there's probably a problem with libusb and/or pyusb...


references: 
Synapse Wireless E10:
http://www.synapse-wireless.com/snap-components/e10
usb_modeswitch:
http://www.draisberghof.de/usb_modeswitch/
Pywws:
pywws.googlecode.com


Thanks,
Ron

> Your message was cut off here...

really? weird... I hope now everything goes through!

-- 
Ron Eggler
Senior Systems Engineer

SemiosBIO
Discovery Parks Vancouver
887 Great Northern Way
Vancouver, BC
V5T 1E2
cell: 778 230 9442
www.semiosbio.com
regg...@semiosbio.com

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to