VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 5
声望: 0

Traceback (most recent call last):
File "c:\vnstudio\lib\site-packages\vnstation\cli.py", line 90, in run_trader
module = importlib.import_module(d["module"])
File "c:\vnstudio\lib\importlib__init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\vnstudio\lib\site-packages\vnpy\app\algo_trading\
init__.py", line 5, in <module>
from .engine import AlgoEngine, APP_NAME
File "c:\vnstudio\lib\site-packages\vnpy\app\algo_trading\engine.py", line 17, in <module>
from .genus import GenusClient
File "c:\vnstudio\lib\site-packages\vnpy\app\algo_trading\genus.py", line 6, in <module>
import quickfix as fix
ModuleNotFoundError: No module named 'quickfix'

Member
avatar
加入于:
帖子: 5018
声望: 303

那可以安装一下quickfix试试看还报不报错

Member
avatar
加入于:
帖子: 5
声望: 0

xiaohe wrote:

那可以安装一下quickfix试试看还报不报错
感谢回复,是用命令提示符来实现吗

Member
avatar
加入于:
帖子: 5
声望: 0

xiaohe wrote:

那可以安装一下quickfix试试看还报不报错

你好我用命令提示符安装quickfix报错了,我觉得应该是VNPY新版本与某些冲突了
ERROR: Command errored out with exit status 1:
command: 'c:\vnstudio\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\周明伦\AppData\Local\Temp\pip-install-fyunbd4j\quickfix\setup.py'"'"'; file='"'"'C:\Users\周明伦\AppData\Local\Temp\pip-install-fyunbd4j\quickfix\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\周明伦\AppData\Local\Temp\pip-wheel-xnj1arwx'
cwd: C:\Users\周明伦\AppData\Local\Temp\pip-install-fyunbd4j\quickfix\
Complete output (24 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying quickfix.py -> build\lib.win-amd64-3.7
copying quickfixt11.py -> build\lib.win-amd64-3.7
copying quickfix40.py -> build\lib.win-amd64-3.7
copying quickfix41.py -> build\lib.win-amd64-3.7
copying quickfix42.py -> build\lib.win-amd64-3.7
copying quickfix43.py -> build\lib.win-amd64-3.7
copying quickfix44.py -> build\lib.win-amd64-3.7
copying quickfix50.py -> build\lib.win-amd64-3.7
copying quickfix50sp1.py -> build\lib.win-amd64-3.7
copying quickfix50sp2.py -> build\lib.win-amd64-3.7
running build_ext
Testing for std::tr1::shared_ptr...
...not found
Testing for std::shared_ptr...
...not found
Testing for std::unique_ptr...
...not found
building '_quickfix' extension

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

ERROR: Failed building wheel for quickfix
Running setup.py clean for quickfix
Failed to build quickfix
DEPRECATION: Could not build wheels for quickfix which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Installing collected packages: quickfix
Running setup.py install for quickfix ... error
ERROR: Command errored out with exit status 1:
command: 'c:\vnstudio\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\周明伦\AppData\Local\Temp\pip-install-fyunbd4j\quickfix\setup.py'"'"'; file='"'"'C:\Users\周明伦\AppData\Local\Temp\pip-install-fyunbd4j\quickfix\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\周明伦\AppData\Local\Temp\pip-record-6lhi3s19\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\vnstudio\Include\quickfix'
cwd: C:\Users\周明伦\AppData\Local\Temp\pip-install-fyunbd4j\quickfix\
Complete output (24 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying quickfix.py -> build\lib.win-amd64-3.7
copying quickfixt11.py -> build\lib.win-amd64-3.7
copying quickfix40.py -> build\lib.win-amd64-3.7
copying quickfix41.py -> build\lib.win-amd64-3.7
copying quickfix42.py -> build\lib.win-amd64-3.7
copying quickfix43.py -> build\lib.win-amd64-3.7
copying quickfix44.py -> build\lib.win-amd64-3.7
copying quickfix50.py -> build\lib.win-amd64-3.7
copying quickfix50sp1.py -> build\lib.win-amd64-3.7
copying quickfix50sp2.py -> build\lib.win-amd64-3.7
running build_ext
Testing for std::tr1::shared_ptr...
...not found
Testing for std::shared_ptr...
...not found
Testing for std::unique_ptr...
...not found
building '_quickfix' extension

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------

ERROR: Command errored out with exit status 1: 'c:\vnstudio\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\周明伦\AppData\Local\Temp\pip-install-fyunbd4j\quickfix\setup.py'"'"'; file='"'"'C:\Users\周明伦\AppData\Local\Temp\pip-install-fyunbd4j\quickfix\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\周明伦\AppData\Local\Temp\pip-record-6lhi3s19\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\vnstudio\Include\quickfix' Check the logs for full command output.
WARNING: You are using pip version 20.2; however, version 20.2.2 is available.
You should consider upgrading via the 'c:\vnstudio\python.exe -m pip install --upgrade pip' command.

Administrator
avatar
加入于:
帖子: 4545
声望: 324
python -m pip install https://pip.vnpy.com/colletion/quickfix-1.15.1-cp37-cp37m-win_amd64.whl

请运行这条命令来安装

Member
avatar
加入于:
帖子: 38
声望: 0

用Python的交易员 wrote:

python -m pip install https://pip.vnpy.com/colletion/quickfix-1.15.1-cp37-cp37m-win_amd64.whl

请运行这条命令来安装
谢谢老师。按此操作 问题已解决

Member
avatar
加入于:
帖子: 13
声望: 0

用Python的交易员 wrote:

python -m pip install https://pip.vnpy.com/colletion/quickfix-1.15.1-cp37-cp37m-win_amd64.whl

请运行这条命令来安装

今天刚把这个雷给趟了,分享个经验吧,目前quickfix的包只有cp37,高版本python的筒子
可以到 https://www.lfd.uci.edu/~gohlke/pythonlibs/ 去下载quickfix的zip文件,然后本地 pip setup.py install 去安装,我是python3.8

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】