MPh-py / MPh

Pythonic scripting interface for Comsol Multiphysics
https://mph.readthedocs.io
MIT License
265 stars 67 forks source link

MacBook with m1 can not locate any Comsol installation When use Mph #143

Closed drench1 closed 1 year ago

drench1 commented 1 year ago

My M1 chip MacBook encounters an error "RuntimeError: Could not locate any Comsol installation" when calling the Mph library. However, I have already installed Comsol 6.1 and tried adding the address of Comsol 6.1 in the zshrc file, but it still doesn't work.How to fix it?

drench1 commented 1 year ago

@pnsaeta Thanks for answering. #137 I summarize the solution. First, we input

pip show mph

so that we can locate it and copy the location to the Finder to find the "discovery.py".

Then find the line 42 of "discovery.py" and modulate:

'Darwin': ['macarm64', 'maci64'],

john-hen commented 1 year ago

Duplicate of issue #80.