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

按照教程里面的mod安装失败. enable找不到 #789

Open
yutuer opened this issue May 7, 2023 · 3 comments
Open

按照教程里面的mod安装失败. enable找不到 #789

yutuer opened this issue May 7, 2023 · 3 comments
Assignees
Labels

Comments

@yutuer
Copy link

yutuer commented May 7, 2023

提 ISSUE 须知

请先阅读文档 rqalpha文档

如果仍有问题的话请在 issue列表 中寻找是否有相关问题的解决方案

如果没有的话 麻烦开一个issue 描述以下问题:

1. RQAlpha的版本

4.16.2

2. Python的版本

3.8

3. 是Windows/Linux/MacOS or others?

windows

4. 您出现问题对应的源码/或者能复现问题的简易代码 以及对应的配置

hello mod 的例子
使用 pip后
pip install -e .
Looking in indexes: https://opentuna.cn/pypi/web/simple
Obtaining file:///F:/github/rqalpha-mod-hello
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Installing collected packages: rqalpha-mod-hello
Running setup.py develop for rqalpha-mod-hello
Successfully installed rqalpha-mod-hello-0.1.0

然后使用 enable
rqalpha mod enable hello
出现报错
can not find mod [hello], ignored

使用命令 rqalpha mod install hello
出现报错 Error: Invalid value for '{list|enable|disable}': 'install' is not one of 'list', 'enable', 'disable'.

5. 您出现的错误堆栈日志信息

@yutuer yutuer added the bug label May 7, 2023
@yutuer
Copy link
Author

yutuer commented May 7, 2023

找到问题了, 需要

  1. 在虚拟环境下进入项目目录后运行 pip install -e .
  2. 查看pip list 看是否有
    rqalpha 4.16.2
    rqalpha-mod-mysqlDS 0.1.0 f:\github\bqtrade
    rqrisk 1.0.6
    如下的显示
  3. 需要在 ~/.rqalpha/mod_config.yml 下增加
    mysqlDS:
    lib: 'rqalpha-mod-mysqlDS'
    enabled: true

@yutuer yutuer closed this as completed May 7, 2023
@yutuer
Copy link
Author

yutuer commented May 7, 2023

但是此时使用 rqalpha mod enable mysqlDS
还是会报 can not find mod [mysqlDS], ignored

1 similar comment
@yutuer
Copy link
Author

yutuer commented May 7, 2023

但是此时使用 rqalpha mod enable mysqlDS
还是会报 can not find mod [mysqlDS], ignored

@yutuer yutuer reopened this May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants