Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issues #974

Open
Wrobs38 opened this issue Jan 3, 2025 · 4 comments
Open

Installation issues #974

Wrobs38 opened this issue Jan 3, 2025 · 4 comments

Comments

@Wrobs38
Copy link

Wrobs38 commented Jan 3, 2025

Describe the bug
Hi,
I have tried to install Gempy for use in jupyter notebook. But at the moment, gempy-viewer seems to throw an error message.
I am on Win10 Enterprise

To Reproduce

I created a new environment (python=3.11), and ran:

pip install gempy[opt] pyvista

This is the list of all packages installed:

packages in environment at C:\Users\h159865\AppData\Local\miniforge3\envs\gempy_env2:
Name Version Build Channel
bzip2 1.0.8 h2466b09_7 conda-forge
ca-certificates 2024.12.14 h56e8100_0 conda-forge
certifi 2024.12.14 pypi_0 pypi
charset-normalizer 3.4.1 pypi_0 pypi
contourpy 1.3.1 pypi_0 pypi
cycler 0.12.1 pypi_0 pypi
fonttools 4.55.3 pypi_0 pypi
gempy 2024.2.0.2 pypi_0 pypi
gempy-engine 2024.2.0 pypi_0 pypi
gempy-plugins 2024.1.0 pypi_0 pypi
gempy-viewer 2024.2.0 pypi_0 pypi
idna 3.10 pypi_0 pypi
imageio 2.36.1 pypi_0 pypi
kiwisolver 1.4.8 pypi_0 pypi
lazy-loader 0.4 pypi_0 pypi
libexpat 2.6.4 he0c23c2_0 conda-forge
libffi 3.4.2 h8ffe710_5 conda-forge
liblzma 5.6.3 h2466b09_1 conda-forge
libsqlite 3.47.2 h67fdade_0 conda-forge
libzlib 1.3.1 h2466b09_2 conda-forge
matplotlib 3.10.0 pypi_0 pypi
networkx 3.4.2 pypi_0 pypi
numpy 2.2.1 pypi_0 pypi
openssl 3.4.0 h2466b09_0 conda-forge
packaging 24.2 pypi_0 pypi
pandas 2.2.3 pypi_0 pypi
pillow 11.1.0 pypi_0 pypi
pip 24.3.1 pyh8b19718_2 conda-forge
platformdirs 4.3.6 pypi_0 pypi
pooch 1.8.2 pypi_0 pypi
pyparsing 3.2.1 pypi_0 pypi
python 3.11.11 h3f84c4b_1_cpython conda-forge
python-dateutil 2.9.0.post0 pypi_0 pypi
python-dotenv 1.0.1 pypi_0 pypi
pytz 2024.2 pypi_0 pypi
pyvista 0.44.2 pypi_0 pypi
requests 2.32.3 pypi_0 pypi
scikit-image 0.25.0 pypi_0 pypi
scipy 1.15.0 pypi_0 pypi
scooby 0.10.0 pypi_0 pypi
setuptools 75.6.0 pyhff2d567_1 conda-forge
six 1.17.0 pypi_0 pypi
tifffile 2024.12.12 pypi_0 pypi
tk 8.6.13 h5226925_1 conda-forge
typing-extensions 4.12.2 pypi_0 pypi
tzdata 2024.2 pypi_0 pypi
ucrt 10.0.22621.0 h57928b3_1 conda-forge
urllib3 2.3.0 pypi_0 pypi
vc 14.3 ha32ba9b_23 conda-forge
vc14_runtime 14.42.34433 he29a5d6_23 conda-forge
vs2015_runtime 14.42.34433 hdffcdeb_23 conda-forge
vtk 9.3.1 pypi_0 pypi
wheel 0.45.1 pyhd8ed1ab_1 conda-forge

Then in jupyter notebook, I run this:

import numpy as np
import gempy as gp
import gempy_viewer as gpv
from gempy_engine.core.data.stack_relation_type import StackRelationType

and I get the error message:

**---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[8], line 4
2 import numpy as np
3 import gempy as gp
----> 4 import gempy_viewer as gpv
5 from gempy_engine.core.data.stack_relation_type import StackRelationType

ModuleNotFoundError: No module named 'gempy_viewer'**

it looks like an error with gempy_viewer

Any idea how I can solve it?

Thanks a lot
regards
JC

@NilsChudalla
Copy link
Member

Dear @Wrobs38,

I was not able to reproduce the error. I am able to run the import without error in a fresh environment on Windows 11. I will try install the specific versions next. Just to be extra-sure: did you activate the environment? 😬

@Wrobs38
Copy link
Author

Wrobs38 commented Jan 7, 2025

Hi @NilsChudalla,
Yes, absolutely. I activate my environment from the minifoge prompt, then start jupyter notebook from the prompt and then run the code above in the notebook.
Not sure why it is not working. Any other idea?
thanks for your help

@javoha
Copy link
Member

javoha commented Jan 7, 2025

Hi @Wrobs38,

this is really interesting. So if you do not import gempy_viewer, the part of the code that does not use it still works?
We also recommend python=3.12.x and even though I don't think this is the issue here it may make sense to check.

@Wrobs38
Copy link
Author

Wrobs38 commented Jan 7, 2025

Hi @javoha
i have created a new environment in python =3.12
That is correct, if i run this:

# Importing necessary libraries
import numpy as np
import gempy as gp
#import gempy_viewer as gpv
from gempy_engine.core.data.stack_relation_type import StackRelationType

the cell runs.

But this:
# Importing necessary libraries
import numpy as np
import gempy as gp
import gempy_viewer as gpv
from gempy_engine.core.data.stack_relation_type import StackRelationType

does not work.

the issue seems to be with gempy_viewer.
i also tried running : import gempy-viewer as gpv
just because that is how it is spelled in the list of libraries, but that led to a spelling error (obviously :-))

Let me know if you have another suggestion of something else to try
thanks a lot
JC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants