Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1717662 - pylint fails to build with Python 3.8
Summary: pylint fails to build with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pylint
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Christian Dersch
QA Contact: Fedora Extras Quality Assurance
URL: https://copr.fedorainfracloud.org/cop...
Whiteboard:
Depends On:
Blocks: PYTHON38 1716534 1717661
TreeView+ depends on / blocked
 
Reported: 2019-06-05 21:44 UTC by Miro Hrončok
Modified: 2019-08-30 23:04 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-27 09:16:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2019-06-05 21:44:40 UTC
pylint fails to build with Python 3.8.0b1. See https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/pylint/ for actual logs. This report is automated and not very verbose, but I'll get back here with details.

Comment 1 Miro Hrončok 2019-06-05 21:57:24 UTC
E       TypeError: object of type 'Uninferable' has no len()
E           KeyError: (<function infer_named_tuple at 0x7fd68dd2f820>, <Call l.195 at 0x7fd68b007370>)
...

See also bz1717653

Comment 2 Miro Hrončok 2019-06-10 16:43:21 UTC
This issue is blocking the Python 3.8 rebuilds. If this package won't build with 3.8, it won't be installable, along with all its dependent packages, after the side tag is merged.
Furthermore, as it fails to install, its dependent packages will fail to install and/or build as well. The fix should be pushed on the master branch and no release bump is required.

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.8: https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

This issue needs to be resolved by next week, if other rebuilds of Python 3.8 beta 1 go well. If this is unrealistic for you, let us know how much time you need.

If you don't have free cycles to dedicate fixing your package, notify us and we'll try to provide some pointers. Let us know if we can push a fix directly without a pull request, in the case we happen to have one before you do.

We recommend always consulting with upstream, chances are this is already fixed there.

Comment 3 Ben Cotton 2019-08-13 16:57:45 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 4 Ben Cotton 2019-08-13 18:52:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 5 Miro Hrončok 2019-08-14 22:24:09 UTC
The coordinated rebuild of Python 3.8 has started in the `f32-python` side tag.

If you figure out how to rebuild this package, please don't rebuild it in regular rawhide, but use the side tag instead:

    on branch master:
    $ fedpkg build --target=f32-python

To wait for a build to show up in the side tag, do:

    $ koji wait-repo f32-python --build=<nvr>

Where <nvr> is name-version-release of the source package, e.g. python-foo-1.1-2.fc32.

An updated mock config is posted at:
http://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Note that it will take a while before the essential packages are rebuilt, so don't expect all your dependencies to be available right away.

Thanks. Let us know if you need up to date info, or if you have any questions.



PS this message is mass posted to all the bugs that block the PYTHON38 bug. If this is also a Fedora 31 FTBFS bug and you manage to fix it, you can do a f31 build as usual:

    on branch f31:
    $ fedpkg build

Comment 6 Miro Hrončok 2019-08-21 16:34:24 UTC
The f32-python side tag has been merged. In order to rebuild the package, do it in regular rawhide, but please wait until python3-3.8 is tagged:

  $ koji wait-repo f32-build --build python3-3.8.0~b3-3.fc32


If your built already started in f32-python, after it is finished, please tag it to rawhide with:

  $ koji tag-build f32-pending <nvr>

For example:

  $ koji tag-build f32-pending libreoffice-6.3.0.4-3.fc32

Thanks!

(This comment is mass posted to all bugzillas blocking the PYTHON38 tracking bug.)

Comment 7 Miro Hrončok 2019-08-21 17:28:59 UTC
(Python 3.8 has landed in the rawhide buildroot.)

Comment 8 Sergio Basto 2019-08-26 02:59:10 UTC
also breaks opencv  [1] [2]

[1]
https://koji.fedoraproject.org/koji/taskinfo?taskID=37227102

[2]
https://kojipkgs.fedoraproject.org//work/tasks/7102/37227102/root.log

BUILDSTDERR: Error: 
DEBUG util.py:585:  BUILDSTDERR:  Problem: package pylint-2.3.1-2.fc31.noarch requires python3-pylint = 2.3.1-2.fc31, but none of the providers can be installed
DEBUG util.py:585:  BUILDSTDERR:   - conflicting requests
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python3.7dist(astroid) >= 2.2 needed by python3-pylint-2.3.1-2.fc31.noarch
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python3.7dist(astroid) < 3 needed by python3-pylint-2.3.1-2.fc31.noarch
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python3.7dist(isort) >= 4.2.5 needed by python3-pylint-2.3.1-2.fc31.noarch
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python3.7dist(isort) < 5 needed by python3-pylint-2.3.1-2.fc31.noarch
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python3.7dist(mccabe) >= 0.6 needed by python3-pylint-2.3.1-2.fc31.noarch
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python3.7dist(mccabe) < 0.7 needed by python3-pylint-2.3.1-2.fc31.noarch
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python3.7dist(setuptools) needed by python3-pylint-2.3.1-2.fc31.noarch
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python(abi) = 3.7 needed by python3-pylint-2.3.1-2.fc31.noarch

Comment 9 Miro Hrončok 2019-08-26 06:48:29 UTC
I've removed the dependency in opencv-3.4.6-7.fc32 to make it build: https://src.fedoraproject.org/rpms/opencv/c/1c92cba903877a8a3cd7022b7e9e250fe0a5b688?branch=master

Comment 10 Jan Pazdziora 2019-08-26 13:28:50 UTC
Is there a plan to get the pylint build fixed soon? While I don't have build dependency on it in Fedora, I have upstream tests of rpm2swidtag that run pylint on different versions of Fedora in Travis CI and this prevents me from reenabling rawhide there.

Comment 11 Miro Hrončok 2019-08-26 14:06:37 UTC
define soon. nobody is actively fixing it now.

Comment 12 Miro Hrončok 2019-08-26 14:09:20 UTC
Upstream seems to have something https://github.com/PyCQA/pylint/pull/2795

Comment 13 Vojtech Trefny 2019-08-27 08:10:15 UTC
Looks like this -- https://github.com/PyCQA/pylint/commit/d14440fe280a25439c76e53455b4831e04c4bb17 -- is the only patch needed to build pylint with 3.8, at least my scratch build https://koji.fedoraproject.org/koji/taskinfo?taskID=37306903 was successful.
PR in pagure: https://src.fedoraproject.org/rpms/pylint/pull-request/4

Comment 14 Miro Hrončok 2019-08-27 09:16:50 UTC
Thank You!

Comment 15 Sergio Basto 2019-08-30 23:04:46 UTC
(In reply to Miro Hrončok from comment #9)
> I've removed the dependency in opencv-3.4.6-7.fc32 to make it build:
> https://src.fedoraproject.org/rpms/opencv/c/
> 1c92cba903877a8a3cd7022b7e9e250fe0a5b688?branch=master

Now we may revert this commit !


Note You need to log in before you can comment on or make changes to this bug.