Group Abstract Group Abstract

Message Boards Message Boards

0
|
21K 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

Works for me as well now in both Fedora Linux systems with Mathematica 10.1 and Windows 7 with Wolfram Desktop 10.1. I can see the initialization of the Wolfram Knowledgebase connection after loading the EntityFramework and running EnityValue again

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

Mathematica 10 comes with, and should use, its own installation of Java (specifically a Java 7, I believe at $InstallationDirectory/SystemFiles/Java). There should be no need to install Java yourself, even on Mac.

I'm suspicious of the space character in the $InstallationDirectory of /Applications/Mathematica 2.app/Contents for the non-working system quoted by Marco above. I could easily be wrong, but try using a different installation directory that does not include a space?

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

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

I included a link to this discussion in the e-mail I sent to tech support. (If you have not sent them a missive, I suggest that you do.) Perhaps they will read this and have some suggestions.

Mine is a pretty simple set up -- no corporate firewalls, etc. and, as of yesterday, a plain vanilla installation of Mathematica 10.1. Dealing with curated data involves a lot of 'moving parts'.

If I get a response from tech support, I will post it here.

Posted 11 years ago
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

not sure who the query was addressed to, but here is what worked for me.

On a Mac, OS X will offer to install Java 6 SE if an app needs Java. This did not solve the problem with Mathematica. I went to the Java (Oracle) site (www.java.com), and downloaded Java 8 update 45, which is what was available for OS X. This solved the problem.

Note sure about Windows, but I guess that there are various versions of the Java runtime available, and the most recent is the one needed. From the Java website, there are 32 and 64 bit versions, versions for different browsers, and a lot more complications than for OS X. I have not heard from Wolfram technical support, but I am hopeful to do so in a couple days.

POSTED BY: Marco Thiel

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

POSTED BY: Sean Clarke
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