Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with 3.0 Install on Windows

3 views
Skip to first unread message

Saul Spatz

unread,
Jan 20, 2009, 11:33:15 PM1/20/09
to
I'm running python 2.5.x on Windows XP, and I installed 3.0, just to get
familiar with it. I have a directory with all my python projects in my
PYTHONPATH variable. When I try to run python 3.0, it detects a syntax
error (a print statement) in the first file in this directory, and
crashes. I don't want to convert the files to 3.0 syntax, because I
plan to keep using 2.5, at least for a while.

I don't know exactly why this translation is happening. Is there a way
to turn it off?

Thanks

John Machin

unread,
Jan 21, 2009, 12:55:01 AM1/21/09
to

The directories in PYTHONPATH are *prepended* to sys.path. Perhaps one
of your files has the same name as a module that's new in Python
3.0 ... "io" is a possible candidate; "abc" a better one. Care to tell
us the name of the file in which 3.0 finds the syntax error?

Steve Holden

unread,
Jan 21, 2009, 8:34:19 AM1/21/09
to pytho...@python.org
Saul Spatz wrote:
> I'm running python 2.5.x on Windows XP, and I installed 3.0, just to get
> familiar with it. I have a directory with all my python projects in my
> PYTHONPATH variable. When I try to run python 3.0, it detects a syntax
> error (a print statement) in the first file in this directory, and
> crashes. I don't want to convert the files to 3.0 syntax, because I
> plan to keep using 2.5, at least for a while.
>
What's the name of that file? Does it clash with some system module that
the interpreter is trying to load? In circumstances like this a
traceback printout is always more helpful than a verbal description of
the behavior.

> I don't know exactly why this translation is happening. Is there a way
> to turn it off?
>

"Translation"?

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

0 new messages