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 631418 - no stock prices available.
no stock prices available.
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: invest-applet
2.32.x
Other Linux
: High critical
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-05 13:32 UTC by chilan
Modified: 2010-10-16 11:10 UTC
See Also:
GNOME target: 2.32.x
GNOME version: 2.31/2.32


Attachments
Sample stock.pickle (180 bytes, application/octet-stream)
2010-10-10 17:00 UTC, chilan
Details

Description chilan 2010-10-05 13:32:20 UTC
After updating to Gnome 2.32, Invest can not load the stock prices. I tested it in an environment with and without a proxy.

I' am using Archlinux 64bit.
uname -av
Linux hades 2.6.35-ARCH #1 SMP PREEMPT Wed Sep 29 08:45:18 CEST 2010 x86_64 Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz GenuineIntel GNU/Linux

After deleting all files in ~/.gnome2/invest-applet, I started it in the console with the following output:

/usr/lib/gnome-applets/invest-applet -dw
2010-10-05 15:11:43.713433: ERROR: Could not load the stocks from ~/.gnome2/invest-applet/stocks.pickle: [Errno 2] Datei oder Verzeichnis nicht gefunden: '~/.gnome2/invest-applet/stocks.pickle'
2010-10-05 15:11:43.740758: Debugging enabled
2010-10-05 15:11:43.740926: Data Dir: /usr/share/gnome-applets/invest-applet
2010-10-05 15:11:43.740991: Detected PROXY: None
2010-10-05 15:11:43.770727: Starting invest instance: <gnome.applet.Applet object at 0x13c9b40 (PanelApplet at 0x1078360)> None
2010-10-05 15:11:43.772275: Setting refresh timer to 15:00.000
2010-10-05 15:11:43.772337: Refreshing
2010-10-05 15:12:07.151041: Stocks written to file
2010-10-05 15:12:07.151151: Configuration written to file
2010-10-05 15:12:07.151452: Setting refresh timer to 15:00.000
2010-10-05 15:12:07.151505: Refreshing
2010-10-05 15:12:07.616432: Failed to populate quotes: 'QuoteUpdater' object has no attribute 'positions_balance'
2010-10-05 15:12:07.616488: {'DBK.DE': {'volume': 4819228, 'variation_pct': 1.5034744156664559, 'open': 39.689999999999998, 'variation': 0.59499999999999997, 'trade': 40.170000000000002, 'high': 40.229999999999997, 'currency': 'EUR', 'low': 39.475000000000001, 'time': '8:55am', 'date': '10/5/2010', 'label': 'DEUTSCHE BANK N', 'ticker': 'DBK.DE'}}
Comment 1 chilan 2010-10-05 13:37:08 UTC
Seems that it loaded the stock price, but doesn't populate the corresponding object, because of a missing field 'positions_balance'.
Comment 2 Enrico Minack 2010-10-09 09:59:40 UTC
Thank you for reporting this bug. Can you please add the stocks.pickle file that causes this problem?
Comment 3 chilan 2010-10-10 17:00:40 UTC
Created attachment 172053 [details]
Sample stock.pickle

Simple stock.pickle to reproduce the problem.
Comment 4 Enrico Minack 2010-10-10 20:20:42 UTC
I can confirm this problem. It only occurs when there are only stocks with purchase information. To quickly get it working for you, simply add one stock without purchases.

A fix should be available for the next release (2.32.1 and 2.91).
Comment 5 Enrico Minack 2010-10-16 11:10:32 UTC
Fix applied to git master (2.91.1) and most recent stable branch (2.32.1), see commit d4bea685...