Bug#737108: python-gamin: mixed use of tabs and spaces in the gamin.py file causing syntax erros

2014-01-30 Thread Matt Baker
Package: python-gamin
Version: 0.1.10-4.1
Severity: grave
Tags: upstream patch
Justification: renders package unusable

Dear Maintainer,

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
 ineffective)?

Running a contrib script supplied by the bcfg2 config management tool

   * What was the outcome of this action?

$ bcfg2-profile-templates.py 
Traceback (most recent call last):
  File 
/usr/local/projects/cfgman/var/work/cmxmb/tags/PROD_STABLE/scripts/bcfg2-profile-templates.py,
 line 13, in module
import Bcfg2.Server.Core
  File /usr/lib/python2.7/dist-packages/Bcfg2/Server/Core.py, line 17, in 
module
import Bcfg2.Server.FileMonitor
  File /usr/lib/python2.7/dist-packages/Bcfg2/Server/FileMonitor/__init__.py, 
line 346, in module
from Bcfg2.Server.FileMonitor.Gamin import Gamin
  File /usr/lib/python2.7/dist-packages/Bcfg2/Server/FileMonitor/Gamin.py, 
line 6, in module
from gamin import WatchMonitor, GAMCreated, GAMExists, GAMEndExist, \
  File /usr/lib/pymodules/python2.7/gamin.py, line 39
err = _gamin.Errno()
   ^
TabError: inconsistent use of tabs and spaces in indentation

   * What outcome did you expect instead?

The script would run without an error returned from importing and using gamin

-- System Information:
Debian Release: 7.3
  APT prefers stable
  APT policy: (800, 'stable')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.0-0.bpo.4-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-gamin depends on:
ii  libc6   2.13-38
ii  libgamin0   0.1.10-4.1
ii  python  2.7.3-4+deb7u1
ii  python-support  1.0.15

python-gamin recommends no packages.

python-gamin suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#737108: python-gamin: mixed use of tabs and spaces in the gamin.py file causing syntax erros

2014-01-30 Thread Jakub Wilk

[I'm not the maintainer of this package.]

* Matt Baker m...@wheres.co.uk, 2014-01-30, 10:19:

$ bcfg2-profile-templates.py
Traceback (most recent call last):
 File 
/usr/local/projects/cfgman/var/work/cmxmb/tags/PROD_STABLE/scripts/bcfg2-profile-templates.py,
 line 13, in module
   import Bcfg2.Server.Core
 File /usr/lib/python2.7/dist-packages/Bcfg2/Server/Core.py, line 17, in 
module
   import Bcfg2.Server.FileMonitor
 File /usr/lib/python2.7/dist-packages/Bcfg2/Server/FileMonitor/__init__.py, line 
346, in module
   from Bcfg2.Server.FileMonitor.Gamin import Gamin
 File /usr/lib/python2.7/dist-packages/Bcfg2/Server/FileMonitor/Gamin.py, line 6, 
in module
   from gamin import WatchMonitor, GAMCreated, GAMExists, GAMEndExist, \
 File /usr/lib/pymodules/python2.7/gamin.py, line 39
   err = _gamin.Errno()
  ^
TabError: inconsistent use of tabs and spaces in indentation


While it is true that gamin uses unholy mixture of spaces and tabs for 
indentation, this does _not_ render the package unusable. The reason the 
script fails is because it uses the -tt option, which enables 
stricter-than-default indentation checks. If you remove this option from 
the script's shebang, it should start working. 


--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#737108: python-gamin: mixed use of tabs and spaces in the gamin.py file causing syntax erros

2014-01-30 Thread Matthew Baker
On 30 January 2014 18:12, Jakub Wilk jw...@debian.org wrote:

 If you remove this option from the script's shebang, it should start
 working.


Right you are. Learn something new every day. =]

I've (attempted) to lower the severity