10se1ucgo / cue_sdk

Python wrapper for the Corsair Utility Engine SDK
Other
21 stars 2 forks source link

Won't Work on Python Versions > 3.6 Due to Enum #9

Closed finalised closed 6 years ago

finalised commented 7 years ago

I had issues getting the package to work on Python 3.6, so I downgraded to Python 3.2 and it still didn't work. I then read somewhere that between versions 3.4 and 3.5 they changed the way the enum module worked.

To fix this, I installed Python 3.5.0 and it's all good now.

Just want to put this here in case others are looking for a solution.

10se1ucgo commented 6 years ago

Yeah, I have a fix locally but I haven't pushed it. I'll push it in a day or two.

bradMatias commented 6 years ago

can you please push the new version?

10se1ucgo commented 6 years ago

Yeah sorry I started work into other things. For now, open the enumerations.py file and replace each instance of (with_metaclass(KeywordMeta, CEnum)) to just (CEnum, metaclass=KeywordMeta)

e.g.

class CLK(with_metaclass(KeywordMeta, CEnum)):

becomes

class CLK(CEnum, metaclass=KeywordMeta):

Note this breaks Python 2.x compatibility. I'll get around to finding a backwards compatible fix sometime

10se1ucgo commented 6 years ago

Should be fixed by #10. Very sorry for the long wait, been busy with other things.