Python 3.14 removed ast.Str

10 views
Skip to first unread message

Manos Pappas

unread,
Feb 24, 2026, 4:37:06 AM (5 days ago) Feb 24
to Jam.py Users Mailing List
Hello,

I have a jam v5 application that I am in the process of converting to v7.
My setup uses two venv's, one for jam v5 and one for jam v7, so that I can easily switch between environments.

The system Python is 3.14 which removed support for ast.Str which is referenced on v5 werkzeug/routing.py module. The suggested solution is to replace ast.Str with ast.Constant but this does not work.

Any ideas what to do in order to overcome this?

Many thanks in advance,

Manos Pappas

Dean D. Babic

unread,
Feb 25, 2026, 6:35:39 AM (4 days ago) Feb 25
to Jam.py Users Mailing List
Hi, 
I managed to install pyenv-win after this on PS (as admin):
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted


PS C:\Windows\system32> pyenv install 3.13
:: [Info] ::  Mirror: https://www.python.org/ftp/python
:: [Info] ::  Mirror: https://downloads.python.org/pypy/versions.json
:: [Info] ::  Mirror: https://api.github.com/repos/oracle/graalpython/releases
:: [Downloading] ::  3.13.11 ...
:: [Downloading] ::  From https://www.python.org/ftp/python/3.13.11/python-3.13.11-amd64.exe
:: [Downloading] ::  To   C:\Users\dba\.pyenv\pyenv-win\install_cache\python-3.13.11-amd64.exe
:: [Installing] ::  3.13.11 ...
:: [Info] :: completed! 3.13.11
PS C:\Windows\system32> pyenv local 3.13.11
PS C:\Windows\system32> cd C:\Users\dba\Downloads\demo_v5\jam-py-master\jam-py-master\demo

PS C:\Users\dba\Downloads\demo_v5\jam-py-master\jam-py-master\demo> pip install jam.py-v5 standard-imghdr
Collecting jam.py-v5
  Using cached jam.py_v5-5.5.4-py3-none-any.whl.metadata (7.1 kB)
Collecting standard-imghdr
  Using cached standard_imghdr-3.13.0-py3-none-any.whl.metadata (862 bytes)
Using cached jam.py_v5-5.5.4-py3-none-any.whl (2.2 MB)
Using cached standard_imghdr-3.13.0-py3-none-any.whl (4.6 kB)
Installing collected packages: standard-imghdr, jam.py-v5
Successfully installed jam.py-v5-5.5.4 standard-imghdr-3.13.0

[notice] A new release of pip is available: 25.3 -> 26.0.1
[notice] To update, run: python.exe -m pip install --upgrade pip

That's it. Run Jam.py.
Install 3.14 in new PS and you'll have both. Impossible to run on one Python install otherwise.

Good luck.

Manos Pappas

unread,
Feb 27, 2026, 1:35:30 PM (2 days ago) Feb 27
to Jam.py Users Mailing List
Hi,

Thank you for the suggestion.
I've ended up using uv to create two virtual environments using Python 3.13, one for Jam v5 and one for Jam v7.
I can start the v5 application now and use this paradigm in order to rewrite it for v7.

Kind regards,
Manos
Reply all
Reply to author
Forward
0 new messages