Group Abstract Group Abstract

Message Boards Message Boards

0
|
21.3K Views
|
41 Replies
|
1 Total Like
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

Hi everyone,

I got a very useful piece of advice from technical support:

Get["EntityFramework`"]

apparently fixes (some of?) the problem at least for the active session. If you restart Mathematica then you will need to run that again. I gather that this is not the final solution, but we are definitely getting there.

I would be grateful if other people with that problem could try this and report back whether it worked for them. It worked on all computers I currently have access to.

The technical support was extremely friendly and helpful. A very good service indeed.

Cheers,

Marco

POSTED BY: Marco Thiel
Posted 11 years ago

Marco,

Wanted to check this. But, before doing so, noticed that the problem has now gone away!

Voodoo in action ...

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

Hi Marco, Thanks for sharing this. It works for me now!

Regards, Rangarajan

Posted 11 years ago
POSTED BY: Kenneth Barker
POSTED BY: Marco Thiel
POSTED BY: Jeremy Michelson
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
Posted 11 years ago
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

Hi,

sorry to bother you again, but I noticed that if I look up the Wolfram System Information (which is on a Mac under the "About Mathematica" item) it shows this for a working system:

enter image description here

and this for a not working system:

enter image description here

Is it important that it does not load the EntityFramework on the bad system? That folder does not exist on the bad system....

Cheers,

Marco

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

Another thing that is interesting. On the systems that have problems:

EntityValue[Entity["City", {"Berlin", "Berlin", "Germany"}], "Population"]

does not work. But

CityData[Entity["City", {"Berlin", "Berlin", "Germany"}], "Population"]

does work. On healthy systems both work.

Cheers,

Marco

POSTED BY: Marco Thiel

Thanks everyone for looking into this. The Java remedy does not seem to fix it for me.

enter image description here

I'll try to get advice from tech support, too.

Cheers,

M.

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.

Sure. If I find anything out, I will post it here.

Thanks a lot,

Marco

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 11 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 11 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 11 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.

I am seeing the same issue as Rangarajan.

In[1]:= EntityProperties["Mythology"]

Out[1]= EntityProperties["Mythology"]

using version 10.1 on OS X.

If I try one of the documentation examples, I get the same thing, rather than what the documentation shows is supposed to happen:

In[4]:= EntityProperties["Aircraft"]

Out[4]= EntityProperties["Aircraft"]

This was just cut and pasted from the documentation.

I seem to be able to get to the internet:

In[5]:= Berlin  »    
Entity["City",{"Berlin","Connecticut","UnitedStates"}]  \[SpanFromLeft]  \[SpanFromLeft]


Out[5]= Entity[City,{Berlin,Connecticut,UnitedStates}]

(I had trouble getting the = sign to show up.)

However, I do not get a pod that has information about Berlin.

I can try re-inatalling Mathematica 10, but somehow, I don't think that will solve the problem.

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
POSTED BY: Marco Thiel

Hi Everyone,

I can (sort of) reproduce this. It works just fine on my computers (mostly all sorts of Macs running OS X). I am, however, admin of a site license and I have now found people who have this issue. On their computers (Macs, Windows) Entity and related commands to not evaluate properly - see below. The symptoms are similar to the ones described here. All computers can see the internet. We reinstalled Mathematica - taking care of all previous Mathematica related files on the computers; and, because we suspected an issue with a new version of Java, we also used different Java versions, with no conclusive results.

Here is what happens:

enter image description here

This is as opposed to:

enter image description here

This only appears to concern MMA 10.1. MMA 10.0.2 runs well on these machines. We also tried different scenarios with and without removing MMA10.0.2 first. We also checked whether it could be a slightly updated version of Mathematica's installer, as described here, but we could not find any correlation.

Cheers,

Marco

POSTED BY: Marco Thiel

I am able to execute this:

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

It works as expected (I get some output from the site), so the internet connection is OK. But EntityValue[] and EntityProperties["Mythology"] are not evaluated. I do not get the output shown above. I have followed the suggestion given in the support URL, but no improvement.

I am running OSX 10.9.5 with Mathematica 10.1

Regards,

Rangarajan

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