Bug 1795949

Summary: python-anymarkup-core fails to build with Python 3.9: encoding parameter of json.loads() has been removed
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-anymarkup-coreAssignee: Fabian Affolter <mail>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, jchaloup, mail, mhroncok, pviktori, tir.karthi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 0.8.1-1.fc33 python-anymarkup-core-0.8.1-1.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-17 10:16:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1785415, 1795946    

Description Miro Hrončok 2020-01-29 10:03:44 UTC
python-anymarkup-core fails to build with Python 3.9.0a3.

E           Original traceback:
E           Traceback (most recent call last):
E             File "/builddir/build/BUILD/anymarkup-core-0.8.0/anymarkup_core/__init__.py", line 111, in parse
E               res = _do_parse(proper_inp, fmt, encoding, force_types, interpolate)
E             File "/builddir/build/BUILD/anymarkup-core-0.8.0/anymarkup_core/__init__.py", line 238, in _do_parse
E               res = json.load(inp, encoding=encoding)
E             File "/usr/lib64/python3.9/json/__init__.py", line 293, in load
E               return loads(fp.read(),
E             File "/usr/lib64/python3.9/json/__init__.py", line 359, in loads
E               return cls(**kw).decode(s)
E           TypeError: __init__() got an unexpected keyword argument 'encoding'

See https://docs.python.org/3.9/whatsnew/3.9.html#removed

"The encoding parameter of json.loads() has been removed. As of Python 3.1, it was deprecated and ignored; using it has emitted a DeprecationWarning since Python 3.8."


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

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

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 Karthikeyan Singaravelan 2020-01-29 16:50:40 UTC
Upstream report : https://github.com/bkabrda/anymarkup-core/issues/4 . I will raise a PR.

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

Comment 3 Miro Hrončok 2020-03-16 13:46:23 UTC
This was fixed upstream. Could you please backport the fix or update if posible?

Comment 4 Fedora Update System 2020-03-17 10:04:15 UTC
FEDORA-2020-abf7114db8 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-abf7114db8

Comment 5 Miro Hrončok 2020-03-17 10:16:31 UTC
Thanks.

Comment 6 Fedora Update System 2020-03-18 02:38:16 UTC
python-anymarkup-core-0.8.1-1.fc32 has been pushed to the Fedora 32 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-abf7114db8

Comment 7 Fedora Update System 2020-03-25 16:15:50 UTC
FEDORA-2020-abf7114db8 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.