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

Joint Inversion #1

Open
AhmedAlHeety opened this issue Jan 21, 2021 · 10 comments
Open

Joint Inversion #1

AhmedAlHeety opened this issue Jan 21, 2021 · 10 comments

Comments

@AhmedAlHeety
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

@florian-wagner

@florian-wagner
Copy link
Owner

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
Copy link
Author

Thank you, Dr. Wanger

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

@florian-wagner
Copy link
Owner

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
Copy link
Author

(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:

  • pybert=2.2.10

@AhmedAlHeety
Copy link
Author

(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:

  • pybert -> python[version='>=3.7,<3.8.0a0|>=3.8,<3.9.0a0']

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
Copy link
Owner

Does the issue still exist?

@AhmedAlHeety
Copy link
Author

AhmedAlHeety commented Jul 12, 2021 via email

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