Hi, WeeWX is trying to access a MySQL database but the python mysqldb package does not appear to be installed. Try:
$ sudo apt-get install python-mysqldb Further info on pre-requisites is here <http://weewx.com/docs/setup.htm> in the User's Guide <http://weewx.com/docs/usersguide.htm>. Gary On Saturday, 4 August 2018 14:39:34 UTC+10, John Clark wrote: > > I have been running weewxon a Dell optiplex 790 running Mint 18 without a > problem for a few weeks so I finally got a Raspberry pi and have had no end > of trouble. After FOUR complete reinstalls of the OS and weewx I am very > frustrated. When I run > > sudo /etc/init.d/weewx status in Mint there are zero errors, but on the PI I > get > > weewx.service - LSB: weewx weather system > Loaded: loaded (/etc/init.d/weewx; generated; vendor preset: enabled) > Active: active (exited) since Fri 2018-08-03 22:44:02 CDT; 29min ago > Docs: man:systemd-sysv-generator(8) > Process: 16180 ExecStop=/etc/init.d/weewx stop (code=exited, > status=0/SUCCESS) > Process: 16217 ExecStart=/etc/init.d/weewx start (code=exited, > status=0/SUCCESS) > > Aug 03 22:44:02 raspberrypi weewx[16232]: **** File > "/usr/share/weewx/weewx/manager.py", line 1006, in open_manager > Aug 03 22:44:02 raspberrypi weewx[16232]: **** > manager_dict['schema']) > Aug 03 22:44:02 raspberrypi weewx[16232]: **** File > "/usr/share/weewx/weewx/manager.py", line 127, in open_with_create > Aug 03 22:44:02 raspberrypi weewx[16232]: **** connection = > weedb.connect(database_dict) > Aug 03 22:44:02 raspberrypi weewx[16232]: **** File > "/usr/share/weewx/weedb/__init__.py", line 83, in connect > Aug 03 22:44:02 raspberrypi weewx[16232]: **** > __import__(db_dict['driver']) > Aug 03 22:44:02 raspberrypi weewx[16232]: **** File > "/usr/share/weewx/weedb/mysql.py", line 10, in <module> > Aug 03 22:44:02 raspberrypi weewx[16232]: **** import MySQLdb > Aug 03 22:44:02 raspberrypi weewx[16232]: **** ImportError: No module > named MySQLdb > Aug 03 22:44:02 raspberrypi weewx[16232]: **** Exiting. > > I know I am missing something extraordinarily obvious, but I guess the > frustration is blinding me. HELP??!!? > > -- 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]. For more options, visit https://groups.google.com/d/optout.
