Bug#737108: python-gamin: mixed use of tabs and spaces in the gamin.py file causing syntax erros
Jakub Wilk
jwilk at debian.org
Thu Jan 30 18:12:46 UTC 2014
[I'm not the maintainer of this package.]
* Matt Baker <m at 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
More information about the pkg-gnome-maintainers
mailing list