Installing JModelica??

10 posts / 0 new
Last post
Bernt.Lie
Offline
Joined: 2011-08-12
Installing JModelica??

I'm trying to install JModelica.org on my freshly upgraded Windows 7 computer. I have installed EPD free (i.e. necessary Python tools including Python 2.7), I have installed Wing 101 IDE (which finds Python 2.7), and am trying to install JModelica.org.
JModelica.org refuses to be installed because it cannot find Python 2.7. Why? I can find it, Wing 101 can find it, and it works.
-B

fredrik
Offline
Joined: 2011-08-26
I do not think that

I do not think that JModelica.org officially supports all the different Python distributions, such as EPD. The intention is for Python and related software to be installed stand-alone. Nevertheless, it may be possible to get JModelica to run with EPD, but I do not know how. Someone else might be able to help you.

There have been some successful attemps to get JModelica to work with Python(x,y) and Spyder. See http://www.jmodelica.org/1058, where you might find some clues.

Bernt.Lie
Offline
Joined: 2011-08-12
I forgot to say: * On my

I forgot to say:
* On my laptop, I have successfully (1) installed the free Enthought Python Distribution, (2) installed Wing 101, and then (3) installed JModelica.org.
Thus: I am doing *exactly* the same thing on my desktop back in Norway. But here, JModelica.org does not find the Python installation (which is located at: C://Python27). On my laptop, I installed JModelica.org 1.7 without a problem. I have tried to install JModelica.org 1.8 *and* 1.7; both claim that they are not able to find the Python 2.7 installation.
The main difference is that my employer doesn't give me administration privileges on my desktop, but has created an administration account: I can not log in to this account, but when installing software, I am asked about specifying administrative user and give password for this. When I installed the free EPD, I was for some reason *not* asked to specify the administrative user...

tove
Offline
Joined: 2009-04-08
Hi, Could it be that you

Hi,

Could it be that you don't have permission to read the registry? We query the registry during the installation to find out where Python is installed and it seems like something has gone wrong there on your desktop.

regards,
Tove

fredrik
Offline
Joined: 2011-08-26
I don't really know anything

I don't really know anything about Windows administrator rights, but sometimes you have to explicitly run something as administrator for things to work "properly" (Right-click -> Run as administrator). Maybe running the EPD and JModelica installers in this mode may help.

Bernt.Lie
Offline
Joined: 2011-08-12
I *do* run the JModelica.org

I *do* run the JModelica.org installation as administrator. The strange thing is that when I installed Enthought Python Distribution Free, there was no question whatsoever about logging in as administrator. Still, Wing 101 (IDE) easily finds Python 2.7. Python 2.7 is listed in the Registry. I can go to file C:\\Python27/python.exe and run Python.

tove
Offline
Joined: 2009-04-08
What do you get if you

What do you get if you run:

reg query "HKLM\software\Python\PythonCore\2.7\InstallPath"

or (if 64 bit machine):

reg query "HKLM\software\wow6432node\Python\PythonCore\2.7\InstallPath"

in a shell?

/Tove

 

Bernt.Lie
Offline
Joined: 2011-08-12
Running either of these two

Running either of these two commands, the shell responds with:
ERROR: The system was unable to find the specified registry key or value.
But NOTE: I get exactly the same response on my laptop, where exactly the same installation procedure went smoothly, and where I have been running JModelica.org 1.7 since March or so.

tove
Offline
Joined: 2009-04-08
What about: reg query

What about:

reg query "HKCU\software\Python\PythonCore\2.7\InstallPath"

or corresponding if you are running on 64 bit windows.

Bernt.Lie
Offline
Joined: 2011-08-12
With this command (reg query

With this command (reg query "HKCU\software\Python\PythonCore\2.7\InstallPath"), I get a response:
HKEY_CURRENT_USER\software\Python\PythonCore\2.7\InstallPath
         <Default>              REG_SZ  C:\Python27\
HKEY_CURRENT_USER\software\Python\PythonCore\2.7\InstallPath\InstallGroup
---
If I try the similar command for 64-bit, I get an error message.
 
 
 

Login or register to post comments