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

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Feb 11 12:32:58 EST 2008


En Mon, 11 Feb 2008 13:34:17 -0200, ibloom <ianmbloom at gmail.com> escribi�:

> I've been trying for a couple days to build a program using pyObjC on
> a mac, I'm stuck on this error:
>
> <string>: inconsistent use of tabs and spaces in indentation
> Traceback (most recent call last):
>   File "setup.py", line 59, in ?
>     setup(**setup_options)
>   File "/Library/Frameworks/Python.framework/Versions/2.4//lib/
> python2.4/distutils/core.py", line 149, in setup
>     dist.run_commands()
>   File "/Library/Frameworks/Python.framework/Versions/2.4//lib/
> python2.4/distutils/dist.py", line 946, in run_commands
>     self.run_command(cmd)
>   File "/Library/Frameworks/Python.framework/Versions/2.4//lib/
> python2.4/distutils/dist.py", line 966, in run_command
>     cmd_obj.run()
>   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/py2app/py2app/build_app.py", line 342, in run
>     self.initialize_plist()
>   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/py2app/py2app/build_app.py", line 415, in
> initialize_plist
>     plist = self.get_default_plist()
>   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/py2app/py2app/build_app.py", line 294, in
> get_default_plist
>     version = find_version(target.script)
>   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 Genellina




More information about the Python-list mailing list