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

Trouble with pip connection while installing the environment #2

Open
strainflowandmore opened this issue Feb 3, 2023 · 1 comment

Comments

@strainflowandmore
Copy link

I am having trouble installing the conda environment.

I am trying to install moulder, which looks like exactly what I need for an undergraduate research project where we want to some forward modeling after collecting a couple of gravity lines. So, 2D lines.

I've pasted the command I used most recently. I also tried this without the python=2.7 and got the same error. It looks like it can't find a directory on github???

I am happy to dig into the logs, but its not super clear how to do that through the documentation.

Thanks!!!

Alex

""
(py27) alexrinehart@pop-os:~/moulder$ conda env create -f environment.yml python=2.7
Collecting package metadata (repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
current version: 22.9.0
latest version: 23.1.0

Please update conda by running

$ conda update -n base -c defaults conda

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: | Ran pip subprocess with arguments:
['/home/alexrinehart/anaconda3/envs/moulder/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/alexrinehart/moulder/condaenv.inqwng54.requirements.txt']
Pip subprocess output:
Collecting git+git://github.com/santis19/fatiando@polygon_orientation (from -r /home/alexrinehart/moulder/condaenv.inqwng54.requirements.txt (line 1))
Cloning git://github.com/santis19/fatiando (to revision polygon_orientation) to /tmp/pip-req-build-TkqWPc

Pip subprocess error:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Running command git clone -q git://github.com/santis19/fatiando /tmp/pip-req-build-TkqWPc
fatal: unable to connect to github.com:
github.com[0: 140.82.114.3]: errno=Connection timed out

ERROR: Command errored out with exit status 128: git clone -q git://github.com/santis19/fatiando /tmp/pip-req-build-TkqWPc Check the logs for full command output.

failed

CondaEnvException: Pip failed
""

@santisoler
Copy link
Member

Hi @strainflowandmore.

I'm glad you are interested in this little piece of software. I must warn you (in case you didn't notice it) that this repo is not even closed to being maintained. It started as a small project to try out to put a nice GUI to the old 2d visual forward model we had in the old fatiando library. So, don't expect any bugfix or any new features in moulder.

I tried out very quickly and managed to install it and run, although I haven't run any tests to check if the results are ok. Probably for an educational project it's ok, but I would highly recommend you not to use this for a research project.

The things I did: I removed jupyter from the list of dependencies in my fatiando fork and I fixed a small problem in the url to that fork in the environment.yml file in this repo.

So, if you clone the moulder repo now, running conda env create -f environment.yml should work now. I'm using mamba instead of conda, which I find that works faster and better (specially for cases like this one where solving the dependency tree on old software can be tricky). Try conda first, and if it doesn't work, you can try with mamba .

Let me know how it goes and if there's anything else I can help you with.

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