On 12/05/2014 11:51 AM, Prashanth Maiya wrote: > Hi All,
Hello, the mailing list for pylint and astroid has moved to pylint-...@lists.logilab.org (to which I CC this message) > > > I am Reverse engineering to find the graphical and hierarchal > representation of customized scons using pyreverse. > > I am running on Windows 7 command prompt and Python version is 2.7.5. > > I downloaded python module asteroid-1.00 for running pyreverse. > > I am getting below syntax error while running pyreverse on scons for > asteroid-1.0.0 module. > > > > > > Traceback (most recent call last): > > File > "C:\Python27\lib\site-packages\astroid-1.0.0-py2.7.egg\astroid\manager.py > > ", line 39, in astroid_wrapper > > return func(modname) > > File > "C:\Python27\lib\site-packages\astroid-1.0.0-py2.7.egg\astroid\manager.py > > ", line 104, in ast_from_file > > return AstroidBuilder(self).file_build(filepath, modname) > > File > "C:\Python27\lib\site-packages\astroid-1.0.0-py2.7.egg\astroid\builder.py > > ", line 127, in file_build > > node = self.string_build(data, modname, path) > > File > "C:\Python27\lib\site-packages\astroid-1.0.0-py2.7.egg\astroid\builder.py > > ", line 133, in string_build > > module = self._data_build(data, modname, path) > > File > "C:\Python27\lib\site-packages\astroid-1.0.0-py2.7.egg\astroid\builder.py > > ", line 146, in _data_build > > node = parse(data + '\n') > > File > "C:\Python27\lib\site-packages\astroid-1.0.0-py2.7.egg\astroid\builder.py > > ", line 39, in parse > > return compile(string, "<string>", 'exec', PyCF_ONLY_AST) > > * File "<string>", line 36* > > * import as* > > * ^* This piece of code has been invalid for a while. Is it supposed to run on recent python version? the "import as" statement (PEP 221) has been added to python 2, and is a Python keyword since Python 2.6 (so it may have worked with python < 2.6). To make pyreverse work, the code must be compatible with the python version used to execute pyreverse. Here you need to rename this module to something else. David > > *SyntaxError: invalid syntax* > > * * > > * * > > Thanks, > > Prashanth > > > > _______________________________________________ > Python-Projects mailing list > Python-Projects@lists.logilab.org > http://lists.logilab.org/mailman/listinfo/python-projects > -- David DOUARD LOGILAB Directeur du département Outils & Systèmes +33 1 45 32 03 12 david.dou...@logilab.fr +33 1 83 64 25 26 http://www.logilab.fr/id/david.douard Formations - http://www.logilab.fr/formations Développements - http://www.logilab.fr/services Gestion de connaissances - http://www.cubicweb.org/
<<attachment: david_douard.vcf>>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org https://lists.logilab.org/mailman/listinfo/python-projects