GNOME Bugzilla – Bug 571311
Bug in python indentation
Last modified: 2009-02-11 20:50:20 UTC
Steps to reproduce: application have never start. Stack trace: Details: Here is a report from my terminal, error in python indentation (python 2.5) be carefull using the tab key with python !!!! daeavelwyn@core2duo:~$ soundconverter SoundConverter 1.3.2 Traceback (most recent call last):
+ Trace 212468
import pygtk
dir = os.getcwd()
daeavelwyn@core2duo:~$ sudo nano /var/lib/python-support/python2.5/pygtk.py daeavelwyn@core2duo:~$ soundconverter SoundConverter 1.3.2 Traceback (most recent call last): File "/usr/bin/soundconverter", line 43, in <module> import pygtk File "/var/lib/python-support/python2.5/pygtk.py", line 60 if not versions.has_key(filename[-3:]): ^ TabError: inconsistent use of tabs and spaces in indentation daeavelwyn@core2duo:~$ sudo nano /var/lib/python-support/python2.5/pygtk.py daeavelwyn@core2duo:~$ soundconverter SoundConverter 1.3.2 Traceback (most recent call last): File "/usr/bin/soundconverter", line 43, in <module> import pygtk File "/var/lib/python-support/python2.5/pygtk.py", line 60 if not versions.has_key(filename[-3:]): ^ TabError: inconsistent use of tabs and spaces in indentation daeavelwyn@core2duo:~$ sudo nano /var/lib/python-support/python2.5/pygtk.py daeavelwyn@core2duo:~$ soundconverter SoundConverter 1.3.2 using Gstreamer version: 0.10.21, Python binding version: 0.10.13 using gio 'faac' element not found, disabling AAC. using 2 thread(s) Queue done in 0s Queue done in 0s Queue done in 6s daeavelwyn@core2duo:~$ Other information: I've just correct the pygtk script removing wrong space/tab and using only space.
*** This bug has been marked as a duplicate of 569350 ***