#7133 tox -e pylint3 fails under Python 3.6
Closed: fixed Opened by cheimes.

The pylint3 target fails with Python 3.6 because .wheelconstraints.in enforces pylint < 1.7. 3.6 needs at least pylint 1.7.1 to work.

'TreeRebuilder3k' object has no attribute 'visit_joinedstr'

WIthout pylint < 1.7 in .wheelconstraints.in, tox -e pylint3 fails with these errors:

************* Module ipaclient.remote_plugins.schema
lib/python3.6/site-packages/ipaclient/remote_plugins/schema.py:589: [E1101(no-member), get_package] Instance of 'module' has no 'register' member)
************* Module ipalib.util
lib/python3.6/site-packages/ipalib/util.py:59: [E0611(no-name-in-module), ] No name 'install' in module 'ipalib')
lib/python3.6/site-packages/ipalib/util.py:59: [E0401(import-error), ] Unable to import 'ipalib.install')
lib/python3.6/site-packages/ipalib/util.py:60: [E0401(import-error), ] Unable to import 'ipaplatform.paths')
************* Module ipalib.config
lib/python3.6/site-packages/ipalib/config.py:276: [E1137(unsupported-assignment-operation), Env.__setitem__] 'self.__d' does not support item assignment)
************* Module ipalib.parameters
lib/python3.6/site-packages/ipalib/parameters.py:1230: [E1130(invalid-unary-operand-type), Decimal._enforce_precision] bad operand type for unary -: precision)
************* Module ipalib.cli
lib/python3.6/site-packages/ipalib/cli.py:1002: [E1137(unsupported-assignment-operation), Collector.__setattr__] 'self.__options' does not support item assignment)

Should hopefully be fixed in https://github.com/freeipa/freeipa/pull/992

Metadata Update from @stlaz:
- Issue assigned to stlaz

Should have been fixed as a part of https://pagure.io/freeipa/issue/6874

master:

  • a765746e95579a3f37c9caab5c2506f86b6acc02 pylint: fix not-context-manager false positives
  • 806784dbd9e69a89c7a705c89bf42ba1fd4265c9 csrgen: fix incorrect codec for pyasn BitString
  • b57f87c9a020acad1ff9393c8f09a4c33713ccf1 pylint: fix no-member in schema plugin
  • 216d37b7f0c26b82ae90bde6beb187acdf754e22 dcerpc: refactor assess_dcerpc_exception
  • 3c616d733b6be9958c301027f5bf308c4c6ec366 dcerpc: disable unbalanced-tuple-unpacking
  • f7fc3a3fc1bf25158206cd26d90aa392037fe17a parameters: convert Decimal.precision to int
  • 353d4934afa0e4a83d2458cebeaf362c7ce567e9 pylint: Iterate through dictionaries
  • 33f13b6df92374342d0066bdb9bfc23f1647a623 sudocmd: fix unsupported assignment
  • f2701f3a0b535737f46bdb53732d7e4ea73ad167 pylint: make unsupported-assignment-operation check local
  • ae0bd124f5f13aea7b2f648e6ae7132b11910b2a install.util: disable no-value-for-parameter
  • fab589d7f5bb378d97b470cef0550355d34ab7dc pylint: disable hash for some classes
  • 82d0279381d7f6c3e9a30554c8dfa4a9e5e0196c secrets: disable relative-imports for custodia
  • 0ae2473be0835655a1433bff47228ddabe602177 rpcserver: don't call xmlserver.Command
  • c7f90159a3d5e000805603cd05d7395471af009f Change the requirements for pylint in wheel
  • 76c6ffe1250aa5dcacbef544724f765aae8f59ca Change Travis CI container to FreeIPA-owned
  • a30095b3a6e4917e4a70a7f9f89478236244d28d travis: remove "fast" from "makecache fast"

ipa-4-6:

0565600635777b71a96e63ed421820e0a0891ae5 Travis: archive logs of py3 jobs
ce148ed700b354b4324e65fe5a6097b80bdfc442 pylint: fix not-context-manager false positives
47352fb19df83675863167601d57a6d28c278eb2 csrgen: fix incorrect codec for pyasn BitString
7c64aca2d08fdc40901f4b5bf04a9d093944086a pylint: fix no-member in schema plugin
0b8207df865b28288519a1b6bcfea52f3c693096 dcerpc: refactor assess_dcerpc_exception
f80af622810afc05675eaf7d0b91217ca41a05ab dcerpc: disable unbalanced-tuple-unpacking
25d8229bf9843b857b1918026dc45da92771fa7c parameters: convert Decimal.precision to int
06f3aad5cf26b36e40abd0dd5fc547690c5c5b3d pylint: Iterate through dictionaries
568926fd74f395be5c3b6a2d3bc811732c470fcc sudocmd: fix unsupported assignment
9cf1f1d4cbe38730dff7f35476fd1a5ad09ca605 pylint: make unsupported-assignment-operation check local
e67cdb01c40f9eaec4518b327bd72fdd3100253c install.util: disable no-value-for-parameter
2952af4dc450363ae6c6a466812ae4ef32d087f4 pylint: disable hash for some classes
388bc9459216183deda2336220ca1f5d6f9d0698 secrets: disable relative-imports for custodia
dfeadfed2c6fe1540933c46b540c657344a6a264 rpcserver: don't call xmlserver.Command
0449a4c8113719004297db3466fd189f22544875 Change the requirements for pylint in wheel
79d9bdcec388b5b21b46fcb5a35d93d5b246ace2 Change Travis CI container to FreeIPA-owned
4f4b0ef61b9c9beb5d07db3e89a40d391fbaeaa3 travis: remove "fast" from "makecache fast"

Metadata Update from @stlaz:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.6.1

pylint2 and pylint3 tox envs are still broken in 4.6 branch:

************* Module ipalib.util
lib/python3.6/site-packages/ipalib/util.py:59: [E0611(no-name-in-module), ] No name 'install' in module 'ipalib')
lib/python3.6/site-packages/ipalib/util.py:59: [E0401(import-error), ] Unable to import 'ipalib.install')
lib/python3.6/site-packages/ipalib/util.py:60: [E0401(import-error), ] Unable to import 'ipaplatform.paths')
-----------------------------------
Your code has been rated at 9.99/10
...
************* Module ipalib.util
lib/python2.7/site-packages/ipalib/util.py:59: [E0611(no-name-in-module), ] No name 'install' in module 'ipalib')
lib/python2.7/site-packages/ipalib/util.py:59: [E0401(import-error), ] Unable to import 'ipalib.install')
lib/python2.7/site-packages/ipalib/util.py:60: [E0401(import-error), ] Unable to import 'ipaplatform.paths')
************* Module ipapython.ipautil
lib/python2.7/site-packages/ipapython/ipautil.py:32: [W1648(bad-python3-import), ] Module moved in Python 3)

Metadata Update from @cheimes:
- Issue status updated to: Open (was: Closed)

Metadata Update from @tkrizek:
- Issue set to the milestone: FreeIPA 4.6.2 (was: FreeIPA 4.6.1)

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata