Score
0
Watch 233 Star 621 Fork 272

GVPfasiondog / hikyuuPythonMIT

LoanRecord.cpp编译报错

Closed
archya  Opened this issue

输入图片说明
编译环境如图

输入图片说明
编译结果报错

3859 fasiondog 1578914213 1442498 archya 1578951579 total 2 participants

Comments (4)

3859 fasiondog 1578914213
fasiondog 2020-03-11 01:11 owner

BOOST_1_72 的问题,换 BOOST1_71

1442498 archya 1578951579
archya 2020-03-11 13:10

BOOST1_71编译成功
但在jupyter notebook上运行import * from hikyuu.interactive.interactive时python进程异常退出(win7+boost1.69/win10+boost1.71都出现这个现象)。

正在测试是哪次commite后出现的问题。

目前测试了2个。

191202的45d390a,一切正常。

200101的df07594,可以运行import *,但在运行DEMO1时报错:


AttributeError Traceback (most recent call last)
in
6 my_sys = SYS_Simple(tm=my_tm,sg=my_sg,mm=my_mm)
7 q = QueryByDate(start_date,end_date,Query.DAY)
----> 8 my_sys.run(stk,q)
9
10 my_tm.tocsv(sm.tmpdir())

in DEMO_SG(self)
24 for i in range(discard,len(week_k)):
25 if fast[i-1]<slow[i-1] and fast[i]>slow[i]:
---> 26 self._addBuySignal(getNextWeekDate(week_k[i].datetime))

in getNextWeekDate(week)
3 py_week = week.datetime()
4 next_week_start = py_week + timedelta(days=7-py_week.weekday())
----> 5 return Datetime(next_week_start)

D:\hikyuu\hikyuu\hikyuu\core.py in new_Datetime_init(self, *args, **kwargs)
134 elif isinstance(args[0], datetime):
135 d = args[0]
--> 136 old_Datetime_init(self, d.year, d.month, d.day, d.hour, d.minute, d.second, d.millisecond, d.microsecond)
137 elif isinstance(args[0], date):
138 d = args[0]

AttributeError: 'datetime.datetime' object has no attribute 'millisecond'

————————————————————

1442498 archya 1578951579
archya 2020-03-11 14:00

19-12-10的3712245提交编译后demo1运行正常

19-12-22的9ac6b17提交编译后运行demo1报错

AttributeError: 'datetime.datetime' object has no attribute 'millisecond'

发现 20-01-17的f108754
标注
fixed datetime转Datetime

编译测试demo1、demo2运行正常,原来Datetime的bug已经被处理了

1442498 archya 1578951579
archya 2020-03-11 14:50

20-03-01的15d8b72编译后运行import * … 语句

python进程异常中断

是这个提交后出现的问题了

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Python
1
https://gitee.com/fasiondog/hikyuu.git
git@gitee.com:fasiondog/hikyuu.git
fasiondog
hikyuu
hikyuu

Help Search