For some reason, the Python MySQL client library has not been installed. Try this:
sudo apt-get install mysql-client sudo apt-get install python-mysqldb -tk On Tue, Feb 25, 2020 at 6:11 AM Eric Gammeter <[email protected]> wrote: > > Goal: > Wanting to switch from sqlite to MySql database. > > I am consulting the github /weewx/wiki "Usingwee_database". > > The --dry-run doesn't show any error. > > > pi@raspberrypi:~ $ wee_database --transfer --dest-binding=dest_binding > --dry-run > Using configuration file /etc/weewx/weewx.conf > Using database binding 'wx_binding', which is bound to database > 'archive_sqlite' > Transfer 9177 records from source database 'weewx.sdb' to destination > database 'weewx'. > Dry run, nothing done. > pi@raspberrypi:~ $ wee_database --transfer --dest-binding=dest_binding > Using configuration file /etc/weewx/weewx.conf > Using database binding 'wx_binding', which is bound to database > 'archive_sqlite' > Transfer 9177 records from source database 'weewx.sdb' to destination > database 'weewx' (y/n)? y > Error accessing destination database 'weewx'. > Nothing done. Aborting. > Traceback (most recent call last): > File "/usr/bin/wee_database", line 794, in <module> > main() > File "/usr/bin/wee_database", line 159, in main > transferDatabase(config_dict, db_binding, options) > File "/usr/bin/wee_database", line 410, in transferDatabase > schema=dest_manager_dict['schema']) as dest_manager: > File "/usr/share/weewx/weewx/manager.py", line 128, in open_with_create > connection = weedb.connect(database_dict) > File "/usr/share/weewx/weedb/__init__.py", line 86, in connect > __import__(db_dict['driver']) > File "/usr/share/weewx/weedb/mysql.py", line 10, in <module> > import MySQLdb > ImportError: No module named MySQLdb > > -- > 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/86fc5cde-69a0-4ab3-aa5c-f2c7f0c1559a%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/86fc5cde-69a0-4ab3-aa5c-f2c7f0c1559a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zECMWNGSDs5mE1kzxQg45CS_fLWErR--75m5xinf0DAj7A%40mail.gmail.com.
