Re: [weewx-user] Re: Resource busy - raspbian buster, weewx 4 and WMR200

2020-07-06 Thread Tom Keffer
Issue #578  has been tracking
this problem. While there is no resolution for the "resource busy" problem,
the latest driver does have a fix for the "global name 'loginf' is not
defined' problem.

Replace your copy of wmr200.py with this one

.

On Mon, Jul 6, 2020 at 1:50 AM AsgeirK  wrote:

> Any updates on this problem?
>
> Asgeir
>
> --
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/110970ff-11d2-4f54-aea4-71d938f049bfo%40googlegroups.com
> 
> .
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zECExRhu-BCbCGE3Vv6tY8tihHxVCiPTfTpbXKKwwWNNqQ%40mail.gmail.com.


[weewx-user] Re: Resource busy - raspbian buster, weewx 4 and WMR200

2020-07-06 Thread AsgeirK
Any updates on this problem?

Asgeir

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/110970ff-11d2-4f54-aea4-71d938f049bfo%40googlegroups.com.


[weewx-user] Re: Resource busy - raspbian buster, weewx 4 and WMR200

2020-06-24 Thread AsgeirK
I'm having similar issues after upgrade to 4.1.1

Jun 24 13:22:17 PI-W4 weewx[546] ERROR weewx.drivers.wmr200: USB 
read_device overflow error
Jun 24 13:22:17 PI-W4 weewx[546] ERROR weewx.drivers.wmr200: USB device 
read error
Jun 24 13:22:17 PI-W4 weewx[546] DEBUG weewx.manager: Daily summary version 
is 1.0
Jun 24 13:22:18 PI-W4 weewx[546] INFO weewx.restx: Wunderground-PWS: 
Published record 2020-06-24 13:22:00 CEST (1592997720)
Jun 24 13:22:18 PI-W4 weewx[546] ERROR weewx.drivers.wmr200: USB polling 
thread unexpectedly terminated
Jun 24 13:22:18 PI-W4 weewx[546] INFO weewx.engine: Main loop exiting. 
Shutting engine down.
Jun 24 13:22:18 PI-W4 weewx[546] INFO weewx.engine: Shutting down StdReport 
thread
Jun 24 13:22:31 PI-W4 weewx[546] INFO weewx.cheetahgenerator: Generated 8 
files for report SeasonsReport in 13.79 seconds
Jun 24 13:22:31 PI-W4 weewx[546] DEBUG weewx.manager: Daily summary version 
is 1.0
Jun 24 13:22:31 PI-W4 systemd[1]: Started Session c1681 of user pi.
Jun 24 13:22:37 PI-W4 weewx[546] INFO weewx.imagegenerator: Generated 15 
images for report SeasonsReport in 6.01 seconds
Jun 24 13:22:37 PI-W4 weewx[546] INFO weewx.reportengine: Copied 0 files to 
/var/www/html/weewx
Jun 24 13:22:37 PI-W4 weewx[546] DEBUG weewx.reportengine: Running report 
'SmartphoneReport'
Jun 24 13:22:37 PI-W4 weewx[546] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/Smartphone/skin.conf for report 
'SmartphoneReport'
Jun 24 13:22:37 PI-W4 weewx[546] DEBUG weewx.cheetahgenerator: Using search 
list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jun 24 13:22:37 PI-W4 weewx[546] DEBUG weewx.manager: Daily summary version 
is 1.0
Jun 24 13:22:38 PI-W4 weewx[546] INFO weewx.cheetahgenerator: Generated 6 
files for report SmartphoneReport in 0.51 seconds
Jun 24 13:22:38 PI-W4 weewx[546] DEBUG weewx.manager: Daily summary version 
is 1.0
Jun 24 13:22:38 PI-W4 weewx[546] ERROR weewx.engine: Unable to shut down 
StdReport thread
Jun 24 13:22:38 PI-W4 weewx[546] DEBUG weewx.restx: Shut down 
Wunderground-PWS thread.
Jun 24 13:22:38 PI-W4 weewx[546] INFO weewx.drivers.wmr200: USB polling 
thread expired
Jun 24 13:22:38 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Watchdog 
received shutdown
Jun 24 13:22:38 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Watchdog thread 
exiting
Jun 24 13:22:38 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Watchdog thread 
expired
Jun 24 13:22:38 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Received packet 
count live:15445 archive:940 control:1782
Jun 24 13:22:38 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Received 
bytes:1993192 sent bytes:47720
Jun 24 13:22:38 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Packet archive 
queue len:21 live queue len:0
Jun 24 13:22:38 PI-W4 weewx[546] WARNING weewx.drivers.wmr200: Exiting with 
packets still in archive queue cnt:21
Jun 24 13:22:38 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Driver 
gracefully exiting
Jun 24 13:22:38 PI-W4 weewx[546] CRITICAL __main__: Caught WeeWxIOError: 
USB polling thread unexpectedly terminated
Jun 24 13:22:38 PI-W4 weewx[546] CRITICAL __main__:   Waiting 60 
seconds then retrying...
Jun 24 13:22:40 PI-W4 weewx[546] INFO weewx.imagegenerator: Generated 6 
images for report SmartphoneReport in 2.05 seconds
Jun 24 13:22:40 PI-W4 weewx[546] INFO weewx.reportengine: Copied 0 files to 
/var/www/html/weewx/smartphone
.
.
.
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Using pc time 
adjusting archive record time by 3765 sec 2020-06-24 12:20:00 CEST 
(1592994000) => 2020-06-24 13:22:45 CEST (1592997765)
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.engine: Main loop exiting. 
Shutting engine down.
Jun 24 13:23:46 PI-W4 weewx[546] DEBUG weewx.restx: Shut down 
Wunderground-PWS thread.
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.drivers.wmr200: USB polling 
device thread exiting
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.drivers.wmr200: USB polling 
thread expired
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Watchdog 
received shutdown
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Watchdog thread 
exiting
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Watchdog thread 
expired
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Received packet 
count live:15446 archive:941 control:1784
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Received 
bytes:664 sent bytes:48
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Packet archive 
queue len:0 live queue len:1
Jun 24 13:23:46 PI-W4 weewx[546] WARNING weewx.drivers.wmr200: Exiting with 
packets still in live queue cnt:1
Jun 24 13:23:46 PI-W4 weewx[546] INFO weewx.drivers.wmr200: Driver 
gracefully exiting
Jun 24 13:23:46 PI-W4 weewx[546] CRITICAL __main__: Caught unrecoverable 
exception:
Jun 24 13:23:46 PI-W4 

[weewx-user] Re: Resource busy - raspbian buster, weewx 4 and WMR200

2020-06-10 Thread Joseph TOMEH
Hello all, 

Almost same error message too.
I used with Weewx 3.9.1(Python2) for a long time and it worked well with no 
issues.
I have just updated to version Weewx 4.1.1 (python3), and this error occurs 
several time a day.
This is the only change I have done

:(

Regards


2854 Jun 10 11:02:01 raspberrypi weewx[21331] INFO weewx.drivers.wmr200: 
sensor map is {'altimeter': 'altimeter', 'pressure': 'pressure', 
'windSpeed': 'wind_speed', 'windDir': 'wind_dir', 'windGust': 
'wind_gust$2855 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL 
weewx.drivers.wmr200: open_device() Unable to claim USB interface. Reason: 
[Errno 16] Resource busy
2856 Jun 10 11:02:01 raspberrypi weewx[21331] ERROR weewx.engine: Import of 
driver failed: [Errno 16] Resource busy ()
2857 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
   Traceback (most recent call last):
2858 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
 File "/home/weewx/bin/weewx/drivers/wmr200.py", line 193, in 
open_device
2859 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
   self.handle.claimInterface(self.interface)
2860 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
 File "/usr/local/lib/python3.7/dist-packages/usb/legacy.py", line 
230, in claimInterface
2861 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
   util.claim_interface(self.dev, interface)
2862 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
 File "/usr/local/lib/python3.7/dist-packages/usb/util.py", line 
205, in claim_interface
2863 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
   device._ctx.managed_claim_interface(device, interface)
2864 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
 File "/usr/local/lib/python3.7/dist-packages/usb/core.py", line 
102, in wrapper
2865 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
   return f(self, *args, **kwargs)
2866 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
 File "/usr/local/lib/python3.7/dist-packages/usb/core.py", line 
167, in managed_claim_interface
2867 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
   self.backend.claim_interface(self.handle, i)
2868 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
 File 
"/usr/local/lib/python3.7/dist-packages/usb/backend/libusb1.py", line 811, 
in claim_interface
2869 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
   _check(self.lib.libusb_claim_interface(dev_handle.handle, intf))
2870 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
 File 
"/usr/local/lib/python3.7/dist-packages/usb/backend/libusb1.py", line 595, 
in _check
2871 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
   raise USBError(_strerror(ret), ret, _libusb_errno[ret])
2872 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
   usb.core.USBError: [Errno 16] Resource busy
2873 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
 
2874 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
   During handling of the above exception, another exception occurred:
2875 Jun 10 11:02:01 raspberrypi weewx[21331] CRITICAL weewx.engine:
 


-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/893d46d9-2b6d-47ba-8d0f-75acfe151cfdo%40googlegroups.com.