Skip to content

fix pip install error about MarkupSafe in tutorials/pub-sub/python-subscriber #1266

@vul3yo6

Description

@vul3yo6

Expected Behavior

I follow the steps in tutorials, and i want to understand how it work on.
https://github.com/dapr/quickstarts/tree/master/tutorials/pub-sub

Actual Behavior

when i type "python -m pip install -r requirements.txt",
and i got the error message like this

"""
ERROR: Cannot install -r requirements.txt (line 5) and MarkupSafe==1.1.1 because these package versions have conflicting dependencies.
"""

finally i modify the requirements.txt, and it works well.

AS-IS

Click==7.0
Flask==1.1.1
Flask-Cors==3.0.9
itsdangerous==1.1.0
Jinja2==3.1.4
MarkupSafe==1.1.1
six==1.12.0
Werkzeug==0.15.6

TO-BE

Click==7.0
Flask==1.1.1
Flask-Cors==3.0.9
itsdangerous==1.1.0
Jinja2==3.1.4
**MarkupSafe==2.0.0**
six==1.12.0
Werkzeug==0.15.6

Steps to Reproduce the Problem

I follow the steps

  1. pull the code by "git clone https://github.com/dapr/quickstarts.git"
  2. follow the steps in the tutorials "https://github.com/dapr/quickstarts/tree/master/tutorials/pub-sub"
  3. you can see the error message when you typing command like "pip3 install -r requirements.txt"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions