Closed mapperfr closed 2 years ago
Indeed, there is a mismatch with the Markupsafe version (Jinja2 in fact) which has been upgraded between the 3.16 and the 3.22:
3.16
❯ docker run qgis/qgis:release-3_16 python3 -m pip show markupsafe jinja2
Name: MarkupSafe
Version: 2.0.1
Summary: Safely add untrusted strings to HTML/XML markup.
Home-page: https://palletsprojects.com/p/markupsafe/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD-3-Clause
Location: /usr/local/lib/python3.8/dist-packages
Requires:
Required-by: Jinja2
---
Name: Jinja2
Version: 3.0.3
Summary: A very fast and expressive template engine.
Home-page: https://palletsprojects.com/p/jinja/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD-3-Clause
Location: /usr/local/lib/python3.8/dist-packages
Requires: MarkupSafe
Required-by: Sphinx
3.22
❯ docker run qgis/qgis:release-3_22 python3 -m pip show markupsafe jinja2
Name: MarkupSafe
Version: 2.1.1
Summary: Safely add untrusted strings to HTML/XML markup.
Home-page: https://palletsprojects.com/p/markupsafe/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD-3-Clause
Location: /usr/local/lib/python3.8/dist-packages
Requires:
Required-by: Jinja2
---
Name: Jinja2
Version: 3.1.1
Summary: A very fast and expressive template engine.
Home-page: https://palletsprojects.com/p/jinja/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD-3-Clause
Location: /usr/local/lib/python3.8/dist-packages
Requires: MarkupSafe
Required-by: Sphinx
3.24
❯ docker run qgis/qgis:release-3_24 python3 -m pip show markupsafe jinja2
Name: MarkupSafe
Version: 2.1.1
Summary: Safely add untrusted strings to HTML/XML markup.
Home-page: https://palletsprojects.com/p/markupsafe/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD-3-Clause
Location: /usr/local/lib/python3.8/dist-packages
Requires:
Required-by: Jinja2
---
Name: Jinja2
Version: 3.1.1
Summary: A very fast and expressive template engine.
Home-page: https://palletsprojects.com/p/jinja/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD-3-Clause
Location: /usr/local/lib/python3.8/dist-packages
Requires: MarkupSafe
Required-by: Sphinx
To solve it, we'll need to limit the QGIS maximum version in a next release.
@mapperfr try this as a workaround:
python3 -m pip install jinja2==3.1.*
Hey @Guts, thanks for checking in! However I just tried to reproduce the bug and everything seems to be working now. I'm running QGIS 3.24.2 revision 3c1a02865 under Ubuntu 22.04 (fresh install. Living on the edge.) Should we close the report?
Thanks @mapperfr for your feedback.
Could you give us what it's returned by python3 -m pip show markupsafe jinja2
on your system?
And good luck on the edge :wink:!
$ python3 -m pip show markupsafe jinja2
Name: MarkupSafe
Version: 2.0.1
Summary: Safely add untrusted strings to HTML/XML markup.
Home-page: https://palletsprojects.com/p/markupsafe/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD-3-Clause
Location: /usr/lib/python3/dist-packages
Requires:
Required-by:
---
Name: Jinja2
Version: 3.0.3
Summary: A very fast and expressive template engine.
Home-page: https://palletsprojects.com/p/jinja/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD-3-Clause
Location: /usr/lib/python3/dist-packages
Requires:
Required-by:
That's odd.
A new version is available with a bunch of improvments and fixes:
For now, it's still flagged as experimental.
Can you test again and tell me if you still encounter this bug please?
@mapperfr can we close here?
I missed your previous message, sorry about that! Just tried 1.0.0-beta1, everything seems to be working fine. Closing the ticket, thanks for the support @Guts.
Environment
What is the bug?
Can't load the plugin due to a Python error. It appears as installed in the plugin manager but doesn't appear in the menus. Seems to be related to markupsafe Python package?
Python error log: