473,324 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Tabnanny errors when Migrating Python 2.4 code to 2.5

Hi,

When Python 2.5 first came out, I eagerly downloaded it and
immediately had issues with getting it to run my 2.4 code. So I just
stuck to 2.4. However, I decided this week that I really should try to
get 2.5 to work. Does anyone know why code that works perfectly for
months in a 2.4 environment throws indentation errors in 2.5?

And why does 2.5 default to indenting 8 characters instead of 4 in
IDLE? That's just weird. When I did a select all and did a Tabify
region, it indented everything 8 characters then too.

I haven't changed the configuration at all. Any ideas?

Thanks,

Mike
Jan 4 '08 #1
3 1272
On Jan 5, 3:56 am, kyoso...@gmail.com wrote:
Hi,

When Python 2.5 first came out, I eagerly downloaded it and
immediately had issues with getting it to run my 2.4 code. So I just
stuck to 2.4. However, I decided this week that I really should try to
get 2.5 to work. Does anyone know why code that works perfectly for
months in a 2.4 environment throws indentation errors in 2.5?
No, not until you go to the bother of reproducing the problem with a
small file, tell us what platform you are on, how you are running this
code (IDLE, shell prompt, ...), how you installed Python 2.5
(2.5.1?), ...
Jan 4 '08 #2
On Jan 4, 2:06 pm, John Machin <sjmac...@lexicon.netwrote:
On Jan 5, 3:56 am, kyoso...@gmail.com wrote:
Hi,
When Python 2.5 first came out, I eagerly downloaded it and
immediately had issues with getting it to run my 2.4 code. So I just
stuck to 2.4. However, I decided this week that I really should try to
get 2.5 to work. Does anyone know why code that works perfectly for
months in a 2.4 environment throws indentation errors in 2.5?

No, not until you go to the bother of reproducing the problem with a
small file, tell us what platform you are on, how you are running this
code (IDLE, shell prompt, ...), how you installed Python 2.5
(2.5.1?), ...

I'm using Windows XP, using IDLE (which was mentioned already) and I
downloaded the 2.5.1 exe/msi file from python.org to install it.

I have yet to find a simple one which exhibits the issue to post. It
seems to happen to my complex files, not the simple ones.

Sorry to bother you.

Mike
Jan 4 '08 #3
On Jan 5, 8:05 am, kyoso...@gmail.com wrote:
On Jan 4, 2:06 pm, John Machin <sjmac...@lexicon.netwrote:
On Jan 5, 3:56 am, kyoso...@gmail.com wrote:
Hi,
When Python 2.5 first came out, I eagerly downloaded it and
immediately had issues with getting it to run my 2.4 code. So I just
stuck to 2.4. However, I decided this week that I really should try to
get 2.5 to work. Does anyone know why code that works perfectly for
months in a 2.4 environment throws indentation errors in 2.5?
No, not until you go to the bother of reproducing the problem with a
small file, tell us what platform you are on, how you are running this
code (IDLE, shell prompt, ...), how you installed Python 2.5
(2.5.1?), ...

I'm using Windows XP, using IDLE (which was mentioned already)
in the context of editing/displaying code, not executing it. Does the
problem occur before or after you edit a file with IDLE?
and I
downloaded the 2.5.1 exe/msi file from python.org to install it.
What you downloaded doesn't answer the question about how you
installed it. Do you still have your 2.4 installation?
>
I have yet to find a simple one which exhibits the issue to post. It
seems to happen to my complex files, not the simple ones.
So chop up a complex file ...
Have you inspected the failing files using a text editor that can
display tabs and spaces (e.g. PythonWin, TextPad)?
>
Sorry to bother you.
You didn't bother me. You are bothering yourself by asking questions
without enough information to get reasonable answers.
Jan 4 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joonas Paalasmaa | last post by:
Hi, When compiling Sketch's streamfilter C extension the errors below are raised during linking. What could cause the errors? (Python 2.3, MinGw 1.1 with GCC 2.95.3-6, Windows 98) Here are...
2
by: Tom Loredo | last post by:
Hi folks- I'm about to move from a Solaris 8/SPARC environment to a Dell running RedHat 9. Are there any issues I need to be aware of in bringing my Python code over (mostly scientific...
16
by: Franz Steinhaeusler | last post by:
Hi, I looked at tabnanny to check a python source file. But I didn't find anything, tabnanny is able to find, what couldn't be found by compile command. Or have I missed something? best...
6
by: Coral Snake | last post by:
I am having problems with programming even simple "Hello World" programs from books and tutorials that use Python GUI libraries. Such Programs cause python to throw "Attribute Errors" even when the...
6
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
7
by: iclinux | last post by:
Environment: WinXP SP2 + Python 2.4.2, with SOAPpy-0.11.6.zip, fpconst-0.7.2.zip, and PyXML-0.8.4.win32-py2.4.exe installed. Problem: I'm reading DiveIntoPython these days. When running code...
5
by: Eric_Dexter | last post by:
I was trying to add this to my project but I must be missing some includes or there is a serius error somewhere Anthra Norell wrote:
16
by: Niels L Ellegaard | last post by:
Is there a module that allows me to find errors that occur due to copy by reference? I am looking for something like the following: Traceback (most recent call last): File "<stdin>", line 1, in...
1
by: John Dalberg | last post by:
I am migrating a web site project to a web application project as indicated at this page: http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx However when I try to compile, I get a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.