from
Sylvain Thénault <sylvain.thenault at logilab dot fr>
to
Peter Milliken <peterm at resmed dot com dot au>
cc
Myles <myles.geo at yahoo dot com>
subject
[Python-projects] Re: [ANN] pylint-0.2
date
On Thursday 02 October à 06:39, Peter Milliken wrote:2003/10/02 13:40
> Getting closer but still no prizes :-)
damned...
> Installed the supplied common and re-ran with the following result:
>
> roebourne#1(~/swimming)$ python
> c:/Python22/Lib/site-packages/logilab/pylint/lint.py roll.py
> No config file found, using default configuration
> An error occured while parsing roll
> Traceback (most recent call last):
> File "c:/Python22/Lib/site-packages/logilab/pylint/lint.py", line 529, in
> ?
> Run(*sys.argv[1:])
> File "c:/Python22/Lib/site-packages/logilab/pylint/lint.py", line 497, in
> __init__
> linter.check(modname)
> File "c:/Python22/Lib/site-packages/logilab/pylint/lint.py", line 230, in
> check
> astng = self.manager.astng_from_module_name(mod_name)
> File "c:\Python22\Lib\site-packages\logilab\common\astng\manager.py", line
> 85, in astng_from_module_name
> return self.astng_from_module(module, norm_mod_name)
> File "c:\Python22\Lib\site-packages\logilab\common\astng\manager.py", line
> 62, in astng_from_module
> astng = self._builder.build_from_module(module, mod_name)
> File "c:\Python22\Lib\site-packages\logilab\common\astng\astng.py", line
> 179, in build_from_module
> astng = self._string_build(data)
> File "c:\Python22\Lib\site-packages\logilab\common\astng\astng.py", line
> 234, in _string_build
> ast = parser.suite(data + linesep)
> parser.ParserError: could not parse string
> [exited with 1]
it seems that the parser.suite function doesn't like windows new lines :(
Could you try to replace the files common/fileutils.py and
common/astng/astng.py with those attached to this message, and see if
that fix the problem ?
> I assume that we are getting closer? :-)
of course we are ;)
--
Sylvain Thénault LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org

