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 1793120 - python-cocotb fails to build with Python 3.9: Element.getiterator() is gone
Summary: python-cocotb fails to build with Python 3.9: Element.getiterator() is gone
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cocotb
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Rosser
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-01-20 17:48 UTC by Miro Hrončok
Modified: 2020-02-07 22:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-07 20:26:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-01-20 17:48:20 UTC
python-cocotb fails to build with Python 3.9.0a2.

Traceback (most recent call last):
  File "/builddir/build/BUILD/cocotb-1.2.0/./bin/combine_results.py", line 85, in <module>
    rc = main()
  File "/builddir/build/BUILD/cocotb-1.2.0/./bin/combine_results.py", line 55, in main
    for ts in tree.getiterator("testsuite"):
AttributeError: 'ElementTree' object has no attribute 'getiterator'

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/01168075-python-cocotb/

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

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 Rosser 2020-01-21 15:37:56 UTC
Thanks for the report! This should be fixed in cocotb 1.3, which I need to import and build (I sent a patch upstream [1] during the review process, but I never bothered to apply it downstream). I'll build 1.3 in Rawhide and then I guess it should automatically be pulled into the next round of builds in the copr?

[1] https://github.com/cocotb/cocotb/pull/1123

Comment 2 Ben Rosser 2020-01-21 15:56:44 UTC
Okay, well, the build is broken for a different reason now:

DEBUG util.py:596:  Error: 
DEBUG util.py:596:   Problem: conflicting requests
DEBUG util.py:596:    - nothing provides libgnat-9.so()(64bit) needed by ghdl-0.37dev-9.20191224git38c38e7.fc32.x86_64

https://koji.fedoraproject.org/koji/taskinfo?taskID=40823380

ghdl is only needed to run (some of) the tests; it could be removed if necessary.

Comment 3 Miro Hrončok 2020-01-21 16:02:33 UTC
> it should automatically be pulled into the next round of builds in the copr?

Yes, The copr should pick up any push automatically, it evens attempt to build Pull Requests. If it doesn't it will get picked next time I try to rebuild everything.

Comment 4 Ben Rosser 2020-02-07 20:26:04 UTC
It looks like the most recent build succeeded in the copr, so I guess this can be closed now.

https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-cocotb/

Comment 5 Miro Hrončok 2020-02-07 22:50:11 UTC
Yes, thanks!


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