On Tuesday, 28 February 2017 22:12:40 UTC+10, Eric Gammeter wrote: > > I am curious as to how you knew to mention python/mysqldb- was it > obvious in the log text file? I did not recognize the situation. >
As usual the error message was the clue: Feb 27 15:35:30 debian weewx[1769]: **** import MySQLdb Feb 27 15:35:30 debian weewx[1769]: **** ImportError: No module named MySQLdb if an import fails it is generally either because the wrong package name has been used in the import statement or the package was not installed/installed properly. Also, most people start off using weeWX with SQLite so they skip the MySQL pre-requisites, after all why install what you don't need. Later on down the track should someone move to MySQL they tend not to go back and look at the pre-requisites. The wiki entry about migrating to MySQL makes mention of making sure python-mysqldb is installed, but the Users Guide section on MySQL makes no mention of it, perhaps it should to pickup those folks who go there instead of the wiki when migrating to MySQL, or perhaps it shoudl mention the wiki page for those migrating to MySQL. Gary -- 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.
