Problems to install MESSAGE_ix platform.

188 views
Skip to first unread message

fadi...@gmail.com

unread,
Apr 12, 2018, 10:23:26 AM4/12/18
to message_ix
Dear fellows

I am trying to install the ix platform from github MESSAGEix (https://github.com/iiasa/message_ix) but I couldn't.

I followed all steps requested but I when I run the install.bat file I got an error msg saying: 

"Unable to start JVM at native\common\jp_env.cop:78"

Have you ever gotten this error? Or it is a new problem?
 
Thanks in advance
Fabio Diuana

hupp...@iiasa.ac.at

unread,
Apr 14, 2018, 2:59:13 AM4/14/18
to message_ix
Hi Fabio,

Sorry for this issue. I guess that this problem is caused by having set the wrong path to the JVM installation. The correct path depends on the OS version and the Java version that you installed, so it's not possible to give the one correct answer - on Windows, check that a file like jvm.exe is located in the paths that you added to the system environment variables. If not, the path is probably wrong. (But don't just move a file to the folder, this will also break Java).

If you figure this out, please add the solution (including your OS version and Java version) either:
 - to the installation instructions in the README as a GitHub Pull request
 - or as an issue to the ixmp repository (https://github.com/iiasa/ixmp/issues)

And please also send the answer to this mailing list.

Hope this helps, all the best,
Daniel

fadi...@gmail.com

unread,
Apr 16, 2018, 3:35:38 PM4/16/18
to message_ix
Thanks for answer me, Daniel.

Unfortunately I couldn't solve the problem yet.

I can't find the file jvm.exe at anywhere. Should I install it separetely from java kit development? I just found the jvm.dll, java.exe...

Apparently, wheter I got it right, this problem is because jvm can only be started once.

I have been reading about this issue in other situations but none of them were solved without change the code, even changing the code I found just one possible solution. (https://github.com/originell/jpype/issues/84)

Though I am not a developer program and I do not understand too much about programming, hence I might be wrong about it.

When and if I find the solution I will let you know
Regards
Fabio Diuana.
Message has been deleted

fadi...@gmail.com

unread,
Apr 16, 2018, 5:07:01 PM4/16/18
to message_ix
Dear all,

I had not realized that there is another error message that is displayed when I run install.bat file which is "invalid maximum heap xmx0g".

Might it be related to the JVM don't start?

Regards
Fabio.

hupp...@iiasa.ac.at

unread,
Apr 17, 2018, 2:30:51 AM4/17/18
to message_ix
Hi Fabio,

Indeed, this seems like a good explanation. Does your computer only have less than 2GB of RAM?

If yes, can you open ixmp/ixmp/core.py and add the following line in between line 39 and 40 (with the same level of intendetation using spaces, not tabstops.

            jvmsize = psutil.virtual_memory().available / 10**9 / 2
->         jvmsize = jvmsize if jvmsize > 1 else 1
            jvmargs = "-Xmx{}G".format(int(jvmsize))

Hope this solves your problem!
Cheers,
Daniel

ore...@gmail.com

unread,
Apr 18, 2018, 5:02:05 AM4/18/18
to message_ix
I actually had the "Unable to start JVM at native\common\jp_env.cop:78" error when I had a notebook kernel still running. Maybe making sure all kernels are closed solved the issue.

Op dinsdag 17 april 2018 08:30:51 UTC+2 schreef hupp...@iiasa.ac.at:
Message has been deleted

fadi...@gmail.com

unread,
Apr 18, 2018, 10:07:06 AM4/18/18
to message_ix
Dear fellows, 

thank you for answered me.

I am not sure about what "all kernels closed" means. If it means to close all apps opened I did it

I also did what Daniel suggested me and this time it apparently worked.

Thank you for helped me.

Next step, learn how to use message_ix platform.

Best Regards
Fabio Diuana.

hupp...@iiasa.ac.at

unread,
Apr 27, 2018, 5:07:59 AM4/27/18
to message_ix
Hi,

Yes, every Jupyter notebook is connected to a process aka kernel.

Follow-up since another user had a similar problem - I created an issue on GitHub to solve this problem for good: https://github.com/iiasa/ixmp/issues/29

Best regards,
Daniel
Reply all
Reply to author
Forward
0 new messages