“indicator-weather”无法选取地点

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
lxf1992521
帖子: 240
注册时间: 2011-06-26 18:28
联系:

“indicator-weather”无法选取地点

#1

帖子 lxf1992521 » 2012-12-25 18:20

今天重装系统,安装好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'
请高手指点一下,平时都好好的,为什么会出现这种问题呢?
头像
lxf1992521
帖子: 240
注册时间: 2011-06-26 18:28
联系:

Re: “indicator-weather”无法选取地点

#2

帖子 lxf1992521 » 2013-01-04 18:07

怎么没有人来说一下,我看到好几个人都在反应这个问题!
头像
lm789632
帖子: 389
注册时间: 2011-01-16 22:50
系统: UBUNTU 12.10
来自: HELL

Re: “indicator-weather”无法选取地点

#3

帖子 lm789632 » 2013-01-10 21:26

同样遇到此问题,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):
重新运行就可以添加城市了 :em01
重点就是0哦 :em01
呃,没看到是坟,说一下 我的环境为
ubuntu12.10
indicator-weather 版本为 12.07.30-0ubuntu1
头像
lxf1992521
帖子: 240
注册时间: 2011-06-26 18:28
联系:

Re: “indicator-weather”无法选取地点

#4

帖子 lxf1992521 » 2013-01-10 22:31

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):
重新运行就可以添加城市了 :em01
重点就是0哦 :em01
呃,没看到是坟,说一下 我的环境为
ubuntu12.10
indicator-weather 版本为 12.07.30-0ubuntu1
哈哈,完美解决!
另外,反应一个waether的另一个问题,无法显示预报!早期还是可以显示的,现在点击后,就是这样的图片:
图片
头像
lm789632
帖子: 389
注册时间: 2011-01-16 22:50
系统: UBUNTU 12.10
来自: HELL

Re: “indicator-weather”无法选取地点

#5

帖子 lm789632 » 2013-01-17 21:34

天气预报的问题据我的理解好像是因为google不提供weather的api支持了,我这边把天气数据提供者从yahoo!换成google,根本无法刷新天气数据,而貌似yahoo!没提供天气预报支持。 :em20
另我这边 indicator-weather更新到 12.07.30-0ubuntu1.1后已经修复无法选择location的bug,用的就是我搜索到的办法。 :em02
nickjayblack
帖子: 6
注册时间: 2013-04-01 10:14
系统: ChrUbuntu 12.04

Re: “indicator-weather”无法选取地点

#6

帖子 nickjayblack » 2013-04-28 10:46

请问,我打开这个text,但是编辑之后无法save,请问是为什么呢?
头像
hawkIdeality
帖子: 411
注册时间: 2012-05-14 18:39

Re: “indicator-weather”无法选取地点

#7

帖子 hawkIdeality » 2013-04-28 10:56

nickjayblack 写了:请问,我打开这个text,但是编辑之后无法save,请问是为什么呢?
权限不够呗。用sudo gedit加文件名来编辑。
崩溃是不可抗拒滴
攒钱买(第?台)macbook,然后装ubuntu
那些说unity找不到应用程序的人拜托按一下win+A好吗?
Novelty, Novelty, Give Me Novelty
发表Linux、Win、OS X的对比帖时,建议您确认一下您真的用过Linux&&Win&&OS X,而不是用过Linux||Win||OS X。
吾乃古剑奇谭NC粉!
wuchjun
帖子: 6
注册时间: 2012-07-15 16:26

Re: “indicator-weather”无法选取地点

#8

帖子 wuchjun » 2013-06-03 15:55

改了之后还是提示相同的问题怎么办?
头像
lxf1992521
帖子: 240
注册时间: 2011-06-26 18:28
联系:

Re: “indicator-weather”无法选取地点

#9

帖子 lxf1992521 » 2013-06-04 12:44

呵呵,不要用这个软件了,不是很好!
用麒麟版的中国天气指示器,很棒,具体google一下!
头像
moxia
帖子: 42
注册时间: 2012-08-29 18:49

Re: “indicator-weather”无法选取地点

#10

帖子 moxia » 2013-08-15 21:07

:em20 3楼的方法试了 在我这没效果
leakout
帖子: 14
注册时间: 2012-05-02 9:24

Re: “indicator-weather”无法选取地点

#11

帖子 leakout » 2014-03-06 20:57

lxf1992521 写了:呵呵,不要用这个软件了,不是很好!
用麒麟版的中国天气指示器,很棒,具体google一下!
我也觉得用麒麟版的好!谢谢提醒
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: “indicator-weather”无法选取地点

#12

帖子 eexpress » 2014-03-07 15:31

indicator-china-weather
● 鸣学
回复