After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591723 - If invest-applet ever cannot connect the server, it will never re-connect, even when connectivity is restored
If invest-applet ever cannot connect the server, it will never re-connect, ev...
Status: RESOLVED OBSOLETE
Product: gnome-applets
Classification: Other
Component: invest-applet
2.27.x
Other All
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 579090 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-08-13 17:25 UTC by Adam Williamson
Modified: 2018-03-12 12:45 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28



Description Adam Williamson 2009-08-13 17:25:16 UTC
Please describe the problem:
If an instance of invest-applet on the panel is ever unable to connect to the server - say the network is not up when GNOME first starts and it tries to check the stock status - it will never again be able to connect, even when the network is up and you hit the 'Refresh' menu item. You can only get it working again by removing it from the panel and re-adding it. I have to do this every time I boot, as my machine has a wireless connection, and the connection does not establish fast enough for invest-applet's initial status check to work.

Steps to reproduce:
1. Start up GNOME with invest-applet in your panel and the network down. See invest-applet go purple and (if you mouse over) tell you it was unable to connect.
2. Bring up the network.
3. Right-click on invest-applet and hit 'Refresh'.
4. Remove the applet from the panel and re-add it.


Actual results:
After step 3, applet still will not contact the server and update itself. After step 4, it does.

Expected results:
After step 3, the applet should contact the server and update itself. Step 4 should be unnecessary.

Does this happen every time?
Yes.

Other information:
Comment 1 Enrico Minack 2009-08-20 09:44:16 UTC
Thanks for submitting this bug report.

Unfortunately, I cannot reproduce this behaviour. Can you please try to start the invest applet in a standalone window in debug mode and reproduce the bug? Please start invest using:
 /usr/local/libexec/invest-applet -w -d
and send the output given by the applet.

This would help to track the problem.

Note: this is a duplicate of bug #579090.
Comment 2 Adam Williamson 2009-08-20 15:46:54 UTC
Gah. I _hate_ people who don't put the name of the app they're reporting a bug in, into the summary. Completely screws up just doing a quick search for a previous report :/

Will test.
Comment 3 Adam Williamson 2009-08-20 15:47:45 UTC
note that caillon is another RH-er, so he's probably running Fedora too. I didn't think this could be Fedora-specific (we don't patch it AFAIK), but maybe it is. Anyway, will check soon.
Comment 4 Adam Williamson 2009-08-20 17:40:17 UTC
It returns this error, immediately (it's literally the instant I click on 'Refresh', clearly not enough time for it to have actually tried):

Error while retrieving quotes data (url = http://finance.yahoo.com/d/quotes.csv?s=CM.TO+PALM+RY.TO+NTDOY.PK&f=sl1d1t1c1ohgv&e=.csv)

Every time I hit refresh, same thing. If I then quit and relaunch the app immediately, it works.

The Fedora build for gnome-applets is here: http://cvs.fedoraproject.org/viewvc/rpms/gnome-applets/devel/

quite a few patches, but none seem to apply to invest-applet.
Comment 5 Enrico Minack 2009-08-30 19:10:06 UTC
What I could imagine from the code is that the PROXY detection does not work properly if there is no internet connection (get_gnome_proxy(client):
 in applet.py). Those incorrect PROXY settings are then used to retrieve files, which will never work. However, I could not test it. I tried Redhat Fedore 11 live CD and starting the applet without network connection worked perfectly. I could not test a proxy. This is just a guess.

Please note here if you use a proxy, and if so, please test the applet without a proxy, if possible.
Comment 6 Adam Williamson 2009-08-31 15:22:34 UTC
No, I don't use a proxy.

How do you mean 'starting the applet without network connection worked perfectly', exactly?
Comment 7 Enrico Minack 2009-08-31 19:25:15 UTC
I added the applet to the panel when the system was not connected to the internet and added a stock. When the applet says that it could not connect to yahoo finance, I established network connection and clicked on refresh in the menu. Then, the stock information could be downloaded properly.

Can you provide me with the rpm file that reflects your installed invest-applet version? The invest applet is part of the gnome-applets package.
Comment 8 Adam Williamson 2009-08-31 20:05:22 UTC
[adamw@adam i586]$ rpm -q gnome-applets
gnome-applets-2.27.91-1.fc12.x86_64

but it's been like this for ages, at least since 2.24, I've never seen it work. My laptop is on 2.26.3-1.fc11 and it doesn't work there either.
Comment 9 Enrico Minack 2009-09-10 17:24:05 UTC
*** Bug 579090 has been marked as a duplicate of this bug. ***
Comment 10 David Robinson 2010-10-26 12:31:18 UTC
Looks like its been fixed:
http://git.gnome.org/browse/gnome-applets/commit/?id=d4bea685996cfb4fe38aab3a5763b2517e83bdbf

The problem was that self.positions_balance was undefined:

[zxvdr@laptop ~]$ /usr/libexec/invest-applet -w -d
2010-10-26 23:17:39.862608: Debugging enabled
2010-10-26 23:17:39.862688: Data Dir: /usr/share/gnome-applets/invest-applet
2010-10-26 23:17:39.862710: Detected PROXY: None
2010-10-26 23:17:39.863393: Starting invest instance: <gnome.applet.Applet object at 0x175b870 (PanelApplet at 0x14f8360)> None
2010-10-26 23:17:39.865150: Setting refresh timer to 15:00.000
2010-10-26 23:17:39.865219: Refreshing
2010-10-26 23:17:41.317143: Failed to populate quotes: 'QuoteUpdater' object has no attribute 'positions_balance'
...
Comment 11 Enrico Minack 2010-10-27 18:41:29 UTC
Well, the reported problems still look different. It was mentioned that after restarting the applet, it worked, which would not be the case self.positions_balance bug.
Comment 12 Alberts Muktupāvels 2018-03-12 12:45:35 UTC
Invest applet has been removed because Yahoo Finance API is no longer available.