7s9n / pyraylib

Python Object Oriented Wrapper for raylib
https://github.com/Ho011/pyraylib
zlib License
18 stars 4 forks source link

Making it work on python3.10 #2

Closed karen-pal closed 2 years ago

karen-pal commented 2 years ago

Hello, thanks for your work. Your library is awesome!

When trying to run on python3.10 a simple file with just a pyraylib import, an error message appears

ImportError: cannot import name 'Iterable' from 'collections'

Changing this line

from

from collections import (
    Iterable
)

to

from collections.abc import (
    Iterable
)

made it work completely.

I wouldn't mind making a PR with this change. Hope this helps anyone trying to work with this nice library.

Cheers.

7s9n commented 2 years ago

Thanks for the bug report @karen-pal . It'll be great, if you make a PR as soon as possible.