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

Problem with python version 3.10 test #1755

Closed
mikacousin opened this issue Dec 23, 2021 · 4 comments · Fixed by #1757
Closed

Problem with python version 3.10 test #1755

mikacousin opened this issue Dec 23, 2021 · 4 comments · Fixed by #1757

Comments

@mikacousin
Copy link
Contributor

Hi,
I just found a bug with the python version check.
It does not work with python 3.10.

Currently, we have:
if sys.version >= '3.2':
which does not match with 3.10.

It looks like this is working:
if sys.version_info >= (3, 2):

Regards

@peternewman
Copy link
Member

Hi @mikacousin ,

Thanks for reporting.

I was initially a bit confused, but its obviously because the broken version is doing a naïve string comparison and 1 < 2!

I assume you mean here (and elsewhere in that file):

if sys.version >= '3.2':

And likewise (and elsewhere):

if sys.version >= '3.2':

We already do that in

if sys.version_info >= (3, 0):

So we should be good.

Was that all you needed to fix Python 3.10 compatibility? Would you mind opening a PR with those changes please?

Would you mind testing #1723 please while you're there, so we can get that merged in too, and then I think we'll hopefully be properly Python 3 compatible!

@mikacousin
Copy link
Contributor Author

Hi @peternewman,

That's the only problem I found with python 3.10 for now :-)
PR is done, but I'll test #1723 in a few days if I found some time ...
Thanks a lot for all your work on ola !

@peternewman
Copy link
Member

That's the only problem I found with python 3.10 for now :-)

🤞 Roughly what have you done of these via Python:
Send DMX
Receive DMX
Patch universes
List plugins
Send RDM

PR is done, but I'll test #1723 in a few days if I found some time ...

Great thanks.

Thanks a lot for all your work on ola !

No worries

This was linked to pull requests Dec 29, 2021
@peternewman
Copy link
Member

Fixed in #1757

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

Successfully merging a pull request may close this issue.

2 participants