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

Bundle script fails with Python 3.13 #600

Open
ofabel opened this issue Jan 19, 2025 · 0 comments
Open

Bundle script fails with Python 3.13 #600

ofabel opened this issue Jan 19, 2025 · 0 comments
Assignees
Labels
python Pull requests that update Python code

Comments

@ofabel
Copy link
Contributor

ofabel commented Jan 19, 2025

The bundle script located in tools/bundle.py fails with Python version 3.13:

$ python tools/bundle.py applications/Tools/upython/manifest.yml bundle.zip
Traceback (most recent call last):
  File "/home/ofa/dev/flipper-application-catalog/tools/bundle.py", line 15, in <module>
    from dataclass_wizard.dumpers import asdict
  File "/home/ofa/.local/lib/python3.13/site-packages/dataclass_wizard/__init__.py", line 100, in <module>
    from .bases_meta import LoadMeta, DumpMeta
  File "/home/ofa/.local/lib/python3.13/site-packages/dataclass_wizard/bases_meta.py", line 10, in <module>
    from .abstractions import AbstractJSONWizard
  File "/home/ofa/.local/lib/python3.13/site-packages/dataclass_wizard/abstractions.py", line 14, in <module>
    from .models import Extras
  File "/home/ofa/.local/lib/python3.13/site-packages/dataclass_wizard/models.py", line 3, in <module>
    from dataclasses import MISSING, Field, _create_fn
ImportError: cannot import name '_create_fn' from 'dataclasses' (/usr/lib64/python3.13/dataclasses.py)

I did a quick test with a clean Python 3.12 and 3.13 environment in Docker to ensure the problem is not on my side: same result with 3.13 and works as expected with 3.12.

FROM python:3.13

WORKDIR /app

COPY . .

RUN pip install -r tools/requirements.txt

CMD [ "python", "tools/bundle.py", "applications/Tools/upython/manifest.yml", "bundle.zip" ]

I'm on Fedora 41 (KDE Spin) using a standard Python 3.13 (obviously) installation and Intel i7 CPU.

@skotopes skotopes added the python Pull requests that update Python code label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

3 participants