Qbot icon indicating copy to clipboard operation
Qbot copied to clipboard

No module named 'qbot.engine.config'

Open cctni opened this issue 1 year ago • 6 comments

Traceback (most recent call last): File "C:\Users\Administrator\Desktop\home\Qbot\qbot\gui\panels\panel_sim_trade.py", line 447, in OnClickTrade self.trade_engine = TradeEngine(self.trader_opts, self.syslog) File "C:\Users\Administrator\Desktop\home\Qbot\qbot\engine\trade\trade_engine.py", line 25, in init self.TradeEngine = SimTradeEngine(self.trade_opts, syslog_obj=self.syslog) File "C:\Users\Administrator\Desktop\home\Qbot\qbot\engine\trade\trade_sim.py", line 105, in init from qbot.engine.config import BTC_SIM_ACCOUNT ModuleNotFoundError: No module named 'qbot.engine.config'

cctni avatar Dec 19 '24 03:12 cctni

在代码主目录,执行python mian.py

Charmve avatar Feb 19 '25 03:02 Charmve

在代码主目录,执行python mian.py 你好,我同样遇到了这个问题,在主目录执行python mian.py 后在qbot.engine下面依然没有出现config模块

Image

fxgxxhh avatar Feb 19 '25 08:02 fxgxxhh

+1

YongcanZhou avatar Mar 03 '25 14:03 YongcanZhou

+2

kuyoeku avatar Mar 06 '25 02:03 kuyoeku

+3

Aloento avatar Apr 06 '25 17:04 Aloento

设置一下PYTHONPATH环境变量,如: 项目目录 ~/workspace/Qbot,就设置为

export PYTHONPATH=~/workspace/Qbot

然后,

cd ~/workspace/Qbot
python main.py 
#mac pythonw main.py

Charmve avatar Oct 17 '25 05:10 Charmve