HelloWorld Tutorial: fprime-util build -j4
fails with "ModuleNotFoundError: No module named 'cgi'"
#3102
Labels
fprime-util build -j4
fails with "ModuleNotFoundError: No module named 'cgi'"
#3102
Problem Description
HelloWorld Tutorial:
fprime-util build -j4
fails withModuleNotFoundError: No module named 'cgi'
cgi is no longer part of the Python standard library. It was removed in Python 3.13 after being deprecated in Python 3.11. The removal was decided in PEP 594.
Workaround is to manually
pip install legacy-cgi
This is a copy of the cgi module on PyPI, no longer maintained or supported by the core Python team.
Context / Environment
Execute
fprime-util version-check
and share the output.How to Reproduce
fprime-util build -j4
Expected Behavior
Successful compilation of the HelloWorld Tutorial.
Manual workaround is:
pip install legacy-cgi
followed by (now successful)
fprime-util build -j4
More permanent fix would be to either update
requirements.txt
or replace cgi (maybe using suggestions from here?)The text was updated successfully, but these errors were encountered: