Thanks.  This one was the culprit>>  sudo apt-get install python-mysqldb

As I said in the original post I installed MySQL but apparently that does 
not install the python module.
The distro on my Pi is a full current Jessie install.  Seems weird that 
python module was not there already.
I could find no reference to those dependence's in any of the weewx 
documentation. 

Thanks for the quick response.

Now....  On to how to read wind data in realtime. I need to fire a relay if 
wind speed gets above a certain value to roll up my awning up. 

On Sunday, February 12, 2017 at 1:12:57 PM UTC-8, Tom Keffer wrote:

> You need the client libraries for MySQL:
>
> sudo apt-get install mysql-client
> sudo apt-get install python-mysqldb
>
>
> -tk
>
> On Sun, Feb 12, 2017 at 12:31 PM, Carl Forster <[email protected] 
> <javascript:>> wrote:
>
>> Hello.  Have a fresh install running on an Rpi 3 and all is working finr 
>> using default  SQLite. I would lite to use MySQL.  Have MySQL running on a 
>> different computer on my network.  When I make the change in weewx.conf it 
>> gives me the errors shown in the syslog as seen below.  
>>
>>  I have other computers using the same database server for other stuff 
>> with no problems. 
>> On the db server I created an empty db called "weewx" and a user with the 
>> same name and password "weewx"
>> The PI running weewx did not have MySQL installed so I tried installing 
>> it and got the exact same error.
>>
>> any thoughts?  Thanks.
>>
>>
>>
>>
>>
>> Feb 12 12:01:34 Control weewx[29777]: wxcalculate: The following 
>> algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
>> Feb 12 12:01:34 Control weewx[29777]: engine: Archive will use data 
>> binding wx_binding
>> Feb 12 12:01:34 Control weewx[29777]: engine: Record generation will be 
>> attempted in 'hardware'
>> Feb 12 12:01:34 Control weewx[29777]: engine: Using archive interval of 
>> 300 seconds (specified in weewx configuration)
>> Feb 12 12:01:34 Control weewx[29777]: engine: Caught unrecoverable 
>> exception in engine:
>> Feb 12 12:01:34 Control weewx[29777]:     ****  No module named MySQLdb
>> Feb 12 12:01:34 Control weewx[29777]:     ****  Traceback (most recent 
>> call last):
>> Feb 12 12:01:34 Control weewx[29777]:     ****    File 
>> "/usr/share/weewx/weewx/engine.py", line 841, in main
>> Feb 12 12:01:34 Control weewx[29777]:     ****      engine = 
>> engine_class(config_dict)
>> Feb 12 12:01:34 Control weewx[29777]:     ****    File 
>> "/usr/share/weewx/weewx/engine.py", line 76, in __init__
>> Feb 12 12:01:34 Control weewx[29777]:     ****      
>> self.loadServices(config_dict)
>> Feb 12 12:01:34 Control weewx[29777]:     ****    File 
>> "/usr/share/weewx/weewx/engine.py", line 140, in loadServices
>> Feb 12 12:01:34 Control weewx[29777]:     ****      
>> self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
>> Feb 12 12:01:34 Control weewx[29777]:     ****    File 
>> "/usr/share/weewx/weewx/engine.py", line 486, in __init__
>> Feb 12 12:01:34 Control weewx[29777]:     ****      
>> self.setup_database(config_dict)
>> Feb 12 12:01:34 Control weewx[29777]:     ****    File 
>> "/usr/share/weewx/weewx/engine.py", line 584, in setup_database
>> Feb 12 12:01:34 Control weewx[29777]:     ****      dbmanager = 
>> self.engine.db_binder.get_manager(self.data_binding, initialize=True)
>> Feb 12 12:01:34 Control weewx[29777]:     ****    File 
>> "/usr/share/weewx/weewx/manager.py", line 824, in get_manager
>> Feb 12 12:01:34 Control weewx[29777]:     ****      
>> self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
>> Feb 12 12:01:34 Control weewx[29777]:     ****    File 
>> "/usr/share/weewx/weewx/manager.py", line 973, in open_manager
>> Feb 12 12:01:34 Control weewx[29777]:     ****      
>> manager_dict['schema'])
>> Feb 12 12:01:34 Control weewx[29777]:     ****    File 
>> "/usr/share/weewx/weewx/manager.py", line 125, in open_with_create
>> Feb 12 12:01:34 Control weewx[29777]:     ****      connection = 
>> weedb.connect(database_dict)
>> Feb 12 12:01:34 Control weewx[29777]:     ****    File 
>> "/usr/share/weewx/weedb/__init__.py", line 60, in connect
>> Feb 12 12:01:34 Control weewx[29777]:     ****      
>> __import__(db_dict['driver'])
>> Feb 12 12:01:34 Control weewx[29777]:     ****    File 
>> "/usr/share/weewx/weedb/mysql.py", line 10, in <module>
>> Feb 12 12:01:34 Control weewx[29777]:     ****      import MySQLdb
>> Feb 12 12:01:34 Control weewx[29777]:     ****  ImportError: No module 
>> named MySQLdb
>> Feb 12 12:01:34 Control weewx[29777]:     ****  Exiting.
>>
>> -- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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.

Reply via email to