Christian, I just took a closer look at the "Update Shell Profile.command" script that you were supposed to run and I noticed that if you don't have ~/.bash_profile, ~/.bash_login or ~/.profile the script will create ~/.bash_profile.
In case you didn't know, "~/.bash_profile" is the file called ".bash_profile" (notice the leading dot) in your home directory (i.e. "/Users/christian/" if you short username is christian).
If you open that file you should see at least these lines, probably at the end of the file:
# Setting PATH for MacPython 3.0 # The orginal version is saved in .bash_login.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.0/bin:${PATH}" export PATH
These lines will place the Python 3.0 executable files before the default executable files and when you'll run "python -V" Bash will run the python executable in the Python 3.0 folder because there's the first match. The same thing happens when running "/usr/bin/env python".
You need to change the search order because most scripts are expecting Python 2.x, not 3.0 (and probably the LaTeX bundle requires Python 2.x). So you need to change the third line to:
PATH="${PATH}:/Library/Frameworks/Python.framework/Versions/3.0/bin"
What you're doing is changing the search order so Bash will run /usr/bin/python first, which is version 2.5.1. You'll need to use /usr/bin/env python3.0 in your scripts' shebang line to make sure your code is running 3.0.
I hope this clears things up.
Andrei Maxim http://artfulco.de
On Sun, Mar 15, 2009 at 10:25 AM, Christian maillists@gmx.de wrote:
Am 15.03.2009 um 02:36 schrieb Alex Ross:
On Mar 14, 2009, at 10:56 AM, Christian wrote:
Error in sitecustomize; set PYTHONVERBOSE for traceback: NameError: name 'reload' is not defined hallo world
How could that be resolved?
Have you upgraded to the cutting-edge TextMate? I think that may fix it.
Hi Alex,
now I run into that problems you warned me before.
when I typset something for LaTeX, I get lots of errors regarding the syntax errors in Python files that the LaTeX.bundle uses.
Nevertheless, I realy need to learn Python 3 for my work as well asneed to work with LaTeX.
Is there a way to solve this..?
Thanks Christian
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate