Giter Club home page Giter Club logo

Comments (10)

rmodrak avatar rmodrak commented on June 15, 2024

these instructions are now updated:
https://uafgeotools.github.io/mtuq/install/env_conda.html

and the CI tests now pass, so I'll accept the pull request soon:
#188

from mtuq.

rmodrak avatar rmodrak commented on June 15, 2024

Julien (@thurinj) points out:

conda develop may no longer be supported by conda (see here).

from mtuq.

rmodrak avatar rmodrak commented on June 15, 2024

Thanks Julien for the helpful info. I wasn't aware conda develop . had so many problems.

I agree, it seems like we should ultimately go back to pip install -e .

To do this, we would need an alternative workaround for the installation problem described at top. (Here again are the details about how the installation failed.)

Am I describing the issue correctly? Please let me know if there are any comments/corrections.

from mtuq.

rmodrak avatar rmodrak commented on June 15, 2024

Looking closely at conda reveals a lot of apparent problems.

For example, I start by downloading the latest version of miniconda for MacOS Intel from this site:
https://docs.conda.io/en/main/miniconda.html

But then after running the installation script and creating an environment I get

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

So I try updating to version 22.9.0:

conda update -n base -c defaults conda

But this apparently breaks things so that the following fails

conda create --name mtuq python=3

from mtuq.

thurinj avatar thurinj commented on June 15, 2024

Hi Ryan,

My suggestion for the installation instructions under the most recent version of conda would be to do the following:

Download the MTUQ source code:

git clone https://github.com/uafgeotools/mtuq.git
cd mtuq

Use conda to create a Python environment and install mtuq:

conda config --prepend channels conda-forge
conda env create -n mtuq --file env.yaml

The env.yaml file will install mtuq in editable mode by default, and install all of mtuq's dependencies.

Unpack seismic waveforms used by examples:

bash ./data/examples/unpack.bash
bash ./data/tests/unpack.bash

Finally, install PyGMT:

conda install pygmt

I think by default, the environment will be a python 3.x version. But we can still specify this

conda env create -n mtuq_ryan --file env.yaml python=3

I cannot replicate the error for conda create --name mtuq python=3 on my conda installation (also version 22.9.0)

from mtuq.

rmodrak avatar rmodrak commented on June 15, 2024

Hi Julien,
Thanks for the detailed suggestion-- I've tried implementing it in the most recent pull request.
If you see any opportunity for further improvement, please me know.
Thanks,
Ryan

from mtuq.

bch0w avatar bch0w commented on June 15, 2024

Hope I can tack onto this thread instead of starting a new issue. Not sure if this is known already but I didn't see it posted anywhere on the install instructions: seems like instaseis is not compatible with the ARM architecture of the M1 Mac?

(mtuq) [mtuq] $ conda env update --file env.yaml
Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound:
  - instaseis

Attempted on an M1 Mac running macOS 13.0, Conda 4.12.0, Python3.11 (also tried 3.8). I was able to successfully install MTUQ on my Linux machine so I know the install instructions should work.

@thurinj are you able to install instaseis/MTUQ on your M1?

from mtuq.

rmodrak avatar rmodrak commented on June 15, 2024

from mtuq.

thurinj avatar thurinj commented on June 15, 2024

Hi @bch0w ,

I am able to create a new environment using the env.yaml file. I encounter an oddity though:

conda env create -n mtuq --file env.yaml
...
...
...
SafetyError: The package for instaseis located at /Users/julienthurin/opt/anaconda3/pkgs/instaseis-1.4.2-py38hab5af3e_2
appears to be corrupted. The path 'lib/python3.8/site-packages/instaseis/database_interfaces/base_instaseis_db.py'
has an incorrect size.
  reported size: 39911 bytes
  actual size: 40028 bytes

But the environment creation works anyway. My specs are:
M1 Mac with OSX 11.5.2
conda ver. 22.9.0
The Python version that gets installed when installing with the yaml file is Python 3.8.15

Not sure how to get rid of the SafetyError to try it out again.

(Misc information, the three critical packages that caused us issues in the past are almost all up to date, when installing pygmt afterward.):

  • obspy-1.4.0
  • gmt-6.4.0
  • pygmt-v0.7.0

from mtuq.

rmodrak avatar rmodrak commented on June 15, 2024

Update: MTUQ installation has been working well for about a year now. PyGMT seems to be more mature and PyGMT installation without problems. The main remaining issue now is that Instaseis does not install on new Mac hardware. Closing this now, but feel free to open a more up-to-date issue if desired.

from mtuq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.