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

No module named 'vector_geology' #981

Open
kafahabibullah1453 opened this issue Jan 22, 2025 · 1 comment
Open

No module named 'vector_geology' #981

kafahabibullah1453 opened this issue Jan 22, 2025 · 1 comment

Comments

@kafahabibullah1453
Copy link

I have installed gempy on my device, and I tried one of the scripts available in the gempy documentation link and I got an issue.

'# Import necessary libraries
import time
import numpy as np
import os
from dotenv import dotenv_values
from vector_geology.omf_to_gempy import process_file
import gempy as gp
import gempy_viewer as gpv
from vector_geology.model_building_functions import optimize_nuggets_for_group
from gempy_engine.core.data.kernel_classes.kernel_functions import AvailableKernelFunctions

'# Start timer to track execution time
start_time = time.time()`


ModuleNotFoundError Traceback (most recent call last)
Cell In[4], line 6
4 import os
5 from dotenv import dotenv_values
----> 6 from vector_geology.omf_to_gempy import process_file
7 import gempy as gp
8 import gempy_viewer as gpv

ModuleNotFoundError: No module named 'vector_geology'

Thanks in advance!
Bests,
kafa

Appreciate any help!

@javoha
Copy link
Member

javoha commented Jan 23, 2025

Hello @kafahabibullah1453,
thanks for your question. As far as I can see the import that is causing the error is not actually part of gempy, but instead part the the vector project (https://github.com/vector-raw-materials/vector-geology).
Even though it does use gempy and seems to include a function to optimize nugget values specifically for gempy models it would be best if you create an issue on the vector github page.

Feel free to link the issue here so we can follow the development.

Cheers
jan

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

2 participants