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

Cheetah version is using deprecated cgi package, removed in Python3.13 #2973

Open
thomas-bc opened this issue Oct 21, 2024 · 1 comment
Open
Labels

Comments

@thomas-bc
Copy link
Collaborator

F´ Version
Affected Component

Problem Description

See https://github.com/nasa/fprime/actions/runs/11395186564/job/31838364025

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/Current/bin/cheetah-compile", line 2, in <module>
    from Cheetah.CheetahWrapper import _cheetah_compile
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/Cheetah/CheetahWrapper.py", line 17, in <module>
    from Cheetah.Template import Template
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/Cheetah/Template.py", line 24, in <module>
    import cgi  # Used by .webInput() if the template is a CGI script.
    ^^^^^^^^^^
ModuleNotFoundError: No module named 'cgi'

Python3.13 release notes (ctrl+f cgi) https://docs.python.org/3/whatsnew/3.13.html

Fixed in Cheetah version: https://cheetahtemplate.org/news.html#id1

Need to upgrade our requirements.txt

@thomas-bc thomas-bc added the bug label Oct 21, 2024
@LeStarch
Copy link
Collaborator

This is a problem with an underlying dependency (Cheetah3/CT3). There does not seem to be a fix for that dependency at this time.

Current work-around: revert to Python3.12 or below.
Desired fix: remove XML code generate and Cheetah depenency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants