Python 3.9 support in Cubit

Cubit Version: 2021.5 Cubit Coreform
Platform: insert platform, incl. version (Docker image with FROM continuumio/miniconda3:4.10.3)

Issue

It appears that when importing cubit from the latest miniconda3 docker image (python3.9) that the import fails. Just wondering if Cubit supports python 3.9 or has plans to in the future

We use Python 3.8.4 on Linux, so 3.9 is not supported. We don’t currently have a plan to upgrade in the near future. You can always use the Python interpreter we ship with Cubit, it’s in the bin/python3 folder.

1 Like

Thanks for the reply, good to know. I shall stick to python3.8 as much as possible.

Just in case anyone else has a similar issue, another option is to make a new environment in conda
conda create --name py38 python=3.8
conda activate py38

unless Cubit is directly interfacing with an external module like numpy, it would be easy to use the Python Stable ABI to make the software independent of the Python 3 minor version.
https://docs.python.org/3/c-api/stable.html

Also, being a module, cubit should not be explicitly linking against the python shared library.

1 Like