remi icon indicating copy to clipboard operation
remi copied to clipboard

CGI is not part of python as of 3.13

Open gollumben opened this issue 7 months ago • 2 comments

The cgi module used to parse form data is not available any more as of python 3.13. For remi to continue, the dependency here https://github.com/rawpython/remi/blob/master/remi/server.py#L577 has to be removed

An idea would be to switch to legacy-cgi https://pypi.org/project/legacy-cgi/ . Another to replace the call by parse_qs from urllib. I am no expert, so the details would have to be worked out

On another note, when will the next release be made? The last release on pypi is from 2022 as it seems? https://pypi.org/project/remi/#history

Any feedback is appreciated.

Thanks, Ben

gollumben avatar May 15 '25 11:05 gollumben

Just discovered this myself in RPi OS Trixie testing. It would be good to not to have to use legacy-cgi as that requires a python virtual environment with all the faff that this involves.

KenT2 avatar Sep 08 '25 11:09 KenT2

I use grok code fast to fix it, and it suggests using multipart instead. At least I can use editor by this fix. Now I choose to create a uv venv using python 3.12. May someone can keep maintaining.

cute-omega avatar Nov 29 '25 07:11 cute-omega