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 1728059 - gpaw fails to build with Python 3.8
Summary: gpaw fails to build with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gpaw
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: marcindulak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-07-08 23:08 UTC by Miro Hrončok
Modified: 2019-08-24 14:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-24 14:26:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2019-07-08 23:08:04 UTC
gpaw fails to build with Python 3.8.0b2.

+ python3 setup.py build
Traceback (most recent call last):
  File "setup.py", line 86, in <module>
    get_system_config(define_macros, undef_macros,
  File "/builddir/build/BUILD/gpaw-1.5.2/python3/config.py", line 333, in get_system_config
    p = platform.dist()
AttributeError: module 'platform' has no attribute 'dist'

platform.dist has been deprecated since version 3.5, and was removed in version 3.8: See alternative like the distro package. https://pypi.org/project/distro

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00964750-gpaw/

For all our attempts to build gpaw with Python 3.8, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/gpaw/

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/

Let us know here if you have any questions.

Comment 1 marcindulak 2019-07-09 21:57:31 UTC
https://gitlab.com/gpaw/gpaw/issues/214

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

Comment 3 Miro Hrončok 2019-08-14 22:24:22 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 4 marcindulak 2019-08-15 11:11:30 UTC
 on branch master:
    $ fedpkg build --target=f32-python

results in

https://koji.fedoraproject.org/koji/taskinfo?taskID=37052694

DEBUG util.py:585:  BUILDSTDERR: Error: 
DEBUG util.py:585:  BUILDSTDERR:  Problem 1: conflicting requests
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python3.7dist(setuptools) needed by python3-ase-3.17.0-2.fc31.noarch
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python(abi) = 3.7 needed by python3-ase-3.17.0-2.fc31.noarch
DEBUG util.py:585:  BUILDSTDERR:  Problem 2: conflicting requests
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides libpython3.7m.so.1.0()(64bit) needed by python3-scipy-1.2.1-5.fc31.x86_64
DEBUG util.py:585:  BUILDSTDERR:   - nothing provides python(abi) = 3.7 needed by python3-scipy-1.2.1-5.fc31.x86_64
DEBUG util.py:585:  BUILDSTDERR:  Problem 3: package python3-devel-3.8.0~b3-3.fc32.x86_64 requires python3 = 3.8.0~b3-3.fc32, but none of the providers can be installed
DEBUG util.py:585:  BUILDSTDERR:   - package openmpi-devel-4.0.1-8.fc31.x86_64 requires (python(abi) = 3.7 if python3), but none of the providers can be installed
DEBUG util.py:585:  BUILDSTDERR:   - conflicting requests
DEBUG util.py:587:  (try to add '--skip-broken' to skip uninstallable packages)

Comment 5 Miro Hrončok 2019-08-15 11:17:01 UTC
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.

The builds are slower than expected, as the waitrepo time are now ~1 hour for some reason. I'll let you know when most fo the packages are ready.

Comment 6 Miro Hrončok 2019-08-21 16:35:03 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:29:09 UTC
(Python 3.8 has landed in the rawhide buildroot.)

Comment 8 marcindulak 2019-08-24 14:26:47 UTC
Closing, to me it looks gpaw built against python 3.8 is already in rawhide

wget https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/p/python3-gpaw-19.8.1-2.fc32.x86_64.rpm
rpm -qp --requires python3-gpaw-19.8.1-2.fc32.x86_64.rpm | grep python
warning: python3-gpaw-19.8.1-2.fc32.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 12c944d0: NOKEY
python(abi) = 3.8
...


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