4
$\begingroup$

Bug introduced in 10.3.0 and fixed in 10.3.1


Retrieving data using FinancialData became more unreliable in the last couple of months, but simply retrying was enough to finally get the data. Now it seems to be nearly completely broken in Mathematica v10.3 under Windows 10. However, it is still working fine in v9.0.1.

In the following GIF v9.0.1 is on the left side and v10.3 is on the right side. GIF

FinancialData["SPY", "Price"]

FinancialData["^VIX", "Price"]

Is this malfunction reproducible with your v10.3 installation or is it limited to mine?
With what settings can I make retrieving data using FinancialData in v10.3 working and more reliable?

PacletFind["*FinancialData*"]

returns

{Paclet["FinancialData_Symbols_Y3","7.1.15",<>]}

in version 9.0.1 and

{Paclet["FinancialData_Symbols_Y3","10.1.19",<>]}

in version 10.3.


Other *Data functions seem to be affected, too. For example

WeatherData["Chicago", "Temperature"]

will never show anything if it doesn't work. NOTworking

However, after a couple of retries it worked, showing some initializations. In such a situation FinancialData also does work. Unfortunately, after restarting Mathematica it failed again and again.

Working

I don't witness any problems using

Entity["Financial", "^VIX"][EntityProperty["Financial", "Last"]]

Deleting the pacletSiteData_10.pmd2 file, as described in the comment by FredrikD provides a temporary workaround. It is enough to restart the kernel after deleting that file, but unfortunately after another kernel restart retrieving data is broken again. GIFDemonstration

$\endgroup$
18
  • 1
    $\begingroup$ Both work fine for me. MMA 10.3 on OSX 10.10.5 $\endgroup$ Dec 6, 2015 at 13:59
  • 1
    $\begingroup$ CalendarData hanging in Mma 10.3 on Windows 10. Can work if it's the first thing called. $\endgroup$ Dec 6, 2015 at 20:57
  • 1
    $\begingroup$ @Karsten7. - It sometimes works if the first thing run is CalendarData[], but it's intermittent. $\endgroup$ Dec 6, 2015 at 21:26
  • 1
    $\begingroup$ @Karsten7. I've tried in different combinations - it works fine (sometimes faster or slower). Your last request returns output '{ PacletManager`Paclet[ "Name" -> "FinancialData_Symbols_Y3", "Version" -> "10.1.19", "MathematicaVersion" -> "10.0+", "BackwardCompatible" -> "*", "Extensions" -> {{ "Resource", "Root" -> "Data", "Resources" -> {"FinancialData_Symbols_Y3.wdx"}}}, "Location" -> "C:\\Users\\...\\AppData\\Roaming\\Mathematica\\\ Paclets\\Repository\\FinancialData_Symbols_Y3-10.1.19"]}' $\endgroup$
    – garej
    Dec 7, 2015 at 22:50
  • 1
    $\begingroup$ When this happens with my Wolfram Desktop Producer, I remove the "pacletSiteData_10.pmd2" file from C:\Users\<user>\AppData\Roaming\WolframDesktop\Paclets\Configuration Restart the computer, Wolfram recreates the file and then it works. Seems to be a bug that is related to initializing the system. Not only for FinancialData, also sometimes for other curated data $\endgroup$
    – FredrikD
    Dec 8, 2015 at 8:47

2 Answers 2

3
$\begingroup$

Fixed in 10.3.1


It seems to be fixed in 10.3.1. Not able to reproduce it. Windows 7, 64 bit

Mathematica graphics

Mathematica graphics

enter image description here

And the weather data also works. (it takes few seconds to read all the data)

enter image description here

$\endgroup$
2
  • $\begingroup$ Where you able to reproduce it with version 10.3. It is fixed also for me with version 10.3.1, but I used that update as an opportunity to reset my Mathematica installation and wanted to see if it keeps working. With version 10.3 it wasn't completely broken, but got worse and worse. $\endgroup$
    – Karsten7
    Dec 18, 2015 at 11:07
  • $\begingroup$ @Karsten7. When I installed 10.3.1 I removed 10.3, so I do not know if it worked or not in 10.3 now. $\endgroup$
    – Nasser
    Dec 19, 2015 at 10:15
1
$\begingroup$

A temporary workaround based on the comment by FredrikD is to start any new notebook, in which a *Data function will be used with

DeleteFile[
  FileNameJoin[{$UserBasePacletsDirectory, "Configuration", "pacletSiteData_10.pmd2"}]];
Quit

and to add

SetOptions[$FrontEndSession, "ClearEvaluationQueueOnKernelQuit" -> False];     

DeleteFile[
  FileNameJoin[{$UserBasePacletsDirectory, "Configuration", "pacletSiteData_10.pmd2"}]];
Quit

to the beginning of every notebook that contains a *Data function and is supposed to work reliably when evaluated as a whole. (Reference for the option setting: https://stackoverflow.com/a/13740555)

During the restart of the kernel pacletSiteData_10.pmd2 will be recreated and managerData_10.3.0.0.pmd2 will be updated.

$\endgroup$
1
  • $\begingroup$ Great ref to the Stackoverflow question. Didn't know that was possible $\endgroup$
    – FredrikD
    Dec 10, 2015 at 16:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.