Skip to content

ImportError: cannot import name 'url_quote' from 'werkzeug.urls' #52

@azuryl

Description

@azuryl

./run_web_agent_text_env.sh
Warning: Gym version v0.24.0 has a number of critical issues with gym.make such that the reset and step functions are called before returning the environment. It is recommend to downgrading to v0.23.1 or upgrading to v0.25.1
/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/requests/init.py:43: DeprecationWarning: 'urllib3[secure]' extra is deprecated and will be removed in a future release of urllib3 2.x. Read more in this issue: urllib3/urllib3#2680
import urllib3
Traceback (most recent call last):
File "/home/azuryl/anaconda3/envs/webshop/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/azuryl/anaconda3/envs/webshop/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/data3/azuryl/WebShop/run_envs/run_web_agent_text_env.py", line 10, in
from web_agent_site.envs import WebAgentTextEnv
File "/data3/azuryl/WebShop/web_agent_site/envs/init.py", line 3, in
from web_agent_site.envs.web_agent_site_env import WebAgentSiteEnv
File "/data3/azuryl/WebShop/web_agent_site/envs/web_agent_site_env.py", line 16, in
from web_agent_site.engine.engine import parse_action, END_BUTTON
File "/data3/azuryl/WebShop/web_agent_site/engine/engine.py", line 14, in
from flask import render_template_string
File "/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/flask/init.py", line 7, in
from .app import Flask as Flask
File "/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/flask/app.py", line 27, in
from . import cli
File "/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/flask/cli.py", line 17, in
from .helpers import get_debug_flag
File "/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/flask/helpers.py", line 14, in
from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/werkzeug/urls.py)

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