Cannot open Cubit-2023.4 on Mac

Dear all,
I installed Cubit-Coreform-2023.4 on my computer (MacOS 10.15.6), but I cannot open it. I have the following message:


For both answers that I can give, it says that it unexpectedly quit.
I tried to uninstalled it and install it again but I still have the same problem.
I have other versions of Cubit on my computer: 2021.3 and 2021.5 and Trelis-16.5.
The version 2021.3 is still working well.

From previous topics here I executed this command on a terminal:

export CUBIT_VERBOSE=5
/Applications/Coreform-Cubit-2023.4.app/Contents/MacOS/Coreform-Cubit-2023.4

Here is the output:

[2023-06-19 16:44:48.927] [app_logger] [info] Using gui
[2023-06-19 16:44:56.583] [app_logger] [trace] rlm_dir: /Applications/Coreform-Cubit-2023.4.app/Contents/licenses:/Users/cresseaj/Library/Preferences/Coreform/licenses
usb support disabled
[2023-06-19 16:44:56.583] [app_logger] [debug] /Applications/Coreform-Cubit-2023.4.app/Contents/licenses:/Users/cresseaj/Library/Preferences/Coreform/licenses
[2023-06-19 16:44:56.586] [app_logger] [debug] RLM initialized
[2023-06-19 16:44:56.586] [app_logger] [info] RLM session initialized
Python version 2 selected
[2023-06-19 16:44:56.664] [app_logger] [error] Unable to initialize Python interpreter, exiting
ERROR: Unable to initialize Python interpreter!

Can you help me to open Cubit?
Thank you in advance

Juliette

It seems like you’ve got another version of Python in your environment that’s conflicting with the version of Python we’re shipping with Cubit 2023.4. Do you have the PYTHONHOME environment variable set? What about DYLD_LIBRARY_PATH?

I do not have any PYTHONHOME or DYLD_LIBRARY_PATH set.

Open up a terminal and cd to /Applications/Coreform-Cubit-2023.4.app/Contents. Do a find -iname python3, you should get a path similar to ./lib/python3/Python.framework/Versions/python3. Can you run that python executable and load up into a Python prompt?

I have a folder 3.8 after Versions. I can execute python3.

(base) cresseaj@pers-178-133 ~ % cd /Applications/Coreform-Cubit-2023.4.app/Contents
(base) cresseaj@pers-178-133 Contents % find . -iname python3
./lib/python3
./lib/python3/Python.framework/Versions/3.8/python3
(base) cresseaj@pers-178-133 Contents % cd ./lib/python3/Python.framework/Versions/3.8
(base) cresseaj@pers-178-133 3.8 % ls
include            libpython3.8.dylib python3.8
lib                python3
(base) cresseaj@pers-178-133 3.8 % ./python3
Python 3.8.15 (default, Nov  1 2022, 14:31:27) 
[Clang 11.1.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

OK, that’s good. Try setting PYTHONHOME to that Versions/3.8 folder and running Cubit again.

I set the PYTHONHOME to that path

echo $PYTHONHOME
/Applications/Coreform-Cubit-2023.4.app/Contents/lib/python3/Python.framework/Versions/3.8/

But it is still not working, with the same error.

Try running it with the arg -pythonversion 3.

It works well when I open it from the terminal with this argument.
Still not by clicking on the icon.

Thank you very much for helping me so fast.

Juliette

I think there may be a way to change what the icon runs when you click, maybe by accessing the options on the icon? If you’re able to include the -pythonversion 3 arg in the icon invocation, that should fix it.

I will try to make it. But it is really great that I can open it now. Thank you