Re: [weewx-user] Error in weewxd at start

2024-06-11 Thread Sanjiv B
Thanks for your response Tom! You are the best!

I don't think I started it properly using the SystemD startup scripts.

I fixed this problem by turning off debugging
debug=0

However, I am uncertain if that fixed it OR if it is because I used the 
startup in SystemD. The data reports perfectly now!

On Sunday, June 9, 2024 at 12:32:32 PM UTC-5 Tom Keffer wrote:

> Your message is a little confusing. From what you wrote, it looks like you 
> created a virtual environment, then activated it, then tried to run weewxd. 
>
> However, the normal sequence is to create the virtual environment, 
> activate it, *install WeeWX*, then run weewxd.
>
> Did you install WeeWX?
>
> -tk
>
> On Sat, Jun 8, 2024 at 3:12 AM Andrea  wrote:
>
>> hello, 
>> after restart the PC, I tried to start weewx with this steps:
>> python3 -m venv ~/weewx-venv
>> source ~/weewx-venv/bin/activate
>> weewxd &
>> but I received the message
>>from weewxd import main 
>> ModuleNotFoundError: No module named 'weewxd'
>>
>> Weewx has been running up to before restart the PC.
>> I use Manjaro and weewx 5.0
>>
>> Thanks for your help
>> Andrea
>>
>> -- 
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/f3d18dee-ee4c-4309-b3be-cc40febc4472n%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/96e2665c-4453-4a4d-9004-7e089b92ed50n%40googlegroups.com.


[weewx-user] Error getting data from Vantage2 station

2024-06-09 Thread Sanjiv B
After EVERY record obtained from the station the following error is in the 
log. The weewx process basically restarts after every record.

The strange thing is that when I start weewxd without any parameters the 
records get downloaded quickly. The data shows up on the screen which is 
annoying but it does work properly.

Here is the log

Jun  9 20:56:58 kvm01 weewx[2472460] INFO __main__: Starting up weewx 
version 4.10.2
Jun  9 20:57:01 kvm01 weewx[2472460] DEBUG weewx.drivers.vantage: 
Successfully woke up Vantage console
Jun  9 20:57:02 kvm01 weewx[2472460] INFO weewx.engine: Clock error is 
-0.22 seconds (positive is fast)
Jun  9 20:57:02 kvm01 weewx[2472460] INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx'
Jun  9 20:57:02 kvm01 weewx[2472460] INFO weewx.manager: Starting backfill 
of daily summaries
Jun  9 20:57:02 kvm01 weewx[2472460] INFO weewx.manager: Daily summaries up 
to date
Jun  9 20:57:02 kvm01 weewx[2472460] DEBUG weewx.drivers.vantage: Getting 
archive packets since 2024-06-05 07:35:00 CDT (1717590900)
Jun  9 20:57:04 kvm01 weewx[2472460] DEBUG weewx.drivers.vantage: 
Successfully woke up Vantage console
Jun  9 20:57:06 kvm01 weewx[2472460] DEBUG weewx.drivers.vantage: 
Retrieving 262 page(s); starting index= 1
Jun  9 20:57:07 kvm01 weewx[2472460] INFO weewx.manager: Added record 
2024-06-05 07:40:00 CDT (1717591200) to database 'weewx'
Jun  9 20:57:07 kvm01 weewx[2472460] INFO weewx.manager: Added record 
2024-06-05 07:40:00 CDT (1717591200) to daily summary in 'weewx'
Jun  9 20:57:07 kvm01 weewx[2472460] INFO weewx.engine: Main loop exiting. 
Shutting engine down.
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__: Caught OSError: 
[Errno 5] Input/output error
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__:   Traceback 
(most recent call last):
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__: File 
"/usr/share/weewx/weewxd", line 154, in main
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__:  
 engine.run()
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 178, in run
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__:  
 self.dispatchEvent(weewx.Event(weewx.STARTUP))
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__:  
 callback(event)
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 584, in startup
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__:  
 self._catchup(self.engine.console.genStartupRecords)
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 700, in _catchup
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__:  
 self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD,
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 245, in dispatchEvent
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__:  
 callback(event)
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 805, in new_archive_record
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__:  
 print("REC:   ",
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__:   OSError: 
[Errno 5] Input/output error
Jun  9 20:57:08 kvm01 weewx[2472460] CRITICAL __main__:   Waiting 
10 seconds then retrying...

-- 
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/6eba0f07-ac8d-411a-ae37-f43ddcebcc4fn%40googlegroups.com.