florian-wagner / four-phase-inversion

Manuscript and code for joint inversion of seismic refraction and electrical resistivity data to estimate water, ice, and air contents
https://doi.org/10.1093/gji/ggz402
Other
20 stars 10 forks source link

Joint Inversion #1

Open AhmedAlHeety opened 3 years ago

AhmedAlHeety commented 3 years ago

Problem description Hello, Dear Dr.Wagner In the beginning, I am a novice in python programming and I have some questions and a problem. I am currently trying to run the four-phase-inversion (synthetic and real data example ) which you provided with codes.. I am working with Anaconda and I created a specific environment as suggested in the instructions. unfortunately, I got an issue that I do not manage to run any code from A to Z. I try to run Code with (Base env) and (four-phase-inversion env). the Pygimli working with Base env, but unfortunately doesn't work with (four-phase-inversion env).

Thank you very much for your attention, Best regards. Ahmed

Operating system: Windows 10 Python version: 3.6.12 pyGIMLi version: 0 Way of installation: Conda package (64 bit)

florian-wagner commented 3 years ago

Dear Ahmed,

thank you for your interest in the code. Can you please provide the output of conda info and python -c "import pygimli; print(pygimli.__version__); import fpinv" in the four-phase-inversion environment. Thanks.

AhmedAlHeety commented 3 years ago

Thank you for your response

(four-phase-inversion) C:\Users\AHMED_PC>conda info

 **active environment : four-phase-inversion**
**active env location : C:\Users\AHMED_PC\Anaconda3\envs\four-phase-inversion**
        shell level : 2
   user config file : C:\Users\AHMED_PC\.condarc

populated config files : C:\Users\AHMED_PC.condarc conda version : 4.9.2 conda-build version : 3.18.9 python version : 3.7.4.final.0 virtual packages : __cuda=10.2=0

ModuleNotFoundError Traceback (most recent call last)

in ----> 1 import pygimli; print(pygimli.__version__) ModuleNotFoundError: No module named 'pygimli' __win=0=0 __archspec=1=x86_64 base environment : C:\Users\AHMED_PC\Anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/noarch https://conda.anaconda.org/gimli/win-64 https://conda.anaconda.org/gimli/noarch https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\AHMED_PC\Anaconda3\pkgs C:\Users\AHMED_PC\.conda\pkgs C:\Users\AHMED_PC\AppData\Local\conda\conda\pkgs envs directories : C:\Users\AHMED_PC\Anaconda3\envs C:\Users\AHMED_PC\.conda\envs C:\Users\AHMED_PC\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.9.2 requests/2.22.0 CPython/3.7.4 Windows/10 Windows/10.0.19041 administrator : False netrc file : None offline mode : False ### **python -c "import pygimli; print(pygimli.__version__); import fpinv"** ModuleNotFoundError Traceback (most recent call last) in ----> 1 import pygimli; print(pygimli.__version__); import fpinv ModuleNotFoundError: No module named 'pygimli'
AhmedAlHeety commented 3 years ago

@florian-wagner

florian-wagner commented 3 years ago

Dear @AhmedAlHeety,

as the error message states, pyGIMLi is not installed. Maybe you installed it in the base environment? How have you created the four-phase-inversion environment? With the environment.yml as stated in the instructions?

Best wishes Florian Wagner

AhmedAlHeety commented 3 years ago

Thank you, Dr. Wanger

Yes I do With the (environment.yml) as stated in the instruction

florian-wagner commented 3 years ago

Can you type the following within the four-phase-inversion environment and the folder where the environment.yml is located in the Anaconda Navigator conda env update --file environment.yml and paste the output here? Thanks!

AhmedAlHeety commented 3 years ago

(base) C:\Users\AHMED_PC>conda activate four-phase-inversion

(four-phase-inversion) C:\Users\AHMED_PC>conda env update --file environment.yml Collecting package metadata (repodata.json): done Solving environment: failed

ResolvePackageNotFound:

AhmedAlHeety commented 3 years ago

(base) C:\Users\AHMED_PC>conda activate four-phase-inversion

(four-phase-inversion) C:\Users\AHMED_PC> (four-phase-inversion) C:\Users\AHMED_PC>conda install -c gimli pybert Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: - Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed

UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:

Specifications:

Your python: python=3.6

If python is on the left-most side of the chain, that's the version you've asked for. When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to. Note that conda will not change your python version to a different minor version unless you explicitly specify that.

florian-wagner commented 3 years ago

Does the issue still exist?

AhmedAlHeety commented 3 years ago

Unfortunately, I don't know because I don't try it again.

With my best regards

On Mon, Jul 12, 2021, 10:19 PM Florian Wagner @.***> wrote:

Does the issue still exist?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/florian-wagner/four-phase-inversion/issues/1#issuecomment-878531290, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMCK5BL6WWUCD6WDKDDRGRLTXM547ANCNFSM4WNNA7SQ .