On Saturday, December 3, 2016 at 9:23:57 AM UTC-5, Andrew Milner wrote: > > > 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.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) >>>> >>> 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? >> > I take it you mean do the install of MySQL on the Mac. I did so (I am so used to using a MAMP stack that I forget about these things) but it has had no effect. Server is running, did a full re-boot of the mac. Same error
-- 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.
