3/12/2016 09:07:21.209 weewx[78560]: **** No module named MySQLdb3/12/2016 09:07:21.212 weewx[78560]: **** Traceback (most recent call last):3/12/2016 09:07:21.212 weewx[78560]: **** File "/Users/Shared/weewx/bin/weewx/engine.py", line 838, in main3/12/2016 09:07:21.213 weewx[78560]: **** engine = engine_class(config_dict)3/12/2016 09:07:21.213 weewx[78560]: **** File "/Users/Shared/weewx/bin/weewx/engine.py", line 76, in __init__3/12/2016 09:07:21.213 weewx[78560]: **** self.loadServices(config_dict)3/12/2016 09:07:21.213 weewx[78560]: **** File "/Users/Shared/weewx/bin/weewx/engine.py", line 140, in loadServices3/12/2016 09:07:21.213 weewx[78560]: **** self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))3/12/2016 09:07:21.213 weewx[78560]: **** File "/Users/Shared/weewx/bin/weewx/engine.py", line 483, in __init__3/12/2016 09:07:21.213 weewx[78560]: **** self.setup_database(config_dict)3/12/2016 09:07:21.213 weewx[78560]: **** File "/Users/Shared/weewx/bin/weewx/engine.py", line 581, in setup_database3/12/2016 09:07:21.214 weewx[78560]: **** dbmanager = self.engine.db_binder.get_manager(self.data_binding, initialize=True)3/12/2016 09:07:21.214 weewx[78560]: **** File "/Users/Shared/weewx/bin/weewx/manager.py", line 824, in get_manager3/12/2016 09:07:21.214 weewx[78560]: **** self.manager_cache[data_binding] = open_manager(manager_dict, initialize)3/12/2016 09:07:21.214 weewx[78560]: **** File "/Users/Shared/weewx/bin/weewx/manager.py", line 973, in open_manager3/12/2016 09:07:21.214 weewx[78560]: **** manager_dict['schema'])3/12/2016 09:07:21.214 weewx[78560]: **** File "/Users/Shared/weewx/bin/weewx/manager.py", line 125, in open_with_create3/12/2016 09:07:21.215 weewx[78560]: **** connection = weedb.connect(database_dict)3/12/2016 09:07:21.215 weewx[78560]: **** File "/Users/Shared/weewx/bin/weedb/__init__.py", line 60, in connect3/12/2016 09:07:21.215 weewx[78560]: **** __import__(db_dict['driver'])3/12/2016 09:07:21.215 weewx[78560]: **** File "/Users/Shared/weewx/bin/weedb/mysql.py", line 10, in <module>3/12/2016 09:07:21.215 weewx[78560]: **** import MySQLdb3/12/2016 09:07:21.215 weewx[78560]: **** ImportError: No module named MySQLdb
You need to install the client interfaces to MySQL.sudo apt-get install mysql-clientsudo apt-get install python-mysqldb
Macmini:/Users/Shared/weewx$ sudo -H pip install mysql-client
Password:
Collecting mysql-client
Could not find a version that satisfies the requirement mysql-client (from versions: )
No matching distribution found for mysql-client
-------------------------------------------------------------------------------------------------------------------------------------- 08:18:27
Macmini:/Users/Shared/weewx$ port search mysql-client
No match for mysql-client found
-------------------------------------------------------------------------------------------------------------------------------------- 08:18:50
Macmini:/Users/Shared/weewx$ port search python-mysqldb
No match for python-mysqldb found
-------------------------------------------------------------------------------------------------------------------------------------- 08:20:01
Macmini:/Users/Shared/weewx$ sudo -H pip install python-mysqldb
Password:
Collecting python-mysqldb
Could not find a version that satisfies the requirement python-mysqldb (from versions: )
No matching distribution found for python-mysqldb
On Saturday, 3 December 2016 16:19:33 UTC+2, Dan'l B wrote:
I'm testing the MySQL archiving to a remote host, and getting this error:
3/12/2016 09:07:21.209 weewx[78560]: **** No module named MySQLdb
3/12/2016 09:07:21.213 weewx[78560]: **** self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))3/12/2016 09:07:21.214 weewx[78560]: **** self.manager_cache[data_binding] = open_manager(manager_dict, initialize)3/12/2016 09:07:21.215 weewx[78560]: **** connection = weedb.connect(database_dict)
I gather from a previous thread herethat I need to install two items:You need to install the client interfaces to MySQL.sudo apt-get install mysql-clientsudo apt-get install python-mysqldbOn my OSX 10.11.6 (El Cap) system this would be via pip, correct?
Am I not doing this correctly?
house@Houses-Macmini:/Users/shared/weewx$ sudo -H pip install mysql-python
Password:
Collecting mysql-python
Downloading MySQL-python-1.2.5.zip (108kB)
100% |████████████████████████████████| 112kB 539kB/s
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-build-XCRGc0/mysql-python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-XCRGc0/mysql-python/
house@Houses-Macmini:/Users/shared/weewx$ sudo -H pip install mysql-pythonPassword:
Collecting mysql-python
Downloading MySQL-python-1.2.5.zip (108kB)
100% |████████████████████████████████| 112kB 539kB/s
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-build-XCRGc0/mysql-python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-XCRGc0/mysql-python/