demberto / demberto/PyFLP

🐞 Python 3.12 Enum issue

Open
#183 15 comments 4 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
212
Forks
30
PR merge metrics
No merged PRs in 30d

Description

### 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: 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?

```python3
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.