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

Unable to install in google collab #163

Open
pdewangan1977 opened this issue Jan 5, 2024 · 1 comment
Open

Unable to install in google collab #163

pdewangan1977 opened this issue Jan 5, 2024 · 1 comment

Comments

@pdewangan1977
Copy link

EQTransformer via Google Colab

Author: Hao Mai

Date created: 2021/11/14

Last modified: 2021/11/14

Description

EQTransformer is an AI-based earthquake signal detector and phase (P&S) picker based on a deep neural network with an attention mechanism. It has a hierarchical architecture specifically designed for earthquake signals. EQTransformer has been trained on global seismic data and can perform detection and arrival time picking simultaneously and efficiently. In addition to the prediction probabilities, it can also provide estimated model uncertainties.

The EQTransformer python 3 package includes modules for downloading continuous seismic data, preprocessing, performing earthquake signal detection, and phase (P & S) picking using pre-trained models, building and testing new models, and performing a simple phase association.

Developer: S. Mostafa Mousavi

Reference:

Mousavi, S.M., Ellsworth, W.L., Zhu, W., Chuang, L, Y., and Beroza, G, C. Earthquake transformer—an attentive deep-learning model for simultaneous earthquake detection and phase picking. Nat Commun 11, 3952 (2020). https://doi.org/10.1038/s41467-020-17591-w

Installation from Source

The sources for EQTransformer can be downloaded from the Github repo.

Prerequisite package: ObsPy

When ObsPy installed, restart the runtime.

Menu -> Runtime -> Restart Runtime

!pip install obspy

Clone the public repository:

! git clone https://github.com/smousavi05/EQTransformer

Once you have a copy of the source, you can cd to EQTransformer directory

%cd EQTransformer

Rewrite setup.py :

'numpy==1.20.3' -> 'numpy==1.19.2'

Install

Need Restart Runtime again when this cell running is done.

Menu -> Runtime -> Restart Runtime

!pip install -e .

Error !!

Obtaining file:///content/EQTransformer
Preparing metadata (setup.py) ... done
Collecting pytest==7.1.2 (from EQTransformer==0.1.61)
Downloading pytest-7.1.2-py3-none-any.whl (297 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 297.0/297.0 kB 6.3 MB/s eta 0:00:00
Collecting numpy==1.19.2 (from EQTransformer==0.1.61)
Downloading numpy-1.19.2.zip (7.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 71.8 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (pyproject.toml) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@hanjpk
Copy link

hanjpk commented Jul 27, 2024

any updates? i cant install it too

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