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

Run error: "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 112, in _get_module_details #540

Open
arigatoexpress opened this issue Dec 21, 2023 · 5 comments

Comments

@arigatoexpress
Copy link

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

pls hlp

@chchia
Copy link

chchia commented Dec 23, 2023

i have exact same issues... help pls.

ps: just fixed by this
pip install --upgrade Flask

@chchia
Copy link

chchia commented Jan 4, 2024

pip install --upgrade eventlet
pip install --upgrade dnspython

above 2 also required in my case.

@alkhachatryan
Copy link

As @chchia said

pip install --upgrade Flask
pip install --upgrade eventlet
pip install --upgrade dnspython

Helps!

@wyatt-wong
Copy link

wyatt-wong commented Jul 11, 2024

It doesn't work for me.

wyattwong@MacBookPro ~ % python -m tkinter
Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 148, in _get_module_details
  File "<frozen runpy>", line 112, in _get_module_details
  File "/Users/wyattwong/.pyenv/versions/3.12.4/lib/python3.12/tkinter/__init__.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
    ^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_tkinter'
wyattwong@MacBookPro ~ % pyenv versions
  system
* 3.12.4 (set by /Users/wyattwong/.python-version)
  3.12.4/envs/venv
  venv --> /Users/wyattwong/.pyenv/versions/3.12.4/envs/venv

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