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

Dependency error #558

Open
Milan-bst opened this issue Mar 12, 2024 · 4 comments
Open

Dependency error #558

Milan-bst opened this issue Mar 12, 2024 · 4 comments

Comments

@Milan-bst
Copy link

I added the Werkzeug==2.2.2 to the requirements but after that I'm having issues with the eventlet library.

Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
import(pkg_name)
File "/home/milan/projects/binance-trade-bot/binance_trade_bot/init.py", line 1, in
from .backtest import backtest
File "/home/milan/projects/binance-trade-bot/binance_trade_bot/backtest.py", line 8, in
from .binance_api_manager import BinanceAPIManager
File "/home/milan/projects/binance-trade-bot/binance_trade_bot/binance_api_manager.py", line 12, in
from .database import Database
File "/home/milan/projects/binance-trade-bot/binance_trade_bot/database.py", line 8, in
from socketio import Client
File "/home/milan/my_env/lib/python3.10/site-packages/socketio/init.py", line 9, in
from .zmq_manager import ZmqManager
File "/home/milan/my_env/lib/python3.10/site-packages/socketio/zmq_manager.py", line 5, in
import eventlet.green.zmq as zmq
File "/home/milan/my_env/lib/python3.10/site-packages/eventlet/init.py", line 17, in
from eventlet import convenience
File "/home/milan/my_env/lib/python3.10/site-packages/eventlet/convenience.py", line 7, in
from eventlet.green import socket
File "/home/milan/my_env/lib/python3.10/site-packages/eventlet/green/socket.py", line 4, in
import('eventlet.green._socket_nodns')
File "/home/milan/my_env/lib/python3.10/site-packages/eventlet/green/_socket_nodns.py", line 11, in
from eventlet import greenio
File "/home/milan/my_env/lib/python3.10/site-packages/eventlet/greenio/init.py", line 3, in
from eventlet.greenio.base import * # noqa
File "/home/milan/my_env/lib/python3.10/site-packages/eventlet/greenio/base.py", line 32, in
socket_timeout = eventlet.timeout.wrap_is_timeout(socket.timeout)
File "/home/milan/my_env/lib/python3.10/site-packages/eventlet/timeout.py", line 166, in wrap_is_timeout
base.is_timeout = property(lambda _: True)
TypeError: cannot set 'is_timeout' attribute of immutable type 'TimeoutError'

@alkhachatryan
Copy link

Same crap.

@yoonxjoong
Copy link

I installed and ran Python 3.8.14 and there was no problem.

First, check your Python version and then check the Werkzeug version.

I hope this solves your problem. thanks

@hitiming
Copy link

hitiming commented Apr 3, 2024

pip install --upgrade eventlet

@Hassffw
Copy link

Hassffw commented Apr 3, 2024

@hitiming +
from collections.abc import MutableMapping
change the import and class inheritation at
/home/user/binance-trade-bot/lib/python3.11/site-packages/dns/namedict.py

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

5 participants