-
Notifications
You must be signed in to change notification settings - Fork 4
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
the problem of QuakeLabeler used in the Ubuntu #5
Comments
Thanks for reporting the issues. Did the AttributeError hint which line raises the error? I'd like to fix it in recent days. |
I believe this arises from an unreported version conflict between |
thank you. I will try it.
…---Original---
From: "Pascal ***@***.***>
Date: Thu, Feb 17, 2022 23:20 PM
To: ***@***.***>;
Cc: "Damin ***@***.******@***.***>;
Subject: Re: [maihao14/QuakeLabeler] the problem of QuakeLabeler used in the Ubuntu (Issue #5)
I believe this arises from an unreported version conflict between obspy=1.2.2 and numpy=1.22.2 (installed by default). The culprit is in the misc.py file in the core module of obspy. This can be fixed by installing numpy=1.21.5 in your Conda environment: conda install numpy=1.21.5, and then re-installing QuakeLabeler.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
After I create the python environment needed by QuakeLabeler and install it in my Ubuntu computer, there was the problem, "AttributeError: 'numpy.int64' object has no attribute 'split'" when I execute QuakeLabeler (quakelabeler) in the terminal.
“”“
Traceback (most recent call last):
File "/home/xxx/anaconda3/envs/slc/bin/QuakeLabeler", line 33, in
sys.exit(load_entry_point('QuakeLabeler', 'console_scripts', 'QuakeLabeler')())
File "/home/xxx/anaconda3/envs/slc/bin/QuakeLabeler", line 25, in importlib_load_entry_point
return next(matches).load()
File "/home/xxx/anaconda3/envs/slc/lib/python3.8/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/home/xxx/anaconda3/envs/slc/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 843, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/xxx/EQ_Detection/QuakeLabeler/quakelabeler/init.py", line 5, in
from .classes import QuakeLabeler, Interactive, CustomSamples, QueryArrival, BuiltInCatalog, MergeMetadata, GlobalMaps
File "/home/xxx/EQ_Detection/QuakeLabeler/quakelabeler/classes.py", line 35, in
from obspy.core.utcdatetime import UTCDateTime
File "/home/xxx/.local/lib/python3.8/site-packages/obspy/init.py", line 39, in
from obspy.core.utcdatetime import UTCDateTime # NOQA
File "/home/xxx/.local/lib/python3.8/site-packages/obspy/core/init.py", line 124, in
from obspy.core.utcdatetime import UTCDateTime # NOQA
File "/home/xxx/.local/lib/python3.8/site-packages/obspy/core/utcdatetime.py", line 27, in
from obspy.core.util.deprecation_helpers import ObsPyDeprecationWarning
File "/home/xxx/.local/lib/python3.8/site-packages/obspy/core/util/init.py", line 27, in
from obspy.core.util.base import (ALL_MODULES, DEFAULT_MODULES,
File "/home/xxx/.local/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 "/home/xxx/.local/lib/python3.8/site-packages/obspy/core/util/misc.py", line 214, in
loadtxt(np.array([0]), ndmin=1)
File "/home/xxx/anaconda3/envs/slc/lib/python3.8/site-packages/numpy/lib/npyio.py", line 1086, in loadtxt
ncols = len(usecols or split_line(first_line))
File "/home/xxx/anaconda3/envs/slc/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'
"”"
The text was updated successfully, but these errors were encountered: