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 1737356 - python-pycountry fails to build with Python 3.8
Summary: python-pycountry fails to build with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pycountry
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Elliott Sales de Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-08-05 08:27 UTC by Miro Hrončok
Modified: 2019-08-19 04:32 UTC (History)
2 users (show)

Fixed In Version: python-pycountry-19.8.18-1.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-19 04:32:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2019-08-05 08:27:14 UTC
python-pycountry fails to build with Python 3.8.0b3.

+ /usr/bin/python3 -m pytest --pyargs pycountry
error: Bad exit status from /var/tmp/rpm-tmp.QOcPUs (%check)
============================= test session starts ==============================
platform linux -- Python 3.8.0b3, pytest-4.6.4, py-1.8.0, pluggy-0.12.0
rootdir: /builddir/build/BUILD/pycountry-18.12.8
collected 17 items

tests/test_general.py ..F..............                                  [100%]

=================================== FAILURES ===================================
____________________ test_subdivisions_directly_accessible _____________________

    def test_subdivisions_directly_accessible():
>       assert len(pycountry.subdivisions) == 4836
E       assert 4844 == 4836
E        +  where 4844 = len(<pycountry.Subdivisions object at 0x7f020945c8e0>)
E        +    where <pycountry.Subdivisions object at 0x7f020945c8e0> = pycountry.subdivisions

../../BUILDROOT/python-pycountry-18.12.8-3.fc31.x86_64/usr/lib/python3.8/site-packages/pycountry/tests/test_general.py:29: AssertionError
===================== 1 failed, 16 passed in 0.37 seconds ======================

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

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

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 Ben Cotton 2019-08-13 16:49:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 2 Miro Hrončok 2019-08-14 22:24:38 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 3 Elliott Sales de Andrade 2019-08-19 04:21:26 UTC
I think this is because of iso-codes 4.3, and should be fixed by the update to the latest version, which I am working on now.

Comment 4 Elliott Sales de Andrade 2019-08-19 04:32:22 UTC
Not sure what status to put here, but fixed in the side tag.


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