RuntimeError
: Could not locate any Comsol installation
#138
Replies: 1 comment 2 replies
-
Hi. First off, no need to add those extra lines to You are right in that the discovery "is expected" to work in your case. I haven't tested on Ubuntu 18 with Comsol 6.0, but don't see how that would make a difference. MPh comes with a test suite. If you download (or ❯ python tools/test.py discovery --log
Running test group "discovery".
[00:00.174] Searching system for available Comsol back-ends.
[00:00.174] Searching file system for Comsol executables.
[00:00.174] Looking for Comsol executable on system search path.
[00:00.174] Running shell command "which comsol".
[00:00.178] Command response was "/cluster/apps/nss/comsol/6.0/x86_64/bin/comsol".
[00:00.178] Found Comsol executable "/cluster/apps/nss/comsol/6.0/x86_64/bin/comsol".
[00:00.178] Checking executable "/cluster/apps/nss/comsol/6.0/x86_64/bin/comsol".
[00:00.179] Found Java bridge configuration "/cluster/apps/nss/comsol/6.0/x86_64/bin/glnxa64/comsol.ini".
[00:00.179] System architecture is "glnxa64".
[00:00.180] Java VM at relative path "../../java/glnxa64/jre/lib/server/libjvm.so".
[00:00.181] Root folder is "/cluster/apps/nss/comsol/6.0/x86_64".
[00:00.963] Reported version information is "COMSOL Multiphysics 6.0.0.318".
[00:00.963] Assigned name "6.0" to this installation.
Passed in 1 s. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am having some trouble locating the comsol installation when calling mph.start()... the error I get is "RuntimeError: Could not locate any Comsol installation."
It seems strange, as comsol is installed on the same machine that I am running the Python script on. Indeed, it isn't installed in the default location, however, I have added some lines to my bashrc file to help mph find the shared libraries (shown below). Additionally, entering the command 'comsol' in my terminal successfully starts up the application, and I am using version 1.2.3 of the MPh package, which I believe includes comsol installations found on PATH in discovery.
Any advice would be appreciated :)
Best,
Isaac
lines in bashrc:
Specs:
Linux UBUNTU 18.04.6 LTS (GNU/Linux 5.4.0-96-generic x86_64)
COMSOL 6.0
Beta Was this translation helpful? Give feedback.
All reactions