Help

59 views
Skip to first unread message

Leo Pedone

unread,
Oct 26, 2015, 2:34:09 PM10/26/15
to wfrog...@googlegroups.com
Hi All

I've upgraded from ubuntu 1504 to 1510 and wfrog has some problem.

This is the first:

Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/wfrog/wfdriver/wfdriver.py", line 117, in run
self.station.run(gen, self.enqueue_event)
File "/usr/lib/wfrog/wfdriver/station/wmr200.py", line 348, in run
self.connectDevice()
File "/usr/lib/wfrog/wfdriver/station/wmr200.py", line 250, in
connectDevice
self.devh.setConfiguration(self.usbConfiguration)
File "/usr/lib/python2.7/dist-packages/usb/legacy.py", line 253, in
setConfiguration
self.dev.set_configuration(configuration)
File "/usr/lib/python2.7/dist-packages/usb/core.py", line 799, in
set_configuration
self._ctx.managed_set_configuration(self, configuration)
File "/usr/lib/python2.7/dist-packages/usb/core.py", line 128, in
managed_set_configuration
self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
AttributeError: 'NoneType' object has no attribute 'bConfigurationValue'



Any idea ?!

I'm not a programmer... but I can do any kind of test!

Leo
--
Un amico e' uno che sa tutto di te e nonostante questo gli piaci (Ebert
Hubbard)

Jordi Puigsegur Figueras

unread,
Oct 27, 2015, 5:27:29 PM10/27/15
to wfrog...@googlegroups.com

2015-10-26 19:34 GMT+01:00 Leo Pedone <lan...@gmail.com>:
File "/usr/lib/python2.7/dist-packages/usb/core.py", line 128, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)

This is an error in the usb library. Which versions do you have installed?

Jordi.

Leo Pedone

unread,
Oct 27, 2015, 5:54:48 PM10/27/15
to wfrog...@googlegroups.com
Hi Jordi

I've installed the version shipped with Ubuntu 15.10.

I need to downgrade ?!

Leo
2015-10-27 22:52:52,407 INFO [config] Starting wfrog 0.8.2-svn
2015-10-27 22:52:52,409 INFO [config] Loaded settings file /etc/wfrog/settings.yaml
2015-10-27 22:52:52,411 DEBUG [config] Loaded settings {'units': {'press': 'hPa', 'rain': 'mm', 'temp': 'C', 'wind': 'km/h'}, 'altitude': 280, 'station': {'driver': 'auto'}}
2015-10-27 22:52:52,412 DEBUG [config] Loaded config file /usr/lib/wfrog/wflogger/config/wflogger.yaml
2015-10-27 22:52:52,413 DEBUG [config] Initializing storage
2015-10-27 22:52:52,414 DEBUG [generic.service] Registering service <wfcommon.generic.YamlIncludeElement object at 0xb48ee7ec> under 'storage'
2015-10-27 22:52:52,415 DEBUG [generic.service] Calling init on <wfcommon.generic.YamlIncludeElement object at 0xb48ee7ec>
2015-10-27 22:52:52,465 DEBUG [generic.include] Calling init on <wfcommon.storage.YamlMysqlStorage object at 0xb48e604c>
2015-10-27 22:52:52,468 DEBUG [wflogger] Starting embedded wfdriver
2015-10-27 22:52:52,470 DEBUG [generic.service] Registering service <wflogger.input.YamlFunctionInput object at 0xb48ee6ac> under 'events'
2015-10-27 22:52:52,479 DEBUG [generic.service] Calling run on <wflogger.input.YamlFunctionInput object at 0xb48ee6ac>
2015-10-27 22:52:52,518 INFO [config] Starting wfrog 0.8.2-svn
2015-10-27 22:52:52,519 INFO [config] Loaded settings file /etc/wfrog/settings.yaml
2015-10-27 22:52:52,520 DEBUG [config] Loaded settings {'units': {'press': 'hPa', 'rain': 'mm', 'temp': 'C', 'wind': 'km/h'}, 'altitude': 280, 'station': {'driver': 'auto'}}
2015-10-27 22:52:52,521 DEBUG [config] Loaded config file /usr/lib/wfrog/wfdriver/config/embedded.yaml
2015-10-27 22:52:52,523 INFO [station.auto] Discovering stations...
2015-10-27 22:52:52,533 DEBUG [station.wmr200] USB initialization
2015-10-27 22:52:52,600 INFO [station.wmr200] Oregon Scientific weather station found
2015-10-27 22:52:52,601 INFO [station.wmr200] Manufacturer: 0
2015-10-27 22:52:52,602 INFO [station.wmr200] Product: 1
2015-10-27 22:52:52,603 INFO [station.wmr200] Device version: 03.02
2015-10-27 22:52:52,603 INFO [station.wmr200] USB version: 01.10
2015-10-27 22:52:52,606 WARNING [station.auto] Could not probe station Oregon Scientific WMR200: 'NoneType' object has no attribute 'bConfigurationValue'
2015-10-27 22:52:52,626 INFO [station.auto] Detected station Oregon Scientific WMRS200
2015-10-27 22:52:52,627 INFO [station.wmrs200] Thread started
2015-10-27 22:52:52,628 INFO [station.wmrs200] USB initialization
2015-10-27 22:52:52,646 INFO [station.wmrs200] USB WMRS200 found
2015-10-27 22:52:52,647 INFO [station.wmrs200] USB WMRS200 open
2015-10-27 22:52:52,659 INFO [station.wmrs200] USB WMRS200 initialized
^X2015-10-27 22:53:07,664 ERROR [station.wmrs200] Exception reading interrupt: [Errno 110] Operation timed out

Traceback (most recent call last):
  File "/usr/lib/wfrog/wfdriver/station/wmrs200.py", line 168, in _run
    raise e
USBError: [Errno 110] Operation timed out
2015-10-27 22:53:10,671 DEBUG [station.wmrs200] USB RAW DATA: 01 FF 00 00 00 00 00 00

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


--
Continuiamo cosi'.... facciamoci del male...

Jordi Puigsegur Figueras

unread,
Nov 2, 2015, 12:54:57 PM11/2/15
to wfrog...@googlegroups.com
Hi,

I would try first with the tested versions.

Jordi.

Leo Pedone

unread,
Nov 2, 2015, 1:51:38 PM11/2/15
to wfrog...@googlegroups.com
Hi  Jordi Puigsegur Figueras ha scritto:
Hi,

I would try first with the tested versions.

I'm waiting your test!

Gracias ;-)
--
Experience is when you get what you don't want to get!

Jordi Puigsegur Figueras

unread,
Nov 6, 2015, 2:48:18 AM11/6/15
to wfrog...@googlegroups.com
Hi Leo,

There's a missunderstanding here: I meant to say that first you should try with the pyusb version known to work with wfrog. This way, if it works, we will know for sure that it is a version problem with pyusb. 

At this point I don't have much time to the tests myself.

Jordi.

Leo Pedone

unread,
Nov 6, 2015, 10:05:20 AM11/6/15
to wfrog...@googlegroups.com
Il 06/11/2015 08:47, Jordi Puigsegur Figueras ha scritto:
> Hi Leo,
>
> There's a missunderstanding here: I meant to say that first you should
> try with the pyusb version known to work with wfrog. This way, if it
> works, we will know for sure that it is a version problem with pyusb.
>
> At this point I don't have much time to the tests myself.
>
>

Ok we are in the same situation but sorry for misunderstanding ;-)

Leo


--
"Su Internet esiste un'altra cultura, parallela e ignorata per lo piu'
dalla Chiesa, ma non dai patiti d'informatica. E' il mondo degli
hackers" - da un comunicato del Consilium Conferentiarum Episcoporum
Europae (novembre 2009)
Reply all
Reply to author
Forward
0 new messages