SIP icon indicating copy to clipboard operation
SIP copied to clipboard

Upcoming incompatibility with Python3.12 and web/template.py

Open bkoblenz opened this issue 1 year ago • 1 comments

I noticed that tokenize in python 3.12 has made an incompatible change (by intent) in how it parses python. In particular, rather than returning an error token in some cases it will raise an exception.

I suspect none of the webpages will successfully render with that new tokenize.

I was able to work around the issue by catching and ignoring the exception but I was hoping someone might find a more elegant way to deal with this.

While I havent done so, I am quite confident any 3.12 version of tokenize being used with sip's webpy software will fail.

Just hoping to get this out there early enough so someone else does not rediscover this.

-brian

bkoblenz avatar Sep 12 '24 02:09 bkoblenz

If the issue is with web.py it should be addressed on the web.py repo: https://github.com/webpy/webpy

Dan-in-CA avatar Sep 12 '24 13:09 Dan-in-CA

Web.py has been updated and the problem eliminated.

Dan-in-CA avatar Dec 30 '25 14:12 Dan-in-CA