Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Python 3.12 Enum issue #183

Open
1 task done
kingkongjames opened this issue Nov 7, 2023 · 9 comments
Open
1 task done

🐞 Python 3.12 Enum issue #183

kingkongjames opened this issue Nov 7, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@kingkongjames
Copy link

kingkongjames commented Nov 7, 2023

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
@kingkongjames kingkongjames added the bug Something isn't working label Nov 7, 2023
@demberto
Copy link
Owner

demberto commented Nov 7, 2023

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

@demberto demberto changed the title Something wrong with Parsing the File🐞 🐞 Python 3.12 Enum issue Nov 7, 2023
@Robatortas
Copy link

The same issue reproduces on my project too.

@SilverShepherd
Copy link

I have the same issue

@Mister-SOSA
Copy link

Same issue here as well

@Bigmancozmo
Copy link

Same issue here, but on Python 3.11.9.

@Lilicogamer13
Copy link

Lilicogamer13 commented Sep 4, 2024

same issue here, but in all python 3 versions(like, littery, all the starting with 3 versions that is here https://www.python.org/doc/versions/), but only in windows

@bartvanandel
Copy link

The problem persists on MacOS as well. I've tried it with a stock template file, using Python 3.12.7:

import pyflp as flp
p = flp.parse('/Applications/Audio/FL Studio 2024.app/Contents/Resources/FL/Data/Templates/Advanced/Electronic/Drum & Bass.flp')

Different paths, same error.

@naweka
Copy link

naweka commented Nov 21, 2024

Same error, python 3.12.7

@naweka
Copy link

naweka commented Nov 21, 2024

fast dirty fix:
image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants