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.


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

2024-06-10 Thread 'steepleian' via weewx-user
Vince,For me the second option is preferable as I assume that it would preserve the existing Python version until WeeWX deems it necessary to upgrade.https://claydonsweather.org.ukOn 10 Jun 2024, at 18:38, vince  wrote:Maybe. I suppose a potential change would be in how weewx generates its ExecStart string.Installing weewx via "python3 -m venv weewx-venv" generates the following:      ExecStart=/home/pi/weewx-venv/bin/python3 /home/pi/weewx-venv/lib/python3.9/site-packages/weewxd.py /home/pi/weewx-data/weewx.confBut... if I had installed weewx via "python3.9 -m venv weewx-venv" there's a different result  ExecStart=/home/pi/weewx-venv/bin/python3.9 /home/pi/weewx-venv/lib/python3.9/site-packages/weewxd.py /home/pi/weewx-data/weewx.confSo for this second example I could 'add' a new python 3.12 to my os safely 'if' the old 3.9 was left unaltered.  I don't know if every os would do so, however.  This might be os specific.I guess there are a couple options for potential change:make the ExecStart string generation smarter and figure out that python3 points to python3.9 when you follow the symlinksor change the procedure or add a note suggesting using pythonX.Y (whatever your os is using) to protect against this situationOn Monday, June 10, 2024 at 3:20:59 AM UTC-7 steepleian wrote:Tom,I know of another user who had an identical problem with Manjaro when Python was updated to 3.12. With a self contained virtual environment I was surprised this happened. Is this worth further investigation?I.https://claydonsweather.org.ukOn 10 Jun 2024, at 11:25, Andrea  wrote:there's still a problem with PillowIl giorno lunedì 10 giugno 2024 alle 09:39:40 UTC+2 Andrea ha scritto:Hi Tom.Yes, weewx was running since February. Every Weeks I restart the PC and always weewx running normal. Yesterday, suddenly, doesn't work anymore. I use virtual environment with the command source and then launch weewxd.thanks AndreaIl giorno domenica 9 giugno 2024 alle 19:32:32 UTC+2 Tom Keffer ha scritto: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?-tkOn 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-venvsource ~/weewx-venv/bin/activateweewxd &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.0Thanks for your helpAndrea



-- 
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4107a827-4eb1-4aa3-9ded-fe344f879195n%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/4e27ed84-7151-4f70-b88c-4450461f97afn%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/BE9F5E5E-944C-47F1-AE42-5E03B2633429%40btinternet.com.


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

2024-06-10 Thread vince
Maybe. I suppose a potential change would be in how weewx generates its 
ExecStart string.

Installing weewx via "python3 -m venv weewx-venv" generates the following:
  ExecStart=/home/pi/weewx-venv/bin/python3 
/home/pi/weewx-venv/lib/python3.9/site-packages/weewxd.py 
/home/pi/weewx-data/weewx.conf

But... if I had installed weewx via "python3.9 -m venv weewx-venv" there's 
a different result
  ExecStart=/home/pi/weewx-venv/bin/python3.9 
/home/pi/weewx-venv/lib/python3.9/site-packages/weewxd.py 
/home/pi/weewx-data/weewx.conf

So for this second example I could 'add' a new python 3.12 to my os safely 
'if' the old 3.9 was left unaltered.  I don't know if every os would do so, 
however.  This might be os specific.

I guess there are a couple options for potential change:

   - make the ExecStart string generation smarter and figure out that 
   python3 points to python3.9 when you follow the symlinks
   - or change the procedure or add a note suggesting using pythonX.Y 
   (whatever your os is using) to protect against this situation


On Monday, June 10, 2024 at 3:20:59 AM UTC-7 steepleian wrote:

> Tom,
> I know of another user who had an identical problem with Manjaro when 
> Python was updated to 3.12. With a self contained virtual environment I was 
> surprised this happened. Is this worth further investigation?
> I.
>
> https://claydonsweather.org.uk
>
> On 10 Jun 2024, at 11:25, Andrea  wrote:
>
> there's still a problem with Pillow
>
>
>
> Il giorno lunedì 10 giugno 2024 alle 09:39:40 UTC+2 Andrea ha scritto:
>
>> Hi Tom.
>> Yes, weewx was running since February. Every Weeks I restart the PC and 
>> always weewx running normal. Yesterday, suddenly, doesn't work anymore. 
>> I use virtual environment with the command source and then launch 
>> weewxd.
>> thanks 
>> Andrea
>>
>> Il giorno domenica 9 giugno 2024 alle 19:32:32 UTC+2 Tom Keffer ha 
>> scritto:
>>
>>> 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+...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/4107a827-4eb1-4aa3-9ded-fe344f879195n%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/4e27ed84-7151-4f70-b88c-4450461f97afn%40googlegroups.com.


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

2024-06-10 Thread 'steepleian' via weewx-user
Tom,I know of another user who had an identical problem with Manjaro when Python was updated to 3.12. With a self contained virtual environment I was surprised this happened. Is this worth further investigation?I.https://claydonsweather.org.ukOn 10 Jun 2024, at 11:25, Andrea  wrote:there's still a problem with PillowIl giorno lunedì 10 giugno 2024 alle 09:39:40 UTC+2 Andrea ha scritto:Hi Tom.Yes, weewx was running since February. Every Weeks I restart the PC and always weewx running normal. Yesterday, suddenly, doesn't work anymore. I use virtual environment with the command source and then launch weewxd.thanks AndreaIl giorno domenica 9 giugno 2024 alle 19:32:32 UTC+2 Tom Keffer ha scritto: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?-tkOn 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-venvsource ~/weewx-venv/bin/activateweewxd &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.0Thanks for your helpAndrea



-- 
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/4107a827-4eb1-4aa3-9ded-fe344f879195n%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/14495F74-2560-4BDC-9870-3EC2AC5E411E%40btinternet.com.


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

2024-06-10 Thread Andrea
there's still a problem with Pillow

Il giorno lunedì 10 giugno 2024 alle 09:39:40 UTC+2 Andrea ha scritto:

> Hi Tom.
> Yes, weewx was running since February. Every Weeks I restart the PC and 
> always weewx running normal. Yesterday, suddenly, doesn't work anymore. 
> I use virtual environment with the command source and then launch 
> weewxd.
> thanks 
> Andrea
>
> Il giorno domenica 9 giugno 2024 alle 19:32:32 UTC+2 Tom Keffer ha scritto:
>
>> 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/4107a827-4eb1-4aa3-9ded-fe344f879195n%40googlegroups.com.


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

2024-06-10 Thread Andrea
Maybe I found the problem. With last system update, the new version of 
Python was installed and Weewx doesn't runnig because all the software is 
in  the previous version directory 
../weewx-venv/lib/python3.11/site-packages/"
I copied all the software in the new directory 
../...python3.12/site-packages and everythng is ok again.

now weewx is up and runnig !
thanks
Andrea

Il giorno lunedì 10 giugno 2024 alle 09:39:40 UTC+2 Andrea ha scritto:

> Hi Tom.
> Yes, weewx was running since February. Every Weeks I restart the PC and 
> always weewx running normal. Yesterday, suddenly, doesn't work anymore. 
> I use virtual environment with the command source and then launch 
> weewxd.
> thanks 
> Andrea
>
> Il giorno domenica 9 giugno 2024 alle 19:32:32 UTC+2 Tom Keffer ha scritto:
>
>> 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/8922075d-7d67-49bd-939a-b9715bda756fn%40googlegroups.com.


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

2024-06-10 Thread Andrea
Hi Tom.
Yes, weewx was running since February. Every Weeks I restart the PC and 
always weewx running normal. Yesterday, suddenly, doesn't work anymore. 
I use virtual environment with the command source and then launch 
weewxd.
thanks 
Andrea

Il giorno domenica 9 giugno 2024 alle 19:32:32 UTC+2 Tom Keffer ha scritto:

> 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/cb41e7f6-a45f-491e-8e91-af544a0ff6dan%40googlegroups.com.


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

2024-06-09 Thread Tom Keffer
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+unsubscr...@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/CAPq0zEC39TMz%2BzeETEwd6wHH-0-BXCfGf3MZ%3D97-F%2BB9V1QR7A%40mail.gmail.com.


[weewx-user] Error in weewxd at start

2024-06-08 Thread Andrea
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+unsubscr...@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.