After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 571311 - Bug in python indentation
Bug in python indentation
Status: RESOLVED DUPLICATE of bug 569350
Product: pygtk
Classification: Bindings
Component: general
2.5.x/2.6.x
Other All
: Normal critical
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-11 14:04 UTC by daeavelwyn
Modified: 2009-02-11 20:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description daeavelwyn 2009-02-11 14:04:52 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):
  • File "/usr/bin/soundconverter", line 43 in <module>
    import pygtk
  • File "/var/lib/python-support/python2.5/pygtk.py", line 41
    dir = os.getcwd()
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
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.
Comment 1 Gian Mario Tagliaretti 2009-02-11 20:50:20 UTC

*** This bug has been marked as a duplicate of 569350 ***