PyFLP icon indicating copy to clipboard operation
PyFLP copied to clipboard

🐞 Python 3.12 Enum issue

Open kingkongjames opened this issue 7 months ago • 4 comments

Describe the issue

Thats the whole code. When I try to run, this happens:

Traceback (most recent call last): File "C:\Users\Stefan\PycharmProjects\fl_changer\main.py", line 6, in project = pyflp.parse("res/beat.flp") ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Stefan\PycharmProjects\fl_changer\venv\Lib\site-packages\pyflp_init_.py", line 123, in parse id = EventEnum(int.from_bytes(stream.read(1), "little")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Stefan\AppData\Local\Programs\Python\Python312\Lib\enum.py", line 744, in call raise TypeError( TypeError: <enum 'EventEnum'> has no members; specify names=() if you meant to create a new, empty, enum

What does that mean? Thank you.

What version of PyFLP are you using?

2.2.1

What code caused this issue?

import pathlib
import sys
import pyflp
project = pyflp.parse("res/beat.flp")

Screenshots, Additional info

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

kingkongjames avatar Nov 07 '23 10:11 kingkongjames

Hmm, I haven't tested PyFLP on Python 3.12 yet. It's difficult for me to find time for this nowadays.

demberto avatar Nov 07 '23 21:11 demberto

The same issue reproduces on my project too.

Robatortas avatar Apr 09 '24 16:04 Robatortas

I have the same issue

SilverShepherd avatar Apr 13 '24 20:04 SilverShepherd

Same issue here as well

Mister-SOSA avatar Apr 18 '24 17:04 Mister-SOSA