爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: scmeiqy

[参考资料] CIMISS接口之Python:支持任意版本ICE,Python3.x

[复制链接]

新浪微博达人勋

发表于 2020-4-10 14:48:06 | 显示全部楼层
循环取一样的可以取到。
用接口一次也不可能全部取到的。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-4-10 17:58:16 | 显示全部楼层
才学python ,借用楼主的程序运行提示如下:该咋处理?谢谢
“Traceback (most recent call last):
  File "client.py", line 64, in <module>
    result = client.callAPI_to_saveAsFile(userName,password, "getSurfEleByTime",\
  File "D:\Python\cimiss\mimo\cma\cimiss\DataQueryClient.py", line 96, in callAPI_to_saveAsFile
    if self.api:
AttributeError: 'DataQuery' object has no attribute 'api'
!! 04/10/20 17:43:47.472 error: communicator not destroyed during global destruction.

点评

再说了,你这程序,不是我的程序哈。路径很清楚的显示……  发表于 2020-4-10 19:27
这是sock连接未建立的错误。检查网络、端口——在配置文件中。  发表于 2020-4-10 18:49
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-4-22 12:03:36 | 显示全部楼层
运行后出现如下问题,楼主求救

-- 04/22/20 12:00:12.402 Retry: retrying operation call because of exception
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
-- 04/22/20 12:00:12.415 Retry: cannot retry operation call because retry limit has been exceeded
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
Ice UnChecked, Retry..{1}
-----exception------
Ice.ConnectionLostException:
recv() returned zero
--------------------
-- 04/22/20 12:00:12.426 Retry: retrying operation call because of exception
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
Ice UnChecked, Retry..{2}
-----exception------
Ice.ConnectionLostException:
recv() returned zero
--------------------
-- 04/22/20 12:00:12.438 Retry: cannot retry operation call because retry limit has been exceeded
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
-- 04/22/20 12:00:12.450 Retry: retrying operation call because of exception
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
-- 04/22/20 12:00:12.462 Retry: cannot retry operation call because retry limit has been exceeded
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
Ice UnChecked, Retry..{3}
-----exception------
Ice.ConnectionLostException:
recv() returned zero
--------------------
-- 04/22/20 12:00:12.474 Retry: retrying operation call because of exception
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
-- 04/22/20 12:00:12.488 Retry: cannot retry operation call because retry limit has been exceeded
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
Ice UnChecked, Retry..{4}
-----exception------
Ice.ConnectionLostException:
recv() returned zero
--------------------
-- 04/22/20 12:00:12.502 Retry: retrying operation call because of exception
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
-- 04/22/20 12:00:12.516 Retry: cannot retry operation call because retry limit has been exceeded
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
Ice UnChecked, Retry..{5}
-----exception------
Ice.ConnectionLostException:
recv() returned zero
--------------------
-- 04/22/20 12:00:13.530 Retry: retrying operation call because of exception
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero
Ice UnChecked, Retry..{6}
-----exception------
Ice.ConnectionLostException:
recv() returned zero
--------------------
Ice Server is Invalid!
-- 04/22/20 12:00:13.542 Retry: cannot retry operation call because retry limit has been exceeded
   src\ice\cpp\src\Ice\StreamSocket.cpp:483: ::Ice::ConnectionLostException:
   connection lost: recv() returned zero

Process finished with exit code 1
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2020-4-22 12:33:47 | 显示全部楼层
本帖最后由 scmeiqy 于 2020-4-22 12:40 编辑
835479131 发表于 2020-4-22 12:03
运行后出现如下问题,楼主求救

-- 04/22/20 12:00:12.402 Retry: retrying operation call because of e ...

已经建立连接的对方突然断开,导致连接丢失,比较棘手哈。
你必须先描述一下你的使用环境。

一般而言:
1、因为网络原因,导致连接丢失。这个解决方法就是等待加重试。
2、防火墙。关了防火墙再试试(我没有测试,如果防火墙的原因,应该连接也连不上的)。
3、可以把配置文件中的“Ice.Trace.Retry=1”值,稍微调大点,看看报错情况。
4、其它,得根据你的环境来思考故障哈。

密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-4-22 13:14:04 | 显示全部楼层
scmeiqy 发表于 2020-4-22 12:33
已经建立连接的对方突然断开,导致连接丢失,比较棘手哈。
你必须先描述一下你的使用环境。

网络环境气象内网,与服务器能正常连通。python版本3.8.1,ice版本3.7.3
关闭防火墙与调整Ice.Trace.Retry值后,报错情况相同。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2020-4-22 14:17:08 | 显示全部楼层
本帖最后由 scmeiqy 于 2020-4-22 14:18 编辑
835479131 发表于 2020-4-22 13:14
网络环境气象内网,与服务器能正常连通。python版本3.8.1,ice版本3.7.3
关闭防火墙与调整Ice.Trace.Ret ...

把DataQueryClient文件中的:
self.version = "1.6"
改成
self.version = "1.4"
再看看,如何?

这个现象有点奇怪哈。

密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-4-22 15:30:58 | 显示全部楼层
scmeiqy 发表于 2020-4-22 14:17
把DataQueryClient文件中的:
self.version = "1.6"
改成

啥也没改,突然就行了,怀疑是服务器端的问题

点评

哈哈,恭喜!!这就是网络程序调试非常郁闷的地方——不是所有的东本都能自己把控.  发表于 2020-4-22 16:05
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-4-24 10:13:40 | 显示全部楼层
{:eb513:}{:eb513:}
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-6-6 15:21:12 | 显示全部楼层
这个资料不错呢!
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-7-10 09:31:37 | 显示全部楼层
感谢楼主分享
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表