Error while testing Qopen

Greetings,

I recently installed Qopen, but when I try to execute the command “qopen-runtests”, I got the following error:

Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\carli\anaconda3\envs\qenv\lib\site-packages\qopen_init_.py”, line 3, in
from qopen.core import run
File “C:\Users\carli\anaconda3\envs\qenv\lib\site-packages\qopen\core.py”, line 42, in
import obspy
File “C:\Users\carli\anaconda3\envs\qenv\lib\site-packages\obspy_init_.py”, line 39, in
from obspy.core.utcdatetime import UTCDateTime # NOQA
File “C:\Users\carli\anaconda3\envs\qenv\lib\site-packages\obspy\core_init_.py”, line 124, in
from obspy.core.utcdatetime import UTCDateTime # NOQA
File “C:\Users\carli\anaconda3\envs\qenv\lib\site-packages\obspy\core\utcdatetime.py”, line 27, in
from obspy.core.util.deprecation_helpers import ObsPyDeprecationWarning
File “C:\Users\carli\anaconda3\envs\qenv\lib\site-packages\obspy\core\util_init_.py”, line 27, in
from obspy.core.util.base import (ALL_MODULES, DEFAULT_MODULES,
File “C:\Users\carli\anaconda3\envs\qenv\lib\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 “C:\Users\carli\anaconda3\envs\qenv\lib\site-packages\obspy\core\util\misc.py”, line 214, in
loadtxt(np.array([0]), ndmin=1)
File “C:\Users\carli\anaconda3\envs\qenv\lib\site-packages\numpy\lib\npyio.py”, line 1086, in loadtxt
ncols = len(usecols or split_line(first_line))
File “C:\Users\carli\anaconda3\envs\qenv\lib\site-packages\numpy\lib\npyio.py”, line 977, in split_line
line = line.split(comment, 1)[0]
AttributeError: ‘numpy.int32’ object has no attribute ‘split’

I appreciate your help,

Carlos

1 Like

Hi Carlos,

this is an error in obspy. See Incompatibility with numpy 1.22 · Issue #2912 · obspy/obspy · GitHub

As a work-around please install ObsPy’s dev version or downgrade numpy.

1 Like

Thank you Tom,

I downgraded numpy to 1.21.5 version and it worked.