jackrosenthal / legacy-cgi

Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594
Other
10 stars 0 forks source link

ModuleNotFoundError: No module named 'cgi' with python3.13 #7

Closed kgorgolewski closed 2 hours ago

kgorgolewski commented 2 hours ago

hi,

now the time has come and i am getting

ModuleNotFoundError: No module named 'cgi'

although the legacy-cgi package is installed

$ python3.13 -m pip install legacy-cgi
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: legacy-cgi in /home/pi/.local/lib/python3.13/site-packages (2.6.1)

any ideas?

thanks krzysztof

kgorgolewski commented 2 hours ago

ok got it. the apache stuff is running under root, so i needed to install the package with this use ;) thanks a lot for your efforts!