Reputation: 1019
I am repeatedly getting this error with my Tornado app on launch:
File "/Library/Python/2.7/site-packages/tornado/database.py", line 59, in __init__
args = dict(conv=CONVERSIONS, use_unicode=True, charset="utf8",
NameError: global name 'CONVERSIONS' is not defined
I have installed Tornado and MySQLdb with pip. I have uninstalled and re-installed both. I am running against a remote MySQL instance.
I am baffled and not sure how to troubleshoot. Any advice?
Upvotes: 2
Views: 1052
Reputation: 109
if you run it within MAC OS and Eclipse, you should add DYLD_LIBRARY_PATH into eclipse' environment setting.
Upvotes: 0
Reputation: 1019
Ultimately this was masking this error:
ImportError: dlopen(/Library/Python/2.7/site-packages/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Library/Python/2.7/site-packages/_mysql.so
Reason: image not found
I was able to resolve this by setting DYLD_LIBRARY_PATH:
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
Upvotes: 3