-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'ElementTree' object has no attribute 'getiterator' when using --cocotbxml=... with Python 3.9.1 #130
Comments
This is already there: cocotb-test/cocotb_test/plugin.py Lines 40 to 43 in 9bd8e5a
I can make the last release for cocotb 1.4 |
I am closing this but feel free to reopen if needed. |
Yes, you are right, I think I encountered this with coco-tb 1.4. Thanks. |
I get this message though when I try to install cocotb-test. Is cocotb-test compatible with cocotb>=1.4? You seem to have a hard requirement on cocotb==1.4.
And cocotb-bus 0.1.1 seems to requires cocotb<2.0,>=1.5.0.dev, so it only gets cocotb=1.4.0 and not cocotb=1.5.0rc2. Is it possible to relax cocotb-test requirement to be cocotb>=1.4? |
Unfortunately, there are some incompatibilities so I did this to avoid issues. All this will get cleaned next week when cocotb 1.5 is released. Sorry for the inconvinicen. |
That is alright, thanks for the info and this package. 😄 |
I confirm that the latest master branch works with cocotb 1.5 and modified pytest-parallel. Waiting for a new release of cocotb-test that depends on cocotb==1.5.0 |
With Python 3.9.1 I get the following error without
Based on the following bugfix:
Methods getchildren() and getiterator() of classes ElementTree and Element in the ElementTree module have been removed. They were deprecated in Python 3.2. Use iter(x) or list(x) instead of x.getchildren() and x.iter() or list(x.iter()) instead of x.getiterator(). (Contributed by Serhiy Storchaka in bpo-36543.)
Element.getiterator() should be replaced with .iter(x). Changing these two lines in
cocotb_test/plugin.py
:to:
fixes the issue.
The text was updated successfully, but these errors were encountered: