No activity today, make something!
tiddlyweb 32 bit vs. 64 bit issue

20160313160701 cdent  

There is an issue where the python package managers by default install the 32 bit versions of packages. If you are running 64 bit architecture this is a problem. In this instance you need ensure that 64 bit version of MySQL Python is installed and being used, if not you may see an error message like the following: {{{ ERROR: ImportError: ("couldn't load store for tiddlywebplugins.tiddlyspace.store: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_mysql.so, 2): no suitable image found.
Did find:\n\t/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_mysql.so: mach-o, but wrong architecture, No module named tiddlywebplugins.tiddlyspace.store",) }}}

To resolve this you need to export the following environment variable before installing the package (you may have to remove the package and reinstall)

!!!!! Exports (add to .bash_profile): {{{ export ARCHFLAGS='-arch ppc -arch ppc64 -arch i386 -arch x86_64' #So pip will install 65 bit }}} You also need to export a variable identifying where the MySQL installation is: {{{ export DYLD_LIBRARY_PATH=/usr/local/mysql/lib }}}

!!!!! Reference articles http://practicalcomputing.org/node/50 http://www.blogosfera.co.uk/tag/library-python https://developer.apple.com/library/mac/#releasenotes/OpenSource/PerlExtensionsRelNotes/index.html https://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX