automation-api-examples icon indicating copy to clipboard operation
automation-api-examples copied to clipboard

Update requirements.txt

Open AlexMikhalev opened this issue 3 years ago • 2 comments

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

AlexMikhalev avatar Aug 03 '22 21:08 AlexMikhalev

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

github-actions[bot] avatar Aug 03 '22 21:08 github-actions[bot]

If someone can repro the bug and the fix, we should merge this 👍🏻

RobbieMcKinstry avatar Aug 15 '22 18:08 RobbieMcKinstry

@kpitzen?

AaronFriel avatar Aug 19 '22 01:08 AaronFriel

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)

dixler avatar Aug 30 '22 17:08 dixler