X3NNY / sstilabs

A lab to help you learning SSTI
GNU General Public License v3.0
96 stars 7 forks source link

ImportError #1

Open jav1988 opened 1 month ago

jav1988 commented 1 month ago

PS E:\VSCode\CTF\03丨学习测试\SSTI\sstilabs-master\flasklab> python app.py Traceback (most recent call last): File "E:\VSCode\CTF\03丨学习测试\SSTI\sstilabs-master\flasklab\app.py", line 10, in from flask import Flask, request, render_template, render_template_string File "C:\Python310\lib\site-packages\flask__init.py", line 14, in from jinja2 import escape File "C:\Python310\lib\site-packages\jinja2__init__.py", line 12, in from .environment import Environment File "C:\Python310\lib\site-packages\jinja2\environment.py", line 25, in from .defaults import BLOCK_END_STRING File "C:\Python310\lib\site-packages\jinja2\defaults.py", line 3, in from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401 File "C:\Python310\lib\site-packages\jinja2\filters.py", line 13, in from markupsafe import soft_unicode ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Python310\lib\site-packages\markupsafe\init__.py) 这个报错是为什么?

jav1988 commented 1 month ago

update it!

pip install --upgrade Flask Jinja2
sw3rt commented 3 weeks ago

最好和flask的版本兼容