automation-api-examples
automation-api-examples copied to clipboard
Update requirements.txt
Pinning markupsafe, see discussion I had error:
jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/alex/anaconda3/envs/pulumi_env/lib/python3.10/site-packages/markupsafe/__init__.py)
fix pip install markupsafe==2.0.1
PR is now waiting for a maintainer to run the acceptance tests. Note for the maintainer: To run the acceptance tests, please comment /run-example-tests on the PR
If someone can repro the bug and the fix, we should merge this 👍🏻
@kpitzen?
looking into this. was able to repro locally and the error was resolved by the pin.
python/pulumi_over_http (git)-[main] % python app.py
Traceback (most recent call last):
File "/home/kdixler/go/src/github.com/pulumi/automation-api-examples/python/pulumi_over_http/app.py", line 4, in <module>
from flask import Flask, request, make_response, jsonify
File "/home/kdixler/go/src/github.com/pulumi/automation-api-examples/python/pulumi_over_http/venv/lib/python3.10/site-packages/flask/__init__.py", line 14, in <module>
from jinja2 import escape
File "/home/kdixler/go/src/github.com/pulumi/automation-api-examples/python/pulumi_over_http/venv/lib/python3.10/site-packages/jinja2/__init__.py", line 12, in <module>
from .environment import Environment
File "/home/kdixler/go/src/github.com/pulumi/automation-api-examples/python/pulumi_over_http/venv/lib/python3.10/site-packages/jinja2/environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "/home/kdixler/go/src/github.com/pulumi/automation-api-examples/python/pulumi_over_http/venv/lib/python3.10/site-packages/jinja2/defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "/home/kdixler/go/src/github.com/pulumi/automation-api-examples/python/pulumi_over_http/venv/lib/python3.10/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/kdixler/go/src/github.com/pulumi/automation-api-examples/python/pulumi_over_http/venv/lib/python3.10/site-packages/markupsafe/__init__.py)