-
Notifications
You must be signed in to change notification settings - Fork 14
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
Comments
Hmm, I haven't tested PyFLP on Python 3.12 yet. It's difficult for me to find time for this nowadays. |
The same issue reproduces on my project too. |
I have the same issue |
Same issue here as well |
Same issue here, but on Python 3.11.9. |
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 |
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. |
Same error, python 3.12.7 |
attempting to implement a conditional fix (for affected users) regarding this issue. demberto#183
attempting to implement a conditional fix (for affected users) regarding this issue. demberto#183
thanks @naweka that worked! I created a pull request to do conditional usage of your "dirty fix" #196 (merge at not my risk - i did not test it - i just implemented the "dirty fix" directly for my usage.) i also created a mini project to extra sample file paths in the case where they cannot be located and unfortunately FL Studio does not have a built in easy peasy way of seeing where FL Studio thinks the samples are (so they can be moved there or whatever to get the FL Studio project to load OK) https://github.com/MichaelTen/FL-Studio-file-path-extractor for anyone curious to implement the "dirty fix" .... use command "pip show pyflp" to see where the actually files are located to directly edit them. |
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, enumWhat does that mean?
Thank you.
What version of PyFLP are you using?
2.2.1
What code caused this issue?
Screenshots, Additional info
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: