Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error running python -m binance-trade-bot #544

Open
arigatoexpress opened this issue Jan 23, 2024 · 4 comments
Open

error running python -m binance-trade-bot #544

arigatoexpress opened this issue Jan 23, 2024 · 4 comments

Comments

@arigatoexpress
Copy link

receiving these errors when trying to run- pls hlp
Traceback (most recent call last):
File "", line 189, in _run_module_as_main
File "", line 148, in _get_module_details
File "", line 112, in _get_module_details
File "/home/arigato/Downloads/binance-trade-bot-master/binance_trade_bot/init.py", line 1, in
from .backtest import backtest
File "/home/arigato/Downloads/binance-trade-bot-master/binance_trade_bot/backtest.py", line 8, in
from .binance_api_manager import BinanceAPIManager
File "/home/arigato/Downloads/binance-trade-bot-master/binance_trade_bot/binance_api_manager.py", line 10, in
from .binance_stream_manager import BinanceCache, BinanceOrder, BinanceStreamManager, OrderGuard
File "/home/arigato/Downloads/binance-trade-bot-master/binance_trade_bot/binance_stream_manager.py", line 9, in
from unicorn_binance_websocket_api import BinanceWebSocketApiManager
File "/home/arigato/Downloads/binance-trade-bot-master/.venv/lib/python3.11/site-packages/unicorn_binance_websocket_api/init.py", line 3, in
from unicorn_binance_websocket_api.unicorn_binance_websocket_api_manager import BinanceWebSocketApiManager
File "/home/arigato/Downloads/binance-trade-bot-master/.venv/lib/python3.11/site-packages/unicorn_binance_websocket_api/unicorn_binance_websocket_api_manager.py", line 40, in
from .unicorn_binance_websocket_api_restserver import BinanceWebSocketApiRestServer
File "/home/arigato/Downloads/binance-trade-bot-master/.venv/lib/python3.11/site-packages/unicorn_binance_websocket_api/unicorn_binance_websocket_api_restserver.py", line 36, in
from flask_restful import Resource
File "/home/arigato/Downloads/binance-trade-bot-master/.venv/lib/python3.11/site-packages/flask_restful/init.py", line 3, in
from flask import request, url_for, current_app
File "/home/arigato/Downloads/binance-trade-bot-master/.venv/lib/python3.11/site-packages/flask/init.py", line 7, in
from .app import Flask as Flask
File "/home/arigato/Downloads/binance-trade-bot-master/.venv/lib/python3.11/site-packages/flask/app.py", line 27, in
from . import cli
File "/home/arigato/Downloads/binance-trade-bot-master/.venv/lib/python3.11/site-packages/flask/cli.py", line 17, in
from .helpers import get_debug_flag
File "/home/arigato/Downloads/binance-trade-bot-master/.venv/lib/python3.11/site-packages/flask/helpers.py", line 14, in
from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/arigato/Downloads/binance-trade-bot-master/.venv/lib/python3.11/site-packages/werkzeug/urls.py)

@arigatoexpress
Copy link
Author

is this because I'm running in a virtual environment or something?

@ltoni90
Copy link

ltoni90 commented Feb 7, 2024

Had the same error. After adding the following line to requirements.txt and executing pip install -r requirements.txt it worked without any issues:
Werkzeug==2.2.2

There seems to be an issue with the flask not specifying the dependency correctly:
Stackoverflow

@alkhachatryan
Copy link

@ltoni90 it brings new error. Just tried on ubuntu 20

@tangzhifan
Copy link

I change the Werkzeug version to 2.0.3, and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants