GNOME Bugzilla – Bug 631418
no stock prices available.
Last modified: 2010-10-16 11:10:32 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'}}
Seems that it loaded the stock price, but doesn't populate the corresponding object, because of a missing field 'positions_balance'.
Thank you for reporting this bug. Can you please add the stocks.pickle file that causes this problem?
Created attachment 172053 [details] Sample stock.pickle Simple stock.pickle to reproduce the problem.
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).
Fix applied to git master (2.91.1) and most recent stable branch (2.32.1), see commit d4bea685...