byte-compiling build/bdist.linux-x86_64/egg/pylint/test/input/func_unknown_encoding.py to func_unknown_encoding.pyc
Traceback (most recent call last):
File "/hostname/sig/local/lib/python3.2/tokenize.py", line 304, in find_cookie
codec = lookup(encoding)
LookupError: unknown encoding: IBO-8859-1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 187, in <module>
install()
File "setup.py", line 183, in install
**kwargs
File "/hostname/sig/local/lib/python3.2/distutils/core.py", line 148, in setup
dist.run_commands()
File "/hostname/sig/local/lib/python3.2/distutils/dist.py", line 917, in run_commands
self.run_command(cmd)
File "/hostname/sig/local/lib/python3.2/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/home/joiner/.local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/install.py", line 73, in run
self.do_egg_install()
File "/home/joiner/.local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/install.py", line 93, in do_egg_install
self.run_command('bdist_egg')
File "/hostname/sig/local/lib/python3.2/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/hostname/sig/local/lib/python3.2/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/home/joiner/.local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/bdist_egg.py", line 179, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/joiner/.local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/bdist_egg.py", line 166, in call_command
self.run_command(cmdname)
File "/hostname/sig/local/lib/python3.2/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/hostname/sig/local/lib/python3.2/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "setup.py", line 129, in run
install_lib.install_lib.run(self)
File "/home/joiner/.local/lib/python3.2/site-packages/distribute-0.6.24-py3.2.egg/setuptools/command/install_lib.py", line 24, in run
self.byte_compile(outfiles)
File "/hostname/sig/local/lib/python3.2/distutils/command/install_lib.py", line 133, in byte_compile
dry_run=self.dry_run)
File "/hostname/sig/local/lib/python3.2/distutils/util.py", line 547, in byte_compile
compile(file, cfile, dfile)
File "/hostname/sig/local/lib/python3.2/py_compile.py", line 111, in compile
with tokenize.open(file) as f:
File "/hostname/sig/local/lib/python3.2/tokenize.py", line 344, in open
encoding, lines = detect_encoding(buffer.readline)
File "/hostname/sig/local/lib/python3.2/tokenize.py", line 324, in detect_encoding
encoding = find_cookie(first)
File "/hostname/sig/local/lib/python3.2/tokenize.py", line 307, in find_cookie
raise SyntaxError("unknown encoding: " + encoding)
SyntaxError: unknown encoding: IBO-8859-1
|
Comments
-
2011/11/07 03:33, written by anacrolix
-
2011/11/07 10:23
-
2011/11/07 10:28
-
2011/11/07 11:38, written by anacrolix
-
2011/11/07 11:41, written by anacrolix
-
2011/11/07 16:26
-
2011/11/08 04:07, written by anacrolix
-
2011/11/08 08:46
-
2011/11/08 21:23, written by anacrolix
-
2011/11/11 03:53, written by anacrolix
-
2012/08/03 07:30, written by anon
-
2012/08/03 10:21, written by lothiraldan
add commentThis occurs for the latest version out, 0.25.1, *and* the tip from hg.
Also please fix ur bug tracking system, it's absolutely awful. The sign up process was a pain, and the controls all stuff up on Chrome.
agreed, pylint should not crash in that case. I assume you've seen the problem (it is spelled "ISO" and not "IBO")
The problem comes from the installation step. An identical ticket was already opened for the same problem #72022.
Solution: you must not compile files at installation time...
This actually makes no difference.
I can't work out how to attach a file in the tracker, here's the full output:
matt@stanley:~/src/pylint$ python3.2 setup.py install --user --no-compile
running install
running bdist_egg
running egg_info
creating pylint.egg-info
writing requirements to pylint.egg-info/requires.txt
writing pylint.egg-info/PKG-INFO
writing top-level names to pylint.egg-info/top_level.txt
writing dependency_links to pylint.egg-info/dependency_links.txt
writing manifest file 'pylint.egg-info/SOURCES.txt'
package init file './test/__init__.py' not found (or not a regular file)
reading manifest file 'pylint.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.html' under directory 'doc'
warning: no files found matching '*.txt2' under directory 'test'
warning: no files found matching 'noext'
writing manifest file 'pylint.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
package init file './test/__init__.py' not found (or not a regular file)
package init file './test/__init__.py' not found (or not a regular file)
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/pylint
creating build/bdist.linux-x86_64/egg/pylint/test
copying build/lib/pylint/test/test_regr.py -> build/bdist.linux-x86_64/egg/pylint/test
copying build/lib/pylint/test/unittest_lint.py -> build/bdist.linux-x86_64/egg/pylint/test
copying build/lib/pylint/test/test_func_sample_config.py -> build/bdist.linux-x86_64/egg/pylint/test
creating build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_overriden_method_varargs.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_e1101_but_getattr.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_module___dict__.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_base_stmt_without_effect.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_nonregr___file___global.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_import_syntax_error.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/w0801_same.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_r0903.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0403.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_globals.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_i0012.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e0001_py30.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_i0011.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_newstyle_super.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_class_members.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0401.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_too_many_returns_yields.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_class_attributes.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_encoding.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_base_useless_pass.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_classes_meth_signature.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e0205.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_r0902.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_no_warning_docstring.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_indirect_interface.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_access_attr_before_def_false_positive.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_empty_module.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func___name___access.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e0101.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e0204.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_yield_assign_py25.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_too_many_locals_arguments.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_variables_unused_name_from_wilcard_import.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_unused_overridden_argument.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e0011.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_staticmethod_as_decorator_py24.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_builtin_module_test.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_method_without_self_but_self_assignment.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e0012.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_with_without_as_py25.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_r0904.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_classes_meth_could_be_a_function.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_nonregr.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0231.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e0206.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0233.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_decorator_scope.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_names_imported_from_module.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_method_could_be_function.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_dangerous_default.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/syntax_error.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0111.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_operators.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/indirect3.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0202.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_format.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_newstyle_property.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0406.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_backtick_deprecated_py_30.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0112.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_base_init_vars.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0801.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_raise_return_self.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_continue_not_in_loop.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e0203.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_w0232.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_typecheck_getattr.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_factory_method.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_i0010.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_typecheck_non_callable_call.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_interfaces.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_yield_outside_func.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_keyword_repeat.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_undefined_var.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0331_py_30.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0622.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e0601.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_mcs_attr_access.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_external_classmethod_crash.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_newstyle_exceptions.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_r0923.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0152.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_nested_classes.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_static_method.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_f0001.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_i0013.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_genexpr_var_scope_py24.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0103.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_object_as_class_attribute.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0102.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_defining-attr-methods_order.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_nameerror_on_string_substitution.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0205.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_block_disable_msg.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_defined_and_used_on_same_line.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_9215_lambda_arg_as_decorator.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0302.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_use_for_or_listcomp_var.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0108.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_socket_member.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_docstring.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0133.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_function_as_method.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_exceptions_raise_type_error.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_return_outside_func.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_fixme.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/__init__.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0701_py_30.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_classes_protected_member_access.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/indirect2.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0705.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_r0921.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_return_yield_mix.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_except_pass.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_exception.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0109.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_dotted_ancestor.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/indirect1.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_arguments.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0611.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_bad_assigment_to_exception_var.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0703.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_unreachable.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_newstyle___slots__.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e12xx.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0404.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0312.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0402.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_init_vars.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0612.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_overloaded_operator.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0613.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_attrs_definition_order.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e0214.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_dict_keys.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_f0401.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w1201.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0702.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0110.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_class_decorators_py26.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0623.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_e13xx.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_genexp_in_class_scope.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_new_style_class_py_30.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_scope_regrtest.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_break_or_return_in_try_finally.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_syntax_error.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror___init___return_from_inner_function.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0704.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_unknown_encoding.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_long_utf8_line.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0104.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_e1101_13784.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0151.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_e1101_9588_base_attr_aug_assign.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_assert_2uple.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_r0901.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0122_py_30.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_toolonglines.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_method_missing_self.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0105.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_typecheck_callfunc_assigment.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_inner_classes.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_class_access_protected_members.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0405.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0332_py_30.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_reqattrs.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0223.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror___future___import.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/ignore_except_pass_by_default.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_lambda_use_before_assign.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_indent.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_3k_removed_stuff_py_30.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_r0922.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_noerror_yield_return_mix.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/func_w0101.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/input/w0401_cycle.py -> build/bdist.linux-x86_64/egg/pylint/test/input
copying build/lib/pylint/test/test_similar.py -> build/bdist.linux-x86_64/egg/pylint/test
copying build/lib/pylint/test/smoketest.py -> build/bdist.linux-x86_64/egg/pylint/test
copying build/lib/pylint/test/test_import_graph.py -> build/bdist.linux-x86_64/egg/pylint/test
copying build/lib/pylint/test/test_format.py -> build/bdist.linux-x86_64/egg/pylint/test
copying build/lib/pylint/test/utils.py -> build/bdist.linux-x86_64/egg/pylint/test
copying build/lib/pylint/test/test_func.py -> build/bdist.linux-x86_64/egg/pylint/test
copying build/lib/pylint/test/unittest_checkers_utils.py -> build/bdist.linux-x86_64/egg/pylint/test
copying build/lib/pylint/test/unittest_pyreverse_writer.py -> build/bdist.linux-x86_64/egg/pylint/test
creating build/bdist.linux-x86_64/egg/pylint/test/data
copying build/lib/pylint/test/data/clientmodule_test.py -> build/bdist.linux-x86_64/egg/pylint/test/data
copying build/lib/pylint/test/data/__init__.py -> build/bdist.linux-x86_64/egg/pylint/test/data
copying build/lib/pylint/test/data/suppliermodule_test.py -> build/bdist.linux-x86_64/egg/pylint/test/data
copying build/lib/pylint/test/unittest_pyreverse_diadefs.py -> build/bdist.linux-x86_64/egg/pylint/test
creating build/bdist.linux-x86_64/egg/pylint/reporters
copying build/lib/pylint/reporters/html.py -> build/bdist.linux-x86_64/egg/pylint/reporters
copying build/lib/pylint/reporters/text.py -> build/bdist.linux-x86_64/egg/pylint/reporters
copying build/lib/pylint/reporters/guireporter.py -> build/bdist.linux-x86_64/egg/pylint/reporters
copying build/lib/pylint/reporters/__init__.py -> build/bdist.linux-x86_64/egg/pylint/reporters
copying build/lib/pylint/lint.py -> build/bdist.linux-x86_64/egg/pylint
creating build/bdist.linux-x86_64/egg/pylint/pyreverse
copying build/lib/pylint/pyreverse/diagrams.py -> build/bdist.linux-x86_64/egg/pylint/pyreverse
copying build/lib/pylint/pyreverse/diadefslib.py -> build/bdist.linux-x86_64/egg/pylint/pyreverse
copying build/lib/pylint/pyreverse/utils.py -> build/bdist.linux-x86_64/egg/pylint/pyreverse
copying build/lib/pylint/pyreverse/__init__.py -> build/bdist.linux-x86_64/egg/pylint/pyreverse
copying build/lib/pylint/pyreverse/writer.py -> build/bdist.linux-x86_64/egg/pylint/pyreverse
copying build/lib/pylint/pyreverse/main.py -> build/bdist.linux-x86_64/egg/pylint/pyreverse
copying build/lib/pylint/epylint.py -> build/bdist.linux-x86_64/egg/pylint
copying build/lib/pylint/__pkginfo__.py -> build/bdist.linux-x86_64/egg/pylint
copying build/lib/pylint/utils.py -> build/bdist.linux-x86_64/egg/pylint
copying build/lib/pylint/__init__.py -> build/bdist.linux-x86_64/egg/pylint
creating build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/base.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/raw_metrics.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/string_format.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/format.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/newstyle.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/logging.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/exceptions.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/utils.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/misc.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/__init__.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/classes.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/variables.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/imports.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/typecheck.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/similar.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/checkers/design_analysis.py -> build/bdist.linux-x86_64/egg/pylint/checkers
copying build/lib/pylint/interfaces.py -> build/bdist.linux-x86_64/egg/pylint
copying build/lib/pylint/config.py -> build/bdist.linux-x86_64/egg/pylint
copying build/lib/pylint/gui.py -> build/bdist.linux-x86_64/egg/pylint
Creating missing __init__.py for pylint.test
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.2/pyreverse -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.2/epylint -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.2/pylint -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.2/pylint-gui -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.2/symilar -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/pyreverse to 775
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/epylint to 775
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/pylint to 775
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/pylint-gui to 775
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/symilar to 775
copying pylint.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pylint.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pylint.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pylint.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pylint.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/pylint-0.25.0-py3.2.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing pylint-0.25.0-py3.2.egg
removing '/home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg' (and everything under it)
creating /home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg
Extracting pylint-0.25.0-py3.2.egg to /home/matt/.local/lib/python3.2/site-packages
File "/home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg/pylint/test/input/func_e0001_py30.py", line 12
raise 'exception', 'message'
^
SyntaxError: invalid syntax
Sorry: IndentationError: expected an indented block (syntax_error.py, line 2)
File "/home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg/pylint/test/input/func_continue_not_in_loop.py", line 8
continue
^
SyntaxError: 'continue' not properly in loop
File "/home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg/pylint/test/input/func_yield_outside_func.py", line 3
yield 1
^
SyntaxError: 'yield' outside function
File "/home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg/pylint/test/input/func_keyword_repeat.py", line 8
function_default_arg(two=5, two=7)
^
SyntaxError: keyword argument repeated
File "/home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg/pylint/test/input/func_return_outside_func.py", line 3
return
^
SyntaxError: 'return' outside function
File "/home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg/pylint/test/input/func_w0701_py_30.py", line 12
raise 'exception', 'message'
^
SyntaxError: invalid syntax
File "/home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg/pylint/test/input/func_w0705.py", line 28
__revision__ += 1
^
SyntaxError: default 'except:' must be last
File "/home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg/pylint/test/input/func_return_yield_mix.py", line 8
yield 2
SyntaxError: 'return' with argument inside generator
File "/home/matt/.local/lib/python3.2/site-packages/pylint-0.25.0-py3.2.egg/pylint/test/input/func_syntax_error.py", line 1
def toto
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/usr/lib/python3.2/tokenize.py", line 304, in find_cookie
codec = lookup(encoding)
LookupError: unknown encoding: IBO-8859-1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 187, in <module>
install()
File "setup.py", line 183, in install
**kwargs
File "/usr/lib/python3.2/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.2/distutils/dist.py", line 917, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.2/distutils/dist.py", line 936, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 73, in run
self.do_egg_install()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 101, in do_egg_install
cmd.run()
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 364, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 584, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 634, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 788, in install_eggs
return [self.install_egg(dist_filename, tmpdir)]
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 862, in install_egg
(os.path.basename(egg_path),os.path.dirname(destination)))
File "/usr/lib/python3.2/distutils/cmd.py", line 336, in execute
util.execute(func, args, msg, dry_run=self.dry_run)
File "/usr/lib/python3.2/distutils/util.py", line 393, in execute
func(*args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1168, in unpack_and_compile
self.byte_compile(to_compile)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1184, in byte_compile
byte_compile(to_compile, optimize=0, force=1, dry_run=self.dry_run)
File "/usr/lib/python3.2/distutils/util.py", line 547, in byte_compile
compile(file, cfile, dfile)
File "/usr/lib/python3.2/py_compile.py", line 111, in compile
with tokenize.open(file) as f:
File "/usr/lib/python3.2/tokenize.py", line 344, in open
encoding, lines = detect_encoding(buffer.readline)
File "/usr/lib/python3.2/tokenize.py", line 324, in detect_encoding
encoding = find_cookie(first)
File "/usr/lib/python3.2/tokenize.py", line 307, in find_cookie
raise SyntaxError("unknown encoding: " + encoding)
SyntaxError: unknown encoding: IBO-8859-1
I suspect a non-compatible setuptools behaviour since it tries to compile anyway.
Try:
I will update the README.Python3 file
After installing with `NO_SETUPTOOLS=1 python3.2 setup.py install --no-compile`
I get:
$ pylint
Traceback (most recent call last):
File "/home/joiner/.local/bin/pylint", line 3, in <module>
from pylint import lint
File "/home/joiner/.local/lib/python3.2/site-packages/pylint/lint.py", line 31, in <module>
from pylint.checkers import utils
File "/home/joiner/.local/lib/python3.2/site-packages/pylint/checkers/__init__.py", line 44, in <module>
from logilab.astng.utils import ASTWalker
ImportError: No module named logilab.astng.utils
Are you sure to have installed logilab.astng with python3.2 setup.py command ?
Thanks for the help so far guys. I'll be verifying this when I goto work today. (8am here).
That fixed the problem.
$ NO_SETUPTOOLS=1 python3.2 setup.py install --no-compile
$ easy_install-3.2 logilab-common
$ easy_install-3.2 logilab-astng
Was enough to get it going on Python 3.2.
This is still an issue in the new pylint version 0.25.2.
Not being able to use pip is a _huge_ pain for Python 3 users, is there any chance of getting this fixed? Any way I can help?
It's already fixed (cf http://hg-lab.logilab.org/review/pylint/rev/5be0841479b9), it's currently in review process, it will be in next release hopefully.