Hi,

Appreciate you said *'This happens with all of the following settings in 
the [[wx_binding]] section'* but could you humour us and and set manager = 
weewx.manager.DaySummaryManager under [DataBindings] [[wx_binding]] in 
weewx.conf. Restart WeeWX and if an error appears in the log post the log 
from when WeeWX was started through until the error appears making sure you 
capture the entire WeeWX startup. If the error is the same as above could 
you also post a wee_debug 
<http://weewx.com/docs/utilities.htm#wee_debug_utility> report, before 
posting the wee_debug report do check the output for usernames, passwords, 
API keys etc, wee_debug is pretty good at obfuscating these but its not 
perfect.

Gary

On Monday, 24 August 2020 at 08:14:52 UTC+10 [email protected] wrote:

>
> I am running weewx on a Raspberry Pi upgrade using apt upgrade, and 
> realise that it now runs on Python 3. 
> I have made sure that in the /etc/default/weewx I have python3.
> I am using the new weewx.config with the relevant items for MySQL database 
> and my Vantage Pro2 system as before.
> I have installed various missing modules including python-serial, 
> python3-configparser, python3-mysqldb, python3-pymysqld
> I get this error:
> Aug 23 20:04:41 picluster python3[22080]: weewx[22080] CRITICAL 
> __main__:     ****    File "/usr/share/weewx/weedb/mysql.py", line 15, in 
> <module>
> Aug 23 20:04:41 picluster python3[22080]: weewx[22080] CRITICAL 
> __main__:     ****      import pymysql as MySQLdb
> Aug 23 20:04:41 picluster python3[22080]: weewx[22080] CRITICAL 
> __main__:     ****  ImportError: No module named 'pymysql'
> Aug 23 20:04:41 picluster python3[22080]: weewx[22080] CRITICAL 
> __main__:     ****  Exiting.
> But I have pymysql installed, If I go to a python3 prompt and issue this:
> >>>import pymysql
> It does not show an error, so why is weewx complaining??
>
> OK, so I rebooted. Now I have an error which I did have before, then it 
> disappeared:
> Aug 23 22:05:13 picluster python3[5164]: weewx[5164] CRITICAL 
> __main__:     ****    File "/usr/share/weewx/weeutil/weeutil.py", line 
> 1102, in get_object
> Aug 23 22:05:13 picluster python3[5164]: weewx[5164] CRITICAL 
> __main__:     ****      "Module '%s' has no attribute '%s' when searching 
> for '%s'" % (mod.__name__, part, module_class))
> Aug 23 22:05:13 picluster python3[5164]: weewx[5164] CRITICAL 
> __main__:     ****  AttributeError: Module 'weewx.wxmanager' has no 
> attribute 'WxDaySummaryManager' when searching for 
> 'weewx.wxmanager.WxDaySummaryManager'
> Aug 23 22:05:13 picluster python3[5164]: weewx[5164] CRITICAL 
> __main__:     ****  Exiting.
> This happens with all of the following settings in the [[wx_binding]] 
> section
> manager = weewx.manager.DaySummaryManager
> # manager = weewx.manager.WxDaySummaryManager
> # manager = weewx.wxmanager.WxDaySummaryManager
> What is going on here? I should not have updated the system...... Grrrr!!!!
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/99584591-d668-475a-93dc-a7278f7cc67fn%40googlegroups.com.

Reply via email to