Skip to content

馃悶 Python 3.12 Enum issue#183

Description

@kingkongjames

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

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions