https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/
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.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 main >> >> 3/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 loadServices >> >> 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.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_database >> >> 3/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_manager >> >> 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.214 weewx[78560]: **** File >>> "/Users/Shared/weewx/bin/weewx/manager.py", line 973, in open_manager >> >> 3/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_create >> >> 3/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 connect >> >> 3/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 MySQLdb >> >> 3/12/2016 09:07:21.215 weewx[78560]: **** ImportError: No module >>> named MySQLdb >> >> >> > I gather from a previous thread here > > https://groups.google.com/d/msg/weewx-user/BW7uCMOCHhE/oMppmujeJZAJ > > that I need to install two items: > > You need to install the client interfaces to MySQL. >> >> sudo apt-get install mysql-client >> sudo apt-get install python-mysqldb >> > > On my OSX 10.11.6 (El Cap) system this would be via pip, correct? > > 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 > > > Am I not doing this correctly? > -- 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.
