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/50dccff6-6453-4125-b001-a280fc984473n%40googlegroups.com.
