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 1792032 - python-collada fails to build with Python 3.9: Element.getchildren() is no more
Summary: python-collada fails to build with Python 3.9: Element.getchildren() is no more
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-collada
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Shaw
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-01-16 22:00 UTC by Miro Hrončok
Modified: 2020-04-22 21:29 UTC (History)
4 users (show)

Fixed In Version: 0.6-6.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-22 21:29:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pycollada pycollada issues 95 0 None closed pycollada is not compatible with Python 3.9 2020-04-22 18:33:23 UTC
Github pycollada pycollada pull 97 0 None closed Python 3.9 compatibility 2020-04-22 18:33:23 UTC

Description Miro Hrončok 2020-01-16 22:00:03 UTC
python-collada fails to build with Python 3.9.0a2.

ERROR: test_effect_saving (collada.tests.test_material.TestMaterial)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/pycollada-0.6/collada/tests/test_material.py", line 66, in test_effect_saving
    loaded_effect = collada.material.Effect.load(self.dummy, {},
  File "/builddir/build/BUILD/pycollada-0.6/collada/material.py", line 613, in load
    try: props[key] = Effect._loadShadingParam(collada, localscope, pnode)
  File "/builddir/build/BUILD/pycollada-0.6/collada/material.py", line 659, in _loadShadingParam
    children = node.getchildren()
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'

(14 errors like this in total)

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

"Methods getchildren() and getiterator() in the ElementTree module have been removed. They were deprecated in Python 3.2. Use functions list() and iter() instead. The xml.etree.cElementTree module has been removed."


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

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

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:33:45 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 12:54:19 UTC
Upstream closed the issue (for questionable reasons). What are the next steps? Do you want me to help you with the patch (they have indicated they's merge it)? Is should be quite straightforward.

Comment 3 Richard Shaw 2020-03-16 14:05:30 UTC
That would be very helpful! I might be able to figure it out but may not have time in the near future.

If you can get it patched, I'll take care of submitting the PR upstream.

Comment 4 Richard Shaw 2020-04-22 21:24:16 UTC
I applied your pull request as a patch to master, verified it builds with current rawhide, and commited it.

I think that should be enough to close this bug?


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