分页: 1 / 1
“indicator-weather”无法选取地点
发表于 : 2012-12-25 18:20
由 lxf1992521
今天重装系统,安装好indicator-weather后,进行配置的过程中无法配置地点,导致软件无法运行。
在下面的界面时,点击“应用”无任何反应,

命令行出现下面的错误:
代码: 全选
Traceback (most recent call last):
File "/usr/bin/indicator-weather", line 1641, in on_apply
(location_code, location_details) = self.location.export_location_details()
File "/usr/bin/indicator-weather", line 322, in export_location_details
return (self.location_code, self.location_details)
AttributeError: Location instance has no attribute 'location_code'
请高手指点一下,平时都好好的,为什么会出现这种问题呢?
Re: “indicator-weather”无法选取地点
发表于 : 2013-01-04 18:07
由 lxf1992521
怎么没有人来说一下,我看到好几个人都在反应这个问题!
Re: “indicator-weather”无法选取地点
发表于 : 2013-01-10 21:26
由 lm789632
同样遇到此问题,google了一个答案,成功解决,如下
编辑 /usr/bin/indicator-weather
搜索
代码: 全选
if (yahoo_woeid_result['ResultSet']['Error'] != 0) and (yahoo_woeid_result['ResultSet']['Results'] != None):
这一行
将其改为
代码: 全选
if (yahoo_woeid_result['ResultSet']['Error'] != '0') and (yahoo_woeid_result['ResultSet']['Results'] != None):
重新运行就可以添加城市了

重点就是0哦

呃,没看到是坟,说一下 我的环境为
ubuntu12.10
indicator-weather 版本为 12.07.30-0ubuntu1
Re: “indicator-weather”无法选取地点
发表于 : 2013-01-10 22:31
由 lxf1992521
lm789632 写了:同样遇到此问题,google了一个答案,成功解决,如下
编辑 /usr/bin/indicator-weather
搜索
代码: 全选
if (yahoo_woeid_result['ResultSet']['Error'] != 0) and (yahoo_woeid_result['ResultSet']['Results'] != None):
这一行
将其改为
代码: 全选
if (yahoo_woeid_result['ResultSet']['Error'] != '0') and (yahoo_woeid_result['ResultSet']['Results'] != None):
重新运行就可以添加城市了

重点就是0哦

呃,没看到是坟,说一下 我的环境为
ubuntu12.10
indicator-weather 版本为 12.07.30-0ubuntu1
哈哈,完美解决!
另外,反应一个waether的另一个问题,无法显示预报!早期还是可以显示的,现在点击后,就是这样的图片:

Re: “indicator-weather”无法选取地点
发表于 : 2013-01-17 21:34
由 lm789632
天气预报的问题据我的理解好像是因为google不提供weather的api支持了,我这边把天气数据提供者从yahoo!换成google,根本无法刷新天气数据,而貌似yahoo!没提供天气预报支持。
另我这边 indicator-weather更新到 12.07.30-0ubuntu1.1后已经修复无法选择location的bug,用的就是我搜索到的办法。

Re: “indicator-weather”无法选取地点
发表于 : 2013-04-28 10:46
由 nickjayblack
请问,我打开这个text,但是编辑之后无法save,请问是为什么呢?
Re: “indicator-weather”无法选取地点
发表于 : 2013-04-28 10:56
由 hawkIdeality
nickjayblack 写了:请问,我打开这个text,但是编辑之后无法save,请问是为什么呢?
权限不够呗。用sudo gedit加文件名来编辑。
Re: “indicator-weather”无法选取地点
发表于 : 2013-06-03 15:55
由 wuchjun
改了之后还是提示相同的问题怎么办?
Re: “indicator-weather”无法选取地点
发表于 : 2013-06-04 12:44
由 lxf1992521
呵呵,不要用这个软件了,不是很好!
用麒麟版的中国天气指示器,很棒,具体google一下!
Re: “indicator-weather”无法选取地点
发表于 : 2013-08-15 21:07
由 moxia

3楼的方法试了 在我这没效果
Re: “indicator-weather”无法选取地点
发表于 : 2014-03-06 20:57
由 leakout
lxf1992521 写了:呵呵,不要用这个软件了,不是很好!
用麒麟版的中国天气指示器,很棒,具体google一下!
我也觉得用麒麟版的好!谢谢提醒
Re: “indicator-weather”无法选取地点
发表于 : 2014-03-07 15:31
由 eexpress
indicator-china-weather