Coreform Cubit 2020.2 cannot find python library libpython3.8.so.1.0

Hi,

I am learning to use python with Coreform 2020.2. I would like to open python from the command line terminal. Below are the steps that I am taking. It looks like it can’t find the library “libpython3.8.so.1.0” — I verified that the library exist in the python directory. Could you let me know how to solve this problem?

I am using Ubuntu 18.04.5 LTS.

Thank you,
Josimar

/home/josimar/Documents/Work/Resources/Software/Coreform/Coreform-Cubit-2020.2/bin/python3$ ls -lrth
total 19M

-rwxr-xr-x 1 josimar josimar  19M Nov  5 08:18 libpython3.8.so.1.0
-rwxr-xr-x 1 josimar josimar  46K Nov 17 14:12 python3.8
-rwxr-xr-x 1 josimar josimar 245K Jan  9 20:39 libcubit_python3.so
drwxr-xr-x 3 josimar josimar 4.0K Jan  9 20:39 lib
lrwxrwxrwx 1 josimar josimar    9 Jan  9 20:39 python3 -> python3.8
lrwxrwxrwx 1 josimar josimar   19 Jan  9 20:39 libpython3.8.so -> libpython3.8.so.1.0
drwxr-xr-x 3 josimar josimar 4.0K Jan  9 20:39 include

/home/josimar/Documents/Work/Resources/Software/Coreform/Coreform-Cubit-2020.2/bin/python3$ ./python3
./python3: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

Below is the other way that I am trying to import cubit from python:

Python 3.6.9 (default, Jan 26 2021, 15:33:00) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append("/home/josimar/Documents/Work/Resources/Software/Coreform/Coreform-Cubit-2020.2/bin")
>>> import cubit
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/josimar/Documents/Work/Resources/Software/Coreform/Coreform-Cubit-2020.2/bin/cubit.py", line 29, in <module>
    from cubit3 import *
  File "/home/josimar/Documents/Work/Resources/Software/Coreform/Coreform-Cubit-2020.2/bin/cubit3.py", line 15, in <module>
    import _cubit3
ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

Hi there, just wanted to know if you had a chance to take a look at this? Thank you in advance!

@jsilva.mit

Sorry for the inconvenience, we’re looking into this!

@jsilva.mit

Do you happen to have an environment variable called PYTHONHOME?

Hi @gvernon, no I do not.

When I type:

echo $PYTHONHOME

it is empty value.

thanks!

Hi @gvernon,

Do you have any updates on this?

Thank you,
Josimar