pylint installation ParseError

Probleme bei der Installation?
Antworten
thaloss
User
Beiträge: 15
Registriert: Mittwoch 26. März 2014, 13:59

Hallo,

ich bin wenn auch kein Programmier Neuling aber doch absoluter python Neuling.
mein Trainer hatte unsere Gruppe auf pylint hingewiesen zwecks Stil-Überprüfung.
Da pylint schon bei einfachen programmen mit einem Traceback aussteigt habe ich mir
die installation nochmal genauer angesehen und auf auf mehrere ParseError gestossen..
hier das install logfile:
Downloading/unpacking pylint
Running setup.py (path:C:\Users\PALOAD~1\AppData\Local\Temp\pip_build_paloadperf\pylint\setup.py) egg_info for package pylint

Requirement already satisfied (use --upgrade to upgrade): logilab-common>=0.53.0 in c:\python34\lib\site-packages (from pylint)
Requirement already satisfied (use --upgrade to upgrade): astroid>=0.24.3 in c:\python34\lib\site-packages (from pylint)
Requirement already satisfied (use --upgrade to upgrade): colorama in c:\python34\lib\site-packages (from logilab-common>=0.53.0->pylint)
Installing collected packages: pylint
Running setup.py install for pylint
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
Can't parse C:\Python34\Lib\site-packages\pylint\test\input\func_exec_used_py30.py: ParseError: bad input: type=22, value='=', context=('', (6, 21))
Can't parse C:\Python34\Lib\site-packages\pylint\test\input\func_syntax_error.py: ParseError: bad input: type=4, value='\n', context=('', (1, 8))
Can't parse C:\Python34\Lib\site-packages\pylint\test\input\syntax_error.py: ParseError: bad input: type=1, value='print', context=('', (2, 0))

Installing pylint-gui-script.py script to C:\Python34\Scripts
Installing pylint-gui.exe script to C:\Python34\Scripts
Installing pylint-gui.exe.manifest script to C:\Python34\Scripts
Installing pylint-script.py script to C:\Python34\Scripts
Installing pylint.exe script to C:\Python34\Scripts
Installing pylint.exe.manifest script to C:\Python34\Scripts
Installing epylint-script.py script to C:\Python34\Scripts
Installing epylint.exe script to C:\Python34\Scripts
Installing epylint.exe.manifest script to C:\Python34\Scripts
Installing pyreverse-script.py script to C:\Python34\Scripts
Installing pyreverse.exe script to C:\Python34\Scripts
Installing pyreverse.exe.manifest script to C:\Python34\Scripts
Installing symilar-script.py script to C:\Python34\Scripts
Installing symilar.exe script to C:\Python34\Scripts
Installing symilar.exe.manifest script to C:\Python34\Scripts
Successfully installed pylint
Cleaning up...
am ende des logs steht zwar successfully installed aber ich traue der Sache nicht.
Ich weiß zwar nicht ob dies der grund für meine Tracebacks bei pylint ist, sieht aber schonmal verdächtig aus.
Hier noch der Traceback von pylint
>pylint test.py
No config file found, using default configuration
************* Module test
C: 1, 0: Missing module docstring (missing-docstring)
Traceback (most recent call last):
File "C:\Python34\Scripts\pylint-script.py", line 9, in <module>
load_entry_point('pylint==1.1.0', 'console_scripts', 'pylint')()
File "C:\Python34\lib\site-packages\pylint\__init__.py", line 21, in run_pylint
Run(sys.argv[1:])
File "C:\Python34\lib\site-packages\pylint\lint.py", line 1040, in __init__
linter.check(args)
File "C:\Python34\lib\site-packages\pylint\lint.py", line 626, in check
self.check_astroid_module(astroid, walker, rawcheckers, tokencheckers)
File "C:\Python34\lib\site-packages\pylint\lint.py", line 712, in check_astroid_module
walker.walk(astroid)
File "C:\Python34\lib\site-packages\pylint\utils.py", line 697, in walk
self.walk(child)
File "C:\Python34\lib\site-packages\pylint\utils.py", line 694, in walk
cb(astroid)
File "C:\Python34\lib\site-packages\pylint\checkers\variables.py", line 540, in visit_import
module = next(node.infer_name_module(parts[0]))
File "C:\Python34\lib\site-packages\astroid\bases.py", line 307, in wrapped
for res in _func(node, context, **kwargs):
File "C:\Python34\lib\site-packages\astroid\inference.py", line 178, in infer_import
yield self.do_import_module(name)
File "C:\Python34\lib\site-packages\astroid\mixins.py", line 103, in do_import_module
return mymodule.import_module(modname, level=level)
File "C:\Python34\lib\site-packages\astroid\brain\py2gi.py", line 113, in _new_import_module
return _orig_import_module(self, modname, relative_only, level)
File "C:\Python34\lib\site-packages\astroid\scoped_nodes.py", line 339, in import_module
return MANAGER.ast_from_module_name(absmodname)
File "C:\Python34\lib\site-packages\astroid\manager.py", line 133, in ast_from_module_name
return self.ast_from_file(filepath, modname, fallback=False)
File "C:\Python34\lib\site-packages\astroid\manager.py", line 104, in ast_from_file
return AstroidBuilder(self).file_build(filepath, modname)
File "C:\Python34\lib\site-packages\astroid\builder.py", line 127, in file_build
node = self.string_build(data, modname, path)
File "C:\Python34\lib\site-packages\astroid\builder.py", line 133, in string_build
module = self._data_build(data, modname, path)
File "C:\Python34\lib\site-packages\astroid\builder.py", line 157, in _data_build
module = rebuilder.visit_module(node, modname, package)
File "C:\Python34\lib\site-packages\astroid\rebuilder.py", line 157, in visit_module
newnode.body = [self.visit(child, newnode) for child in node.body]
File "C:\Python34\lib\site-packages\astroid\rebuilder.py", line 157, in <listcomp>
newnode.body = [self.visit(child, newnode) for child in node.body]
File "C:\Python34\lib\site-packages\astroid\rebuilder.py", line 170, in visit
return self._transform(visit_method(node, parent))
File "C:\Python34\lib\site-packages\astroid\rebuilder.py", line 499, in visit_function
newnode.args = self.visit(node.args, newnode)
File "C:\Python34\lib\site-packages\astroid\rebuilder.py", line 170, in visit
return self._transform(visit_method(node, parent))
File "C:\Python34\lib\site-packages\astroid\rebuilder.py", line 842, in visit_arguments
newnode = super(TreeRebuilder3k, self).visit_arguments(node, parent)
File "C:\Python34\lib\site-packages\astroid\rebuilder.py", line 187, in visit_arguments
newnode.defaults = [self.visit(child, newnode) for child in node.defaults]
File "C:\Python34\lib\site-packages\astroid\rebuilder.py", line 187, in <listcomp>
newnode.defaults = [self.visit(child, newnode) for child in node.defaults]
File "C:\Python34\lib\site-packages\astroid\rebuilder.py", line 168, in visit
visit_method = getattr(self, visit_name)
AttributeError: 'TreeRebuilder3k' object has no attribute 'visit_nameconstant'
die Testdatei ist nicht der Rede Wert und stammt vom ersten Trainingstag aber wenn pylnt hier schon aussteigt ..
Achso ich verwende python 3.4 32Bit unter Windows 7 64Bit

Code: Alles auswählen

import os

print(os)
print( os.getcwd() )
"In jedem kleinen Problem steckt ein großes das gerne raus will"
Leonidas
Python-Forum Veteran
Beiträge: 16025
Registriert: Freitag 20. Juni 2003, 16:30
Kontaktdaten:

Das sieht eher aus als gäbe es Bugs in astroid auf Python 3. Solltest du den astroid-Entwicklern am besten melden.
My god, it's full of CARs! | Leonidasvoice vs (former) Modvoice
Antworten