Bug 1792953 - python-precis_i18n fails to build with Python 3.9: unknown encoding: UsernameCaseMapped:ToLower
Summary: python-precis_i18n fails to build with Python 3.9: unknown encoding: Username...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-precis_i18n
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Schmidt
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39 F33FTBFS
TreeView+ depends on / blocked
 
Reported: 2020-01-20 12:50 UTC by Miro Hrončok
Modified: 2020-06-22 08:44 UTC (History)
4 users (show)

Fixed In Version: python-precis_i18n-1.0.1-8.20200622git1498def50914.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-21 23:37:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-01-20 12:50:51 UTC
python-precis_i18n fails to build with Python 3.9.0a2.

======================================================================
ERROR: test_golden_json (test_golden.TestGolden)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/precis_i18n-1.0.1/test/test_golden.py", line 26, in test_golden_json
    self.check_disallow(profile, input_, error)
  File "/builddir/build/BUILD/precis_i18n-1.0.1/test/test_golden.py", line 48, in check_disallow
    input_.encode(profile)
LookupError: unknown encoding: UsernameCaseMapped:ToLower
----------------------------------------------------------------------
Ran 59 tests in 34.101s
FAILED (errors=1)

Encodings now need to use _ as separators, see also:

https://bugzilla.redhat.com/show_bug.cgi?id=1789613
https://bugs.python.org/issue37751



For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01161900-python-precis_i18n/

For all our attempts to build python-precis_i18n with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-precis_i18n/

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.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Ben Cotton 2020-02-11 17:32:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 2 Miro Hrončok 2020-03-16 13:03:49 UTC
Michal, could you please have look and report this upstream if needed? Thanks.

Comment 3 Miro Hrončok 2020-05-25 13:02:33 UTC
This comment is mass posted to all bugs blocking the Python 3.9 tracker, sorry if it is not 100 % relevant. When in doubt, please ask.


The Python 3.9 rebuild is in progress in a Koji side tag.

If you fix this bug, please don't rebuild the package in regular rawhide, but do it in the side tag with:

    $ fedpkg build --target=f33-python

The rebuild is progressing slowly and it is possible this package won't have all the required build dependencies yet. If that's the case, please just leave the fix committed and pushed and we will eventually rebuild it for you.

You are not asked to go and try rebuild all the missing dependencies yourself. If you know there is a bootstrap loop in the dependencies, let me know and we can untangle it together.

If you want to test your fix or reproduce the failure, you can still use the Copr repo mentioned in the initial comment of this bug: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Comment 4 Miro Hrončok 2020-05-29 07:12:15 UTC
Python 3.9 update: The f33-python side tag is currently being merged.

New builds in f33-python are no longer possible, but python3 is not yet updated to Python 3.9 in rawhide. You can check when Python is Python 3.9 with:

    $ koji wait-repo f33-build --build python3.9-3.9.0~b1-3.fc3

And build the packages normally after that.

Comment 5 Michal Schmidt 2020-06-21 23:37:14 UTC
I don't really know what I'm doing, but I came up with this patch to make it build:
https://src.fedoraproject.org/rpms/python-precis_i18n/blob/d3eb3f44907b99133e68fc46b4ae986e2c844fe0/f/0001-factory-replace-with-_-in-profile-names.patch

Comment 6 Miro Hrončok 2020-06-22 08:44:28 UTC
> I don't really know what I'm doing

In cases like this, I find it extremely helpful to talk to the upstream project maintainers.


> but I came up with this patch to make it build

Thanks. Please, bring that patch to upstream.


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