Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Could not locate any Comsol installation. OS X #174

Closed
JohannesScheyerle opened this issue Jun 8, 2024 · 3 comments
Closed
Labels
duplicate Issue or pull request already exists.

Comments

@JohannesScheyerle
Copy link

Hey there,

it seems like MPh is going to lift up my COMSOL process quite big, so thanks for that in advanve!

I have the same issue like
#71

But I am using OS X and my comsol location is

/Applications/COMSOL61/Multiphysics/

And I don't know where the installers default location for COMSOL is in OS X and how I change my location.

Thanks for you help in advance!

@john-hen
Copy link
Collaborator

john-hen commented Jun 8, 2024

Hi. That's not the same issue, just the same error message. (Which I'll have to change to "Could not find a compatible Comsol installation".)

More likely, you've run into issue #80.

@JohannesScheyerle
Copy link
Author

Hey. Thanks for this tip. I tried replacing "maci64" with "macarm64" or add "macarm64" to the architectures list on line 42, but it's a bit strange for me. I am new to all this so sorry in advance:
I only can find exactly one instance of "maci64" in discovery.py and this is line 42. Why did people find more? So should I add or replace "macarm64" in line 42. I already tried a few options and it did not work. But it worked for other people. And since I am a little noob in such things, could you provide a step by step guide to what to do, or maybe even or only the exact syntax for line 42?

Thanks a lot!

@JohannesScheyerle
Copy link
Author

nevermind. I found 2 places where mph was installed so i also found 2 discovery.py files. Changed both and it worked. Thanks you so much for mph!! :)

john-hen added a commit to john-hen/MPh that referenced this issue Jun 9, 2024
The old error message ("Could not locate any Comsol installation.") was
often misunderstood to mean that MPh somehow failed to find any
installed Comsol whatsoever, when in fact it did, but discarded it for
one reason or another.

This usually happens if the folder structure of the Comsol installation
is different from what we expect. Whether it's an old Comsol version or
a new CPU architecture. We don't even want to try and start those
unfamiliar installations.

Relates to issue MPh-py#174.
john-hen added a commit that referenced this issue Jun 9, 2024
The old error message ("Could not locate any Comsol installation.") was
often misunderstood to mean that MPh somehow failed to find any
installed Comsol whatsoever, when in fact it did, but discarded it for
one reason or another.

This usually happens if the folder structure of the Comsol installation
is different from what we expect. Whether it's an old Comsol version or
a new CPU architecture. We don't even want to try and start those
unfamiliar installations.

Relates to issue #174.
@john-hen john-hen closed this as completed Jun 9, 2024
@john-hen john-hen added the duplicate Issue or pull request already exists. label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue or pull request already exists.
Projects
None yet
Development

No branches or pull requests

2 participants