I think this is an incompatibility between the bundle and python 3. I asked the same question a while back and didn't receive an answer. To quote Dive Into Python - sitecustomize.py is a special script; Python will try to import it on startup, so any code in it will be run automatically. As the comment mentions, it can go anywhere (as long asimport can find it), but it usually goes in the site-packages directory within your Python lib directory.
But I found this answer on the list -
http://lists.macromates.com/textmate/2009-February/028088.html
Basically you need to patch the sitecustomize.py which is found inside the python bundle you are using.
Hope this helps,
MP
On 16/03/2009, at 4:00 PM, Christian wrote:
Am 15.03.2009 um 19:34 schrieb Alex Ross:
On Mar 15, 2009, at 6:07 AM, Christian wrote:
The current PATH is:
/usr/bin /bin /usr/sbin /sbin Please add the directory containing “kpsewhich” to PATH in TextMate's Shell Variables preferences.
Alternatively, the PATH can be retrieved from Terminal but this requires a relaunch: Set PATH and Relaunch.
After I pressed "Set PATH and Relaunch" the shell variable for PATH is set to
/sw/bin:/sw/sbin:/sw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/ bin:/usr/texbin:/usr/X11/bin:/usr/X11R6/bin:/Library/Frameworks/ Python.framework/Versions/3.0/bin
Is that fine or should it be included in .profile as well?
You should be good to go.
Thanks guys for the patient help!
But I am still getting the error with Python v3
Error in sitecustomize; set PYTHONVERBOSE for traceback: NameError: name 'reload' is not defined hallo world
What is going wrong and how could I resolve it?
Christian
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate