if (do_name() != 'Home') : ?>
endif ?>
Posted by _toby on Jun 14, 2008
the supported libraries of nodebox should be copied to::
~/Library/Application Support/NodeBox/.
maybe that work?
Posted by Fabio C. on Jan 21, 2009
Then go to NodeBox, and type this at the beginning of your script:
That's it :)
hello,
adding the MySQLdb module is a bit tricky but for me it worked this way:
first of all, launch python on your Terminal and type the following:
import MySQLdb
MySQLdb.__path__
this will show you the path where the module is installed on your system. For example, I got this result:>>> import MySQLdb >>> MySQLdb.__path__ ['/Library/Python/2.5/site-packages/MySQL_python-1.2.2-py2.5-macosx-10.5-i386.egg/MySQLdb']Copy the full path (excluding the last part "/MySQLdb").
Then go to NodeBox, and type this at the beginning of your script:
import sys sys.path.append('/Library/Python/2.5/site-packages/MySQL_python-1.2.2-py2.5-macosx-10.5-i386.egg')(or whatever other result you got).
That's it :)
Posted by cboehmer on May 15, 2009
include("util/comment.php"); ?>
@Fabio: I've tried exactly what you described and can't think why it's not working. I know my way around the command line pretty well, so if I'm making a mistake, it's got to be bone-headed...
MySQL
Posted by nelovishk on Jun 13, 2008Hello everyone,
I'm a Python newbie and not a Mac developer, so this might be a general newbie issue.
I added support to Python in OS X by installing the MySQLdb library. If I import MySQLdb in IDLE, it works fine, but if I try the same thing in NodeBox, it gives me an error saying it doesn't find the module.
I went to the NodeBox.app contents and found Python.framework. I changed the name to Python.framework.original and made a symlink to /Libraries/Frameworks/Python.framework called Python.framework. Nothing useful happened...
The question is: Is there any way to force NodeBox to use the OS version of Python? Am I completely missing something?
Thanks in advance