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

About a problem for installation of the ISPAQ on the MACOSX #10

Closed
YANG-JAEYEOL opened this issue Feb 12, 2022 · 3 comments
Closed

About a problem for installation of the ISPAQ on the MACOSX #10

YANG-JAEYEOL opened this issue Feb 12, 2022 · 3 comments

Comments

@YANG-JAEYEOL
Copy link

Dear Sir,

I am trying to install the ispaq package. But I have faced problem as below.

Could you please let me know how to solve this problem?

Thank you in advance.

(ispaq) jaeyeol-ui-MacBook-Pro:ispaq jaeyeolyang$ export MACOSX_DEPLOYMENT_TARGET=10.9
(ispaq) jaeyeol-ui-MacBook-Pro:ispaq jaeyeolyang$ ./run_ispaq.py -I
2022-02-12 21:09:16 - INFO - Running ISPAQ version 3.0.0 on Sat Feb 12 21:09:16 2022
Traceback (most recent call last):
File "./run_ispaq.py", line 15, in
main()
File "/Users/jaeyeolyang/ispaq/ispaq/ispaq.py", line 149, in main
import obspy
File "/Users/jaeyeolyang/anaconda3/envs/ispaq/lib/python3.8/site-packages/obspy/init.py", line 39, in
from obspy.core.utcdatetime import UTCDateTime # NOQA
File "/Users/jaeyeolyang/anaconda3/envs/ispaq/lib/python3.8/site-packages/obspy/core/init.py", line 124, in
from obspy.core.utcdatetime import UTCDateTime # NOQA
File "/Users/jaeyeolyang/anaconda3/envs/ispaq/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 27, in
from obspy.core.util.deprecation_helpers import ObsPyDeprecationWarning
File "/Users/jaeyeolyang/anaconda3/envs/ispaq/lib/python3.8/site-packages/obspy/core/util/init.py", line 27, in
from obspy.core.util.base import (ALL_MODULES, DEFAULT_MODULES,
File "/Users/jaeyeolyang/anaconda3/envs/ispaq/lib/python3.8/site-packages/obspy/core/util/base.py", line 36, in
from obspy.core.util.misc import to_int_or_zero, buffered_load_entry_point
File "/Users/jaeyeolyang/anaconda3/envs/ispaq/lib/python3.8/site-packages/obspy/core/util/misc.py", line 214, in
loadtxt(np.array([0]), ndmin=1)
File "/Users/jaeyeolyang/anaconda3/envs/ispaq/lib/python3.8/site-packages/numpy/lib/npyio.py", line 1086, in loadtxt
ncols = len(usecols or split_line(first_line))
File "/Users/jaeyeolyang/anaconda3/envs/ispaq/lib/python3.8/site-packages/numpy/lib/npyio.py", line 977, in split_line
line = line.split(comment, 1)[0]
AttributeError: 'numpy.int64' object has no attribute 'split'

@xiaot1228
Copy link

你好请问问题解决了吗,我也碰到类似问题但是是linux下,好像和系统无关

@gillian-earthscope
Copy link
Contributor

Thank you for this problem report. I have recreated this result, and the issue is that the latest numpy version 1.22 is incompatible with ISPAQ. A solution is to run the following:

conda deactivate (if you are in the ispaq environment)
conda env remove --name ispaq
conda create --name ispaq -c conda-forge python=3.8 obspy=1.2.2 numpy=1.21.4
conda activate ispaq
conda install -c conda-forge --file ispaq-conda-install.txt

and then continue with the installation.

@YANG-JAEYEOL
Copy link
Author

Thanks.

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

3 participants