vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 7
声望: 0

sudo bash install.sh后有报错.
环境: debian9 x86_64/python3.7.2(from miniconda3)

Traceback (most recent call last):
File "setup.py", line 64, in <module>
ext_modules=ext_modules
File "/opt/miniconda/lib/python3.7/site-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/opt/miniconda/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/opt/miniconda/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/opt/miniconda/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/opt/miniconda/lib/python3.7/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/opt/miniconda/lib/python3.7/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/opt/miniconda/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/opt/miniconda/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/opt/miniconda/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 163, in run
self.run_command("egg_info")
File "/opt/miniconda/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/opt/miniconda/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/opt/miniconda/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 289, in run
writer(self, ep.name, os.path.join(self.egg_info, ep.name))
File "/opt/miniconda/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 666, in write_toplevel_names
for k in cmd.distribution.iter_distribution_names()
File "/opt/miniconda/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 665, in <listcomp>
k.split('.', 1)[0]
File "/opt/miniconda/lib/python3.7/site-packages/setuptools/dist.py", line 1089, in iter_distribution_names
name = ext.name
AttributeError: 'list' object has no attribute 'name'
谢谢, 请问这些报错该怎么解决呢?

Administrator
avatar
加入于:
帖子: 4040
声望: 223

这个是v2.0的setup.py里有个bug,请尝试使用v2.0.1分支吧,已经修复了

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

用Python的交易员 wrote:

这个是v2.0的setup.py里有个bug,请尝试使用v2.0.1分支吧,已经修复了

谢谢, 又有个报错, 不知道是否和我用miniconda3有关

 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  In file included from vnpy/api/oes/include/autocxxpy/autocxxpy.hpp:6:0,
                   from vnpy/api/oes/vnoes/generated_files/classes_1.cpp:4:
  vnpy/api/oes/include/autocxxpy/property_helper.hpp:5:23: fatal error: string_view: No such file or directory
   #include <string_view>
                         ^
  compilation terminated.
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for vnpy
Administrator
avatar
加入于:
帖子: 4040
声望: 223

OES接口还在收尾中,目前没全部弄完

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

用Python的交易员 wrote:

OES接口还在收尾中,目前没全部弄完

ok, 那我就再等等吧.

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

这个不难解决,把64行删了就行了

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

你好,我在安装的时候遇到了一样的问题。这个在dev分支里修复了,然后你遇到的gcc的问题我也遇到了,现在正在尝试升级gcc的版本。如果你解决了麻烦告诉我下呀!谢谢

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

hello886 wrote:

这个不难解决,把64行删了就行了
网上说这是个python的bug, 有解决方案但是有很多warning, 我还是等版主改进后吧. 谢谢了.

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