from
Christian Long <christianzlong at yahoo dot com>
subject
[Python-projects] logilab.common error: ignore value (('CVS',
)) should be of type string
date
D'abord, merci pour ce logiciel fort utile.2005/04/12 23:55
Thanks for this handy utility.
Python 2.2.2 (#2, May 27 2003, 14:57:51)
[GCC 3.2.3] on hp-ux11
I installed PyLint and the required logilab.common package.
Try to run pyLint and get the following error:
optik.errors.OptionValueError: ignore value (('CVS',)) should be of type
string
I traced the problem to astng/manager.py and fixed it with a quick hack.
See diff below.
$ pylint /usr/local/bin/mra/test
Traceback (most recent call last):
File "/usr/local/bin/pylint", line 5, in ?
lint.Run(sys.argv[1:])
File "/usr/local/lib/python2.2/site-packages/logilab/pylint/lint.py", line
670
, in __init__
), reporter=reporter, pylintrc=rcfile)
File "/usr/local/lib/python2.2/site-packages/logilab/pylint/lint.py", line
228
, in __init__
self.manager = ASTNGManager()
File
"/usr/local/lib/python2.2/site-packages/logilab/common/astng/manager.py",
line 85, in __init__
OptionsProviderMixIn.__init__(self)
File
"/usr/local/lib/python2.2/site-packages/logilab/common/configuration.py",
line 423, in __init__
action, opt_dict)
File
"/usr/local/lib/python2.2/site-packages/logilab/common/configuration.py",
line 438, in set_option
value = convert(value, opt_dict, opt_name)
File
"/usr/local/lib/python2.2/site-packages/logilab/common/configuration.py",
line 173, in convert
raise OptionValueError('%s value (%s) should be of type %s' %
optik.errors.OptionValueError: ignore value (('CVS',)) should be of type
string
Happens with or without a .pylintrc file in the home directory. I fixed it
by changing
/usr/local/lib/python2.2/site-packages/logilab/common/astng/manager.py
$ diff manager.py.ORIG manager.py
72c72
< 'dest' : "black_list", "default" : ('CVS',),
---
> 'dest' : "black_list", "default" : 'CVS',
Christian Long
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects
