I've downloaded the latest source release (3.0.9) and installed it on macos. When I run it with Python 3.13.0, I get the ModuleNotFoundError below. Apparently cgi was removed in Py 3.8.
When I run it with Python 3.7, the error does not occur, and my app (that I've just ported from Python 2) seems to work by and large, although the local webserver at times stalls for up to half a minute (no errors; have not yet spent much time investigating).
However, the website says "Future versions of web2py will require 3.9 or greater.". Which Python version am I supposed to use for the time being?
Traceback (most recent call last):
File "/Users/sfx/dev/mdb/web2py-3.0.9/web2py.py", line 58, in <module>
main()
~~~~^^
File "/Users/sfx/dev/mdb/web2py-3.0.9/web2py.py", line 41, in main
import gluon.widget
File "/Users/sfx/dev/mdb/web2py-3.0.9/gluon/__init__.py", line 150, in <module>
from .compileapp import LOAD
File "/Users/sfx/dev/mdb/web2py-3.0.9/gluon/compileapp.py", line 35, in <module>
from gluon.dal import DAL, Field
File "/Users/sfx/dev/mdb/web2py-3.0.9/gluon/dal.py", line 17, in <module>
from gluon import sqlhtml
File "/Users/sfx/dev/mdb/web2py-3.0.9/gluon/sqlhtml.py", line 36, in <module>
from gluon.globals import current
File "/Users/sfx/dev/mdb/web2py-3.0.9/gluon/globals.py", line 15, in <module>
import cgi
ModuleNotFoundError: No module named 'cgi'