Skip to content
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

Build failure with Python 3.10 #61

Closed
fabaff opened this issue Mar 3, 2021 · 2 comments · Fixed by #62
Closed

Build failure with Python 3.10 #61

fabaff opened this issue Mar 3, 2021 · 2 comments · Fixed by #62

Comments

@fabaff
Copy link
Contributor

fabaff commented Mar 3, 2021

If running with Python 3.10 then the tests don't pass.

[...]
self.name)
                        )
E               AttributeError: Command: no attribute
'GW_LEAVE_LEARN_STATE_REQ'

/usr/lib64/python3.10/enum.py:146: AttributeError
=========================== short test summary info
============================
FAILED
test/frame_leave_learn_state_req_test.py::TestFrameLeaveLearnStateRequest::test_frame_from_raw
======================== 1 failed, 287 passed in 0.84s
=========================

See https://bugzilla.redhat.com/show_bug.cgi?id=1928062 for details.

Tanks

@Julius2342
Copy link
Owner

3.10 ... cutting edge :)

@tirkarthi
Copy link
Contributor

This could be probably due to https://bugs.python.org/issue43162 . Looking at the file everything seems to access from enum while this if clause alone retrieves from the object. I guess it's probably a typo of capital C and lowercase C.

if command == command.GW_LEAVE_LEARN_STATE_REQ:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants