gempy icon indicating copy to clipboard operation
gempy copied to clipboard

cannot import gempy

Open AlphaDragon009 opened this issue 2 years ago • 1 comments

Describe the bug I am trying to install gempy, but it cannot be imported. Below is the process:

Envirment: ubuntu 22.04 Intel CPU i9-9900

step1 : install gempy conda create --name env python=3.6

conda activate env

pip install gempy

step2: run python and import gempy. Error appears as below:

$python Python 3.6.13 |Anaconda, Inc.| (default, Jun 4 2021, 14:25:59) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import gempy libssl.so.1.0.0: cannot open shared object file: No such file or directory Not subsurface compatibility available Traceback (most recent call last): File "", line 1, in File /.../anaconda3/envs/model_building/lib/python3.6/site-packages/gempy/init.py", line 24, in from gempy.gempy_api import * File "/.../anaconda3/envs/model_building/lib/python3.6/site-packages/gempy/gempy_api.py", line 17, in from gempy.core.model import Project File "/.../anaconda3/envs/model_building/lib/python3.6/site-packages/gempy/core/model.py", line 20, in from gempy.plot.decorators import * File "/.../anaconda3/envs/model_building/lib/python3.6/site-packages/gempy/plot/decorators.py", line 2, in from gempy.plot.vista import GemPyToVista File "/.../anaconda3/envs/model_building/lib/python3.6/site-packages/gempy/plot/vista.py", line 26 from future import annotations ^ SyntaxError: future feature annotations is not defined

But the libssl.so.1.0.0 is there.

$ sudo find . -name libssl.so.1.0* ./anaconda3/pkgs/openssl-1.0.2u-h516909a_0/lib/libssl.so.1.0.0 ./anaconda3/pkgs/openssl-1.0.2u-h7b6447c_0/lib/libssl.so.1.0.0 ./anaconda3/envs/gempy/lib/libssl.so.1.0.0

I also try python version 3.7, they have the same issue. Thanks !

AlphaDragon009 avatar Jul 22 '22 21:07 AlphaDragon009

Hi @AlphaDragon009

do you have theano installed in your created environment? It does not appear in your step1 description. Once created the environment, you can try also to use the conda-forge feedstock: https://anaconda.org/conda-forge/gempy Further, best to use python 3.8 or 3.9 (3.10 should also work, but might give some quirks).

Japhiolite avatar Jul 26 '22 08:07 Japhiolite

Any progress here?

Japhiolite avatar Aug 17 '22 08:08 Japhiolite

Closed due to inactivity

Japhiolite avatar Sep 22 '22 08:09 Japhiolite