Message Boards Message Boards

0
|
17389 Views
|
41 Replies
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

EntityValue[] Not Working

Hi, I am trying to understand the knowledge representation primitives in Mathematica 10.1. While trying some of the examples given in the Help documentation, I noticed that the following expressions do not work for me:

EntityValue[]

Entity["Mythology"]["Properties"]

When I evaluate these expressions, the same expression is returned. What am I doing wrong?

Regards,

Rangarajan

41 Replies

Hi everyone,

it some time ago I got feedback from the technical support team that this will be fixed in a future release. Meanwhile, there are two versions of MMA10.1. I only have the OS X ones. On the computers on which I installed the file dated 24th March 2015 everything works fine. On the machines with the version from 27th April there is the problem with the EntityValueFramework.

So I think that it is indeed related to this post on StackExchange:

http://mathematica.stackexchange.com/questions/80630/mathematica-10-1-0-0-os-x-high-cpu-usage-even-for-empty-notebook

I suppose something else broke when the CPU issue was fixed.

Hope that an update will be available soon.

Cheers,

Marco

POSTED BY: Marco Thiel
POSTED BY: Marco Thiel
Posted 9 years ago
POSTED BY: Hans Milton

Dear Hans,

thanks a lot for checking. I am getting frustrated that Voodoo does not seem to apply to me. Is it included in Premier Service Plus?

Cheers,

M.

POSTED BY: Marco Thiel
Posted 9 years ago
POSTED BY: Kenneth Barker

Hi Jeremy,

thanks for your help. That does not seem to be the problem. It does work on some of the functioning system with the same labelling of Mathematica's app-file; and if I change it to a "non-space" version. I believe that the naming convention comes directly from the Mathematica installation which adds the 2 if there is an older version of MMA installed.

In fact, It appears to be a problem with the Paclets rather than Java directly. The respective folders do not exist on the sick system.

Best wishes and thank you,

Marco

POSTED BY: Marco Thiel
POSTED BY: Jeremy Michelson

Ok. Transplanting the respective paclet folders does not work either. The folder in the broken MMA10.1 is much smaller than in the functional one.

It appears that only WRI will be able to help out here....

Cheers,

Marco

PS: It still bugs me that sometimes it appears to be working.

POSTED BY: Marco Thiel

A suggestion from tech support:

execute

RebuildPacletData[]

Considering the lack of paclet files in your printout of SystemInformation[], it might do something.

Hi,

they are looking into this and are aware of the issue. I got the same suggestion, but it does not fix it.

I will try "transplanting" the folder from a healthy system. Perhaps that fixes it?

Cheers and thanks,

Marco

POSTED BY: Marco Thiel

Hi,

tried this as well. Did not work for me either.

Best wishes

Bjoern

POSTED BY: Bjoern Schelter

My installation directory is

"/[InvisibleSpace]Applications/[InvisibleSpace]Mathematica.app/\ [InvisibleSpace]Contents"

and there are lots of files in it. Not sure why your app is called Mathematica 2.app.

Unfortunately, I did not do SystemInformation[] when my system was not working.

The last e-mail I got from tech support was that the developers were looking into the problem. I think you have found an important clue. On the off chance that the developers are not aware of this thread, I suggest that you send them both SystemInformation[] outputs. (I already sent my SystemInformation[] data for my working installation, and I do not have the 'before' version.)

With so many files, etc., apparently missing, there my be other functionality not working.

Anyway, this may point to a solution....

george

Posted 9 years ago

I got an e-mail from Wolfram Support, and suggested that I un-install Java. As I discovered when doing this, The Java 8 installer (for the Mac, at least) just installs a plug-in. It does not install the JDK, as, apparently, it used to.

The strange thing is that once I uninstalled Java 8, Mathematica 10.1 still evaluated EntityValue[] correctly. As the tech support person pointed out, how Mathematica works should not be influenced by what is essentially a browser plug-in.

Kenneth's observation is correct: when the function was not working, the blue box indicating that the WolframKnowledgebase connection was being initialized did not appear. Now, it does.

So, what I am left with is a working Mathematica 10.1 after some voodoo that was a side effect of installing Java 8 on OS X. Now that it works, the presence or absence of the plug-in makes no difference.

Completely resetting Mathematica 10.1 (deleting the base directories, re-installing from a fresh download) did not fix the problem. Whatever it did, running the Java 8 installer made the problem go away.

Since others have tried this bit of magic without success, clearly something else is going on, to state the obvious. If, as Marco discovered, CityData[] works and EntityValue[] does not, accessing the same data, the issue cannot be in the connection to the knowledge base.

I'm out of ideas. I had a magic trick that worked for me (good for me) but no idea why, or what to do to solve the problem.

POSTED BY: Updating Name

Great! That leaves me stranded. I have uninstalled Java; Mathematica does not work. I have deleted Mathematica and reinstalled. Mathematica does not work. I have reinstalled Java 8 (JDK) Mathematica does not work. I have deleted Mathematica and reinstalled it; it does not work. I also tried older versions of Java. Does not work either.

I will probably get the same piece of advice from TechSupport, and it will not work for me. I am not really sure what Voodoo suggests in these cases...

Cheers,

M.

POSTED BY: Marco Thiel

Did you try deleting the BaseDirectory and UserBaseDirectory and let Mathematica re-create them? (On my system, Mathematica only rebuilt $UserBaseDirectory, but that is sufficient.)

I did that, and it didn't work, but it was right before I had the 'bright' idea of installing Java 8. It is possible that the Java bit was just a co-incidence, and the real problem was a messed up library directory. If I had restarted or something else, it may have been that the problem would have gone away.

It may be just a hunch, but if Mathematica does not put a Mathematica folder in the System Library (OS X -- other systems have different names), try not making one by hand or copying from an older/other computer. I had some issues with old cruft in the Mathematica folder in the system Library folder in the past -- which is why it is no real pain to toss it. I do know that an issue I had with the welcome screen not remembering recently opened notebooks went away when I tossed the library folders and used only what Mathematica built on its own.

Considering the lack of content in the library folders of the non-functional systems, it may be worth a shot. It would not explain the issues on Linux or Windows, but OS X after 10.8 or so has had restrictions on what goes into the system library folder, and I have noticed that a lot fewer apps put things there, and when they do, it seems to be read-only. Just a guess.

POSTED BY: Marco Thiel
Posted 9 years ago

Here's a couple of additional data points:

EntityValue[ ] works on: Fedora 21 Linux 64-bit, Mathematica 10.0.2 and Wolfram Desktop 10.0.2

EntityValue[ ] fails on: Fedora 21 Linux 64-bit, Mathematica 10.1, Windows 7 64-bit Wolfram Desktop 10.1

On Linux, I've tried the support note on resetting Mathematica and even tried removing Java without any change in the behavior of EntityValue.

The Linux system has Mathematica 10.0.2 and 10.1 installed, the Windows system doesn't have any version of Mathematica. I've also removed Mathematica from another Fedora Linux system to test whether a clean install of Mathematica 10.1 would work correctly, but it didn't.

One thing that I've noticed is that when EntityValue[ ] works on both Mathematica 10.0.2 and Wolfram Desktop 10.0.2, the first invocation of EntityValue[ ] displays:

Initializing Wolfram Knowledgebase connection

This isn't shown on systems where EntityValue[ ] doesn't evaluate correctly.

POSTED BY: Kenneth Barker
POSTED BY: Marco Thiel
POSTED BY: Marco Thiel

OK.

Can you let us know in the community what worked (assuming you find out). We may be in a similar position some day.

Perhaps the Java solution just applied to Macs -- Apple has been trying to wean users away from Java for the last couple OS releases.

POSTED BY: Marco Thiel

Hi,

thanks a lot for looking into this problem.

I followed your guidelines, George, but for me it unfortunately does not solve the problem. I tried various computers by now, I have the problem on all of them.

Best wishes and thanks for your help

Bjoern

POSTED BY: Bjoern Schelter
Posted 9 years ago

It seems that something might be generally wrong with accessing curated data from MMA 10.1. This is from the documentation of StarData:

enter image description here

But when trying out the example, the result is less than informative:

enter image description here

Tried this on two different PC's. One W7, the other W8.1

POSTED BY: Hans Milton

Hi,

I believe that that is the same issue. If I execute that on a "good" computer it works. If I run it on a "bad" one that does not work. Could you please run one of the commands we discussed above to check whether they work?

A couple of minutes ago I got one computer working by reinstalling Java, deleting Mathematica completely and then reinstalling it. But this does not always seem to work. I am not really sure what is going on here, but I am getting more and more convinced that George is right and it is a mere Java issue. I just do not understand why reinstalling Java and then Mathematica does not always fix the problem. There might be some remaining files on the system or something.

Cheers,

Marco

POSTED BY: Marco Thiel
Posted 9 years ago

The input of EntityProperties["Aircraft"] just returns the input. On both PC's.

On one of them I have tried to:

  • Reset Mathematica according to KB12464. The problems remained.
  • Uninstalled and then reinstalled Mathematica 10.1. Still the problems remains.
POSTED BY: Hans Milton

Hi,

which Java version do you use?

Cheers,

Marco

POSTED BY: Marco Thiel
Posted 9 years ago

Hi Marco

Where do I find info on my version of Java?

(Java is not listed under Programs and Features. W 8.1)

POSTED BY: Hans Milton

This bugs me now. It works on one computer, but not on another one:

enter image description here

The Java version is from Oracles website. I have removed the ~/Library/... folder and reinstalled everything. Restarted the computer several times. This is on OS X 10.10.3 with MMA 10.1. Same versions do appear to work on another system I have.

MMA 10.0.2 on the exact same system works very nicely.

Best wishes,

Marco

POSTED BY: Marco Thiel

I found the problem.

After dumping the UserBaseDirectory, BaseDirectory, re-installing Mathematica, etc. I found out what would fix the problem.

I installed Java 8 update 45 on my system. I got this from the Java (Oracle) website.

After doing this, the code for EntityValue[] works -- even the documentation code works.

Previously, if you ran Mathematica on an Mac that did not have Java, the OS would notice that Java was missing, and offer to download and instal Java 6 SE. This worked just fine up to version 9, and I believe 10.0, but I can't be sure.

Apparently 10.1 requires Java 8.

I think that Mathematica should be smart enough to look for the required files and offer to install them.

Both of those results are the same except for formatting. The form at the top is how it actually looks in the language and the bottom version is a pretty version that is a bit more readable. Both, however, should work the exact same.

There are a couple of minor issues which sometimes cause this. They only affect how it looks - they don't affect how it works.

Do these entities not work when you try to use them?

POSTED BY: Sean Clarke

Dear Sean,

thank you for your help. I am aware that they should be the same but the format without the yellow boxes does not evaluate - sorry I should have made that clearer. It is like in this post. If you ask for, say the population size, you do get an unevaluated function. In the "good" system you get the population size.

I cannot really pin the problem down. Mathematica works as expected on my 15+ computers. But it appears that on all the ones of a colleague it has issues. We are working with academic licenses. Some days ago we bought a Standard (commercial) license each for my colleague and myself. It is installed on a Windows server, where I first noticed the problem. When we checked my colleague's computers (>5 independent machines), they all had problems. Also one of hist Post-docs seems to have the exact same problem. First we thought that it might be because they run a more recent version of Java, but that does not explain it. (Downgrading Java and new install does not fix it.)

Also I have noticed that there could be a server issue at least contributing to the problem. I don't think that this explains it all. Here is what I see on one of the one for the problematic system:

enter image description here

And then the one for the ok system:

enter image description here

This is curious because both computers are connected to the internet. They are in the same network and have the same network config as far as I can see. I have not had the time to test this systematically though. BTW, I would to ask for the population of Berlin like that with an "=" sign at the beginning, but if I do it in the standard way with EntityValue, I do just get the input unevaluated.

Anyway, on the good system, the "plain text command" and the orange box one seem to evaluate fine. On the other system they do not.

Oh, yes, on all systems, when I use the Preferences tab to check the internet connectivity, all systems say that they can connect to the Wolfram server.

Best wishes and thanks again for your help,

Marco

POSTED BY: Marco Thiel
POSTED BY: Marco Thiel

What OS are you using? Evaluate ds. This prints a summary about which version of Mathematica you are using.

Maybe you have an internet connection issue? Do you see any error messages? Can you evaluate:

Import["http://www.google.com"]

Something may be wrong with Mathematica's configuration. I would suggestion following this article:

http://support.wolfram.com/kb/12464

POSTED BY: Sean Clarke

Hi

then I do not understand what you are looking for. Does it not look like this:

enter image description here

This is expected behaviour, I believe. That looks just like in the Documentation, does it not? What happens when you do it? When you say the same expressions are returned, do you mean that they are not evaluating? Do you have a screenshot? Have you restarted the Kernel?

Cheers, Marco

POSTED BY: Marco Thiel

Hi,

try

EntityProperties["Mythology"]

Cheers,

M.

POSTED BY: Marco Thiel

Thanks, but this also does not work. The same expression is returned. Weird!

Regards,

Rangarajan

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract