407 Star 1.8K Fork 754

GVPfasiondog / hikyuu

 / 详情

数据导入工具(HikyuuTdx)无进度,编码错

待办的
创建于  
2022-04-18 10:48

使用数据导入工具(HikyuuTdx)-执行导入-手工执行导入,无进度。
查看控制台日志是编码问题,不过使用importdata工具可以正常导入。
2022-04-18 10:45:52,823 [DEBUG] - hit exception on req exception is 'gbk' codec can't decode byte 0xbb in position 7: incomplete multibyte sequence [PYTDX::wrapper]

执行导入

控制台日志

评论 (3)

TimZhiX 创建了任务
TimZhiX 修改了描述
TimZhiX 修改了标题
TimZhiX 修改了描述
TimZhiX 修改了描述
TimZhiX 修改了标题
展开全部操作日志

同样问题:图形界面无进度,importdata 也出错,束手无策中~

输入图片说明
输入图片说明

2022-05-13 16:45:27,086 [DEBUG] - connection expired [PYTDX::connect] 
2022-05-13 16:45:27,260 [DEBUG] - connection expired [PYTDX::connect] 
2022-05-13 16:45:27,276 [DEBUG] - connection expired [PYTDX::connect] 
2022-05-13 16:45:27,403 [DEBUG] - connection expired [PYTDX::connect] 
2022-05-13 16:45:27,405 [INFO] - 导入股票代码表 [UsePytdxImportToH5Thread::_run] 
2022-05-13 16:45:27,446 [DEBUG] - connecting to server : 58.63.254.247 on port :7709 [PYTDX::connect] 
2022-05-13 16:45:27,483 [DEBUG] - connected! [PYTDX::connect] 
2022-05-13 16:45:27,505 [DEBUG] - 不需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,536 [DEBUG] - 不需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,558 [DEBUG] - 不需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,558 [DEBUG] - last ack time update to 1652431527.558552 [PYTDX::wrapper] 
2022-05-13 16:45:27,580 [DEBUG] - 不需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,581 [DEBUG] - last ack time update to 1652431527.5815248 [PYTDX::wrapper] 
2022-05-13 16:45:27,625 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,630 [DEBUG] - last ack time update to 1652431527.6305227 [PYTDX::wrapper] 
2022-05-13 16:45:27,656 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,661 [DEBUG] - last ack time update to 1652431527.661553 [PYTDX::wrapper] 
2022-05-13 16:45:27,688 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,693 [DEBUG] - last ack time update to 1652431527.693552 [PYTDX::wrapper] 
2022-05-13 16:45:27,719 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,738 [DEBUG] - last ack time update to 1652431527.7385523 [PYTDX::wrapper] 
2022-05-13 16:45:27,765 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,769 [DEBUG] - last ack time update to 1652431527.7695525 [PYTDX::wrapper] 
2022-05-13 16:45:27,796 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,800 [DEBUG] - last ack time update to 1652431527.8005524 [PYTDX::wrapper] 
2022-05-13 16:45:27,826 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,831 [DEBUG] - last ack time update to 1652431527.8315513 [PYTDX::wrapper] 
2022-05-13 16:45:27,857 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,861 [DEBUG] - last ack time update to 1652431527.8615518 [PYTDX::wrapper] 
2022-05-13 16:45:27,887 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,892 [DEBUG] - last ack time update to 1652431527.8925529 [PYTDX::wrapper] 
2022-05-13 16:45:27,920 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,924 [DEBUG] - last ack time update to 1652431527.9245522 [PYTDX::wrapper] 
2022-05-13 16:45:27,950 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,954 [DEBUG] - last ack time update to 1652431527.9545536 [PYTDX::wrapper] 
2022-05-13 16:45:27,979 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:27,984 [DEBUG] - last ack time update to 1652431527.9845521 [PYTDX::wrapper] 
2022-05-13 16:45:28,010 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,015 [DEBUG] - last ack time update to 1652431528.0155523 [PYTDX::wrapper] 
2022-05-13 16:45:28,041 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,046 [DEBUG] - last ack time update to 1652431528.0465393 [PYTDX::wrapper] 
2022-05-13 16:45:28,072 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,077 [DEBUG] - last ack time update to 1652431528.0775518 [PYTDX::wrapper] 
2022-05-13 16:45:28,102 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,107 [DEBUG] - last ack time update to 1652431528.107555 [PYTDX::wrapper] 
2022-05-13 16:45:28,133 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,137 [DEBUG] - last ack time update to 1652431528.1375506 [PYTDX::wrapper] 
2022-05-13 16:45:28,164 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,169 [DEBUG] - last ack time update to 1652431528.1695402 [PYTDX::wrapper] 
2022-05-13 16:45:28,200 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,204 [DEBUG] - last ack time update to 1652431528.2045517 [PYTDX::wrapper] 
2022-05-13 16:45:28,234 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,239 [DEBUG] - last ack time update to 1652431528.2395573 [PYTDX::wrapper] 
2022-05-13 16:45:28,261 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,306 [DEBUG] - last ack time update to 1652431528.3065596 [PYTDX::wrapper] 
2022-05-13 16:45:28,329 [DEBUG] - 不需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,329 [DEBUG] - last ack time update to 1652431528.3295228 [PYTDX::wrapper] 
2022-05-13 16:45:28,358 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,364 [DEBUG] - last ack time update to 1652431528.3645241 [PYTDX::wrapper] 
2022-05-13 16:45:28,395 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,400 [DEBUG] - last ack time update to 1652431528.4005241 [PYTDX::wrapper] 
2022-05-13 16:45:28,425 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,430 [DEBUG] - last ack time update to 1652431528.430523 [PYTDX::wrapper] 
2022-05-13 16:45:28,455 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,459 [DEBUG] - last ack time update to 1652431528.4595246 [PYTDX::wrapper] 
2022-05-13 16:45:28,484 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,490 [DEBUG] - last ack time update to 1652431528.4905238 [PYTDX::wrapper] 
2022-05-13 16:45:28,516 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,520 [DEBUG] - last ack time update to 1652431528.5205233 [PYTDX::wrapper] 
2022-05-13 16:45:28,549 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,554 [DEBUG] - last ack time update to 1652431528.5545535 [PYTDX::wrapper] 
2022-05-13 16:45:28,582 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,587 [DEBUG] - last ack time update to 1652431528.587548 [PYTDX::wrapper] 
2022-05-13 16:45:28,615 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,620 [DEBUG] - last ack time update to 1652431528.6205518 [PYTDX::wrapper] 
2022-05-13 16:45:28,648 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,651 [DEBUG] - hit exception on req exception is 'gbk' codec can't decode byte 0xbb in position 7: incomplete multibyte sequence [PYTDX::wrapper] 
2022-05-13 16:45:28,651 [DEBUG] - last ack time update to 1652431528.651553 [PYTDX::wrapper] 
2022-05-13 16:45:28,676 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,681 [DEBUG] - last ack time update to 1652431528.6815524 [PYTDX::wrapper] 
2022-05-13 16:45:28,705 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,712 [DEBUG] - last ack time update to 1652431528.712524 [PYTDX::wrapper] 
2022-05-13 16:45:28,737 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,742 [DEBUG] - last ack time update to 1652431528.7425263 [PYTDX::wrapper] 
2022-05-13 16:45:28,768 [DEBUG] - 需要解压 [PYTDX::_call_api] 
2022-05-13 16:45:28,773 [DEBUG] - last ack time update to 1652431528.7735274 [PYTDX::wrapper] 
2022-05-13 16:45:28,802 [DEBUG] - 需要解压 [PYTDX::_call_api] 
(hikyuu) C:\Users\abc>importdata
Initialize hikyuu_1.2.0_202201110056_x64_release ...
2022-05-13 16:52:40,061 [INFO] Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. [numexpr.utils::_init_num_threads]
2022-05-13 16:52:40,061 [INFO] NumExpr defaulting to 8 threads. [numexpr.utils::_init_num_threads]
warning: can't import TA-Lib, will be ignored! You can fetch ta-lib from https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib
正在启动任务....
Exception ignored in: <function UsePytdxImportToH5Thread.__del__ at 0x000001DF9FA0AEE8>
Traceback (most recent call last):
  File "D:\AppData\Anaconda3\envs\hikyuu\lib\site-packages\hikyuu\gui\data\UsePytdxImportToH5Thread.py", line 68, in __del__
    for p in self.process_list:
RuntimeError: super-class __init__() of type UsePytdxImportToH5Thread was never called
Traceback (most recent call last):
  File "D:\AppData\Anaconda3\envs\hikyuu\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "D:\AppData\Anaconda3\envs\hikyuu\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\AppData\Anaconda3\envs\hikyuu\Scripts\importdata.exe\__main__.py", line 7, in <module>
  File "D:\AppData\Anaconda3\envs\hikyuu\lib\site-packages\hikyuu\gui\importdata.py", line 149, in main
    x.start_import_data()
  File "D:\AppData\Anaconda3\envs\hikyuu\lib\site-packages\hikyuu\gui\importdata.py", line 135, in start_import_data
    self.hdf5_import_thread = UsePytdxImportToH5Thread(config)
TypeError: __init__() missing 1 required positional argument: 'config'
Quit Hikyuu system!

试下 1.2.5, 有些 tdx 的服务器不行

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(3)
3859 fasiondog 1578914213
C++
1
https://gitee.com/fasiondog/hikyuu.git
git@gitee.com:fasiondog/hikyuu.git
fasiondog
hikyuu
hikyuu

搜索帮助