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 1818599 - python-chameleon fails to build with Python 3.9: Various test failures
Summary: python-chameleon fails to build with Python 3.9: Various test failures
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-chameleon
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan ONDREJ
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1842114 (view as bug list)
Depends On: 1817632
Blocks: F33FTBFS PYTHON39 1841793
TreeView+ depends on / blocked
 
Reported: 2020-03-29 14:43 UTC by Miro Hrončok
Modified: 2020-06-11 08:06 UTC (History)
11 users (show)

Fixed In Version: python-chameleon-3.7.2-1.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-11 08:06:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github malthe chameleon issues 307 0 None closed Test failures with Python 3.9: test_simple_translate_mapping, test_pt_files 2020-06-09 03:25:16 UTC

Description Miro Hrončok 2020-03-29 14:43:56 UTC
python-chameleon fails to build with Python 3.9.0a5:

FAIL: test_simple_translate_mapping (chameleon.tests.test_templates.ZopePageTemplatesTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Chameleon-3.6.2/src/chameleon/tests/test_templates.py", line 553, in test_simple_translate_mapping
    self.assertEqual(template(), '<div><span>foo</span></div>')
AssertionError: '<div><span>foo</span>${name}</div>' != '<div><span>foo</span></div>'
- <div><span>foo</span>${name}</div>
?                      -------
+ <div><span>foo</span></div>

And others.


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

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

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 Miro Hrončok 2020-05-04 18:22:30 UTC
python-chameleon is needed for some crucial stuff (I think bodhi).

Comment 2 Miro Hrončok 2020-05-10 06:34:25 UTC
Updating to to 3.7.0 does not fix the problem.

$ repoquery --repo=rawhide{,-source} --whatrequires python3-chameleon
TurboGears2-0:2.4.3-2.fc33.src
python-pyramid-0:1.10.4-6.fc32.src
python-tw2-core-0:2.2.9-1.fc33.src
python-tw2-forms-0:2.2.6-5.fc32.src
python3-TurboGears2-0:2.4.3-2.fc33.noarch


Reported upstream at https://github.com/malthe/chameleon/issues/307

Comment 3 Miro Hrončok 2020-05-10 06:43:06 UTC
Good news is, pyramid doesn't actually need this: https://src.fedoraproject.org/rpms/python-pyramid/pull-request/4

Comment 4 Miro Hrončok 2020-05-11 09:19:48 UTC
3.7.1 has the fix

Comment 5 Miro Hrončok 2020-05-25 13:02:22 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 6 Miro Hrončok 2020-05-29 07:12:08 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 7 Jan ONDREJ 2020-05-30 09:07:10 UTC
chameleon-3.7.1 should be python3.9 compatbile:

https://github.com/malthe/chameleon/commit/247050f799fedbf2ae554d3b9f0946686f982a04

Builds well, just Source0 URL should be switched to github, because pypi package is broken (doesn't contain tests, README.rst and other files)

Required changes:
-Source0:        %pypi_source %{srcname}
+Source0:        https://github.com/malthe/chameleon/archive/%{version}/chameleon-%{version}.tar.gz
-%autosetup -n Chameleon-%{version}
+%autosetup -n chameleon-%{version}

Let me know if I can help to build this.

Comment 8 Miro Hrončok 2020-05-30 22:38:11 UTC
*** Bug 1842114 has been marked as a duplicate of this bug. ***

Comment 10 Kevin Fenzi 2020-06-09 03:26:23 UTC
We are busy with the dc move, if someone would like to push this update feel free... otherwise I can get to it after the move. Thanks!

Comment 11 Jan ONDREJ 2020-06-09 17:14:50 UTC
Unable to access clone/pull from this repository:

$ fedpkg clone python-chameleon
Cloning into 'python-chameleon'...
Error during lookup request: status: 503
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Could not execute clone: Failed to execute command.
$

Is this affected by dc move?
I will try tomorrow.

Comment 12 Jan ONDREJ 2020-06-10 13:16:26 UTC
Update has been pushed to testing, please add one karma point:

https://bodhi.fedoraproject.org/updates/FEDORA-2020-2784da9ab6

Comment 13 Miro Hrončok 2020-06-10 13:20:17 UTC
Rawhide updates don't require karma. This will be pushed once the infra outage ends.

Comment 14 Igor Raits 2020-06-11 05:38:09 UTC
Hello,

Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (ignatenkobrain).

All subpackages of a package agaisnt which this bug was filled are now installable or removed from Fedora 33.

Thanks for taking care of it!


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