_mysql_exceptions

30 views
Skip to first unread message

Cat22

unread,
Mar 2, 2020, 2:07:01 AM3/2/20
to weewx-development
My system:
  linux, openSuse Tumbleweed x86_64
 weewx 3.9.2 using python 2.7.17

I am not getting very far with this so I thought I'd ask here
What module does _mysql_exceptions come from?

 engine: Caught unrecoverable exception in engine:
   ****  No module named _mysql_exceptions
I have searched the web and asked and even grepped the weex directories
(I'm no python programmer) I see references to it in the weewx code like
"from _mysql_exceptions" but I cant figure out where thats coming from
fyi: mysql.py is in weewx/bin/weedb as it should be i guess

The error:
engine: Archive will use data binding wx_binding
weewx
[15764]: engine: Record generation will be attempted in 'hardware'
weewx
[15764]: engine: Using archive interval of 300 seconds (specified by hardware)
weewx
[15764]: engine: Caught unrecoverable exception in engine:
weewx
[15764]:     ****  No module named _mysql_exceptions
weewx
[15764]:     ****  Traceback (most recent call last):
weewx
[15764]:     ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 888, in main
weewx
[15764]:     ****      engine = engine_class(config_dict)
weewx
[15764]:     ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 78, in __init__
weewx
[15764]:     ****      self.loadServices(config_dict)



Vince Skahan

unread,
Mar 2, 2020, 10:38:15 AM3/2/20
to weewx-development
On Sunday, March 1, 2020 at 11:07:01 PM UTC-8, Cat22 wrote:

The error:
engine: Archive will use data binding wx_binding
weewx
[15764]: engine: Record generation will be attempted in 'hardware'
weewx
[15764]: engine: Using archive interval of 300 seconds (specified by hardware)
weewx
[15764]: engine: Caught unrecoverable exception in engine:
weewx
[15764]:     ****  No module named _mysql_exceptions
weewx
[15764]:     ****  Traceback (most recent call last):
weewx
[15764]:     ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 888, in main
weewx
[15764]:     ****      engine = engine_class(config_dict)
weewx
[15764]:     ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 78, in __init__
weewx
[15764]:     ****      self.loadServices(config_dict)




When I see config_dict in your traceback, I immediately think that you perhaps typo'd something in your weewx.conf file when you defined your mysql setup there, but it's also possible you didn't install a prerequisite python package.

A google search for "_mysql_exceptions" returns a lot of hits. A google search for "no module _mysql_exceptions" returns a link pointing to  https://stackoverflow.com/questions/36373008/import-error-no-module-named-mysql


Reply all
Reply to author
Forward
0 new messages