Error while testing Qopen


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

I appreciate your help,


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.