Difficulty with "inconsistent use of tabs and spaces in indentation" in file called <string>

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Feb 13 08:14:54 CET 2008

En Tue, 12 Feb 2008 22:57:01 -0200, ibloom <ianmbloom at gmail.com> escribi�:

> On Feb 11, 9:10 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
> wrote:
>> >> <string>: inconsistent use of tabs and spaces in indentation
>> >> Traceback (most recent call last):
>> >>   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
>> >> python2.4/site-packages/py2app/py2app/util.py", line 13, in
>> >> find_version
>> >>     ast = compiler.parseFile(fn)
>> > Put a print statement just above that line, to see which file >  
>> triggers the error.
> Gabriel, your the master.
> Of course I didn't understand that py2app was trying to compile my own
> python source code and when I switched to Xcode as my new editor, I
> started mixing in tabs. So <string> was in fact my code. All I had to
> do was change my preferences in Xcode, to generate spaces instead of
> tabs, remove all of the offending tabs and voila. You've ended days of
> frustrations. Thank you.

Glad to be of any help. Note that all the clues were on the traceback.  
When people here insist that all error reports should come with the  
complete stack trace, it isn't because they want to be annoying, but  
because it's really useful...

Gabriel Genellina

More information about the Python-list mailing list