It seems that for a similar error the solution was to update Python to almost 2.7.9. >https://github.com/numba/numba/issues/2642
On Opalstack in the virtualenv I've 2.7.5. Checking the latest version with python2 --version I obtain 2.7.5. That's strange as it exists 2.7.16. Il giorno sabato 24 ottobre 2020 alle 20:38:45 UTC+2 Gaël Princivalle ha scritto: > >Perhaps you can +1 them on this feature request. > Done. > > > The zip_static_files.py utility in your web2py scripts directory will > create gzipped versions of all your static files for you. > Great. > However something goes wrong. > > [user@vpsXX web2py]$ python web2py.py -S myapp -R > scripts/zip_static_files.py > Traceback (most recent call last): > File "web2py.py", line 41, in <module> > import gluon.widget > File "/home/user/apps/web2py_folder/web2py/gluon/widget.py", line 27, in > <module> > from gluon.shell import die, run, test > File "/home/user/apps/web2py_folder/web2py/gluon/shell.py", line 285 > exec(read_pyc(pycfile), _env) > SyntaxError: unqualified exec is not allowed in function 'run' it contains > a nested function with free variables > > Do you know why? > Il giorno sabato 24 ottobre 2020 alle 19:00:18 UTC+2 Jose C ha scritto: > >> I requested gzip as well for a static media site (https) and they said: >> >> Our front-end Nginx server will not use gzip compression for requests >>> served over HTTPS. This is by design as a mitigation for the BREACH >>> exploit <https://en.wikipedia.org/wiki/BREACH>. >>> >>> We've an internal feature ticket open to consider making the mitigation >>> optional for customers that don't need it. I will make a note of your >>> inquiry there. >>> >> >> Perhaps you can +1 them on this feature request. >> >> However, if you're serving your static files via web2py itself (and not >> via a static app on another domain for speed) then web2py will send the .gz >> file version of a requested asset if it exists. For example, a request for >> mysite.css comes in, web2py sends mysite.css.gz automatically if it exists, >> else it sends mysite.css. >> >> The zip_static_files.py utility in your web2py scripts directory will >> create gzipped versions of all your static files for you. >> >> HTH, >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/5b4211de-b5a0-49eb-adeb-b58ee1c35295n%40googlegroups.com.