#92946 Report by node miguels-N56JN covering 759 tests from 45 modules resulted into 569 errors

Report

ObsPy Version
1.1.0
Continuous Integration
-
GitHub Pull Request
-
Report File
XML Document
Total Runtime
24.6 sec
Report Date/Time
2018-03-09 10:09:31

System / Python

Architecture
64bit
Machine
x86_64
Node
miguels-N56JN
Processor
x86_64
Python Compiler
GCC 5.4.0 20160609
Python Implementation
CPython
Python Version
2.7.12
Release
4.4.0-112-generic
System
Linux
Version
#135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018

Dependencies

cartopy
---
decorator
4.0.6
flake8
---
future
0.15.2
geographiclib
---
lxml.etree
3.5.0
m2crypto
---
matplotlib
1.5.1
mock
---
mpl_toolkits.basemap
---
numpy
1.11.0
pep8-naming
---
pyflakes
---
pyimgur
---
pyproj
---
requests
2.9.1
scipy
0.17.0
setuptools
20.7.0
shapefile
---
sqlalchemy
1.0.11

Modules (45)

Module Errors /
Failures
Tracebacks
obspy.clients.arclink Not tested -
obspy.clients.earthworm Not tested -
obspy.clients.fdsn Not tested -
obspy.clients.filesystem 1 1
obspy.clients.iris Not tested -
obspy.clients.neic Not tested -
obspy.clients.nrl Not tested -
obspy.clients.seedlink Not tested -
obspy.clients.seishub Not tested -
obspy.clients.syngine Not tested -
obspy.core 1 2
obspy.db - -
obspy.geodetics 2 3 4
obspy.imaging 1 5
obspy.io.ah 5 6 7 8 9 10
obspy.io.arclink 4 11 12 13 14
obspy.io.ascii 20 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
obspy.io.cmtsolution 9 35 36 37 38 39 40 41 42 43
obspy.io.cnv 1 44
obspy.io.css 7 45 46 47 48 49 50 51
obspy.io.gcf 9 52 53 54 55 56 57 58 59 60
obspy.io.gse2 44 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
obspy.io.iaspei 7 105 106 107 108 109 110 111
obspy.io.json 4 112 113 114 115
obspy.io.kinemetrics 7 116 117 118 119 120 121 122
obspy.io.kml 3 123 124 125
obspy.io.mseed 1 126
obspy.io.ndk 16 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
obspy.io.nied 10 143 144 145 146 147 148 149 150 151 152
obspy.io.nlloc 10 153 154 155 156 157 158 159 160 161 162
obspy.io.nordic 19 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
obspy.io.pdas 3 182 183 184
obspy.io.pde 12 185 186 187 188 189 190 191 192 193 194 195 196
obspy.io.quakeml 26 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
obspy.io.reftek 18 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
obspy.io.sac 61 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
obspy.io.scardec 4 302 303 304 305
obspy.io.seg2 1 306
obspy.io.segy 46 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352
obspy.io.seisan 7 353 354 355 356 357 358 359
obspy.io.seiscomp 42 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401
obspy.io.sh 12 402 403 404 405 406 407 408 409 410 411 412 413
obspy.io.shapefile 1 414
obspy.io.stationtxt 10 415 416 417 418 419 420 421 422 423 424
obspy.io.stationxml 17 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441
obspy.io.wav 7 442 443 444 445 446 447 448
obspy.io.win 2 449 450
obspy.io.xseed 57 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507
obspy.io.y 4 508 509 510 511
obspy.io.zmap 14 512 513 514 515 516 517 518 519 520 521 522 523 524 525
obspy.realtime 2 526 527
obspy.scripts 2 528 529
obspy.signal 1 530
obspy.taup 39 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569
Summary 569 569

Tracebacks (569)

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/clients/filesystem/tests/test_sds.py", line 215, in test_sds_report
with open(html_regex_file, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/clients/filesystem/tests/data/sds_report.regex'
>>> Cannot import test suite for module obspy.core due to:
----------------------------------------------------------
File "/usr/bin/obspy-runtests", line 9, in <module>
load_entry_point('obspy==1.1.0', 'console_scripts', 'obspy-runtests')()
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 738, in main
errors = run(argv, interactive)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 706, in run
pr_url=args.pr_url)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 533, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 154, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "/usr/lib/python2.7/unittest/loader.py", line 115, in loadTestsFromName
test = obj()
File "/usr/lib/python2.7/dist-packages/obspy/core/tests/__init__.py", line 17, in suite
add_unittests(suite, MODULE_NAME)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 72, in add_unittests
fromlist=[native_str("obspy")])
File "/usr/lib/python2.7/dist-packages/obspy/core/tests/test_util_misc.py", line 14, in <module>
from obspy.core.compatibility import mock
ImportError: cannot import name mock
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/geodetics/tests/test_util_flinnengdahl.py", line 25, in test_coordinates
with open(self.samples_file, 'r') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/geodetics/tests/data/flinnengdahl.csv'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/geodetics/tests/test_util_flinnengdahl.py", line 44, in test_script
with open(self.samples_file, 'r') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/geodetics/tests/data/flinnengdahl.csv'
>>> Cannot import test suite for module obspy.imaging due to:
-------------------------------------------------------------
File "/usr/bin/obspy-runtests", line 9, in <module>
load_entry_point('obspy==1.1.0', 'console_scripts', 'obspy-runtests')()
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 738, in main
errors = run(argv, interactive)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 706, in run
pr_url=args.pr_url)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 533, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 154, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "/usr/lib/python2.7/unittest/loader.py", line 115, in loadTestsFromName
test = obj()
File "/usr/lib/python2.7/dist-packages/obspy/imaging/tests/__init__.py", line 24, in suite
add_unittests(suite, MODULE_NAME)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 72, in add_unittests
fromlist=[native_str("obspy")])
File "/usr/lib/python2.7/dist-packages/obspy/imaging/tests/test_ppsd.py", line 16, in <module>
from obspy.signal.tests.test_spectral_estimation import _get_ppsd
File "/usr/lib/python2.7/dist-packages/obspy/signal/tests/test_spectral_estimation.py", line 69, in <module>
_sample_data = _internal_get_sample_data()
File "/usr/lib/python2.7/dist-packages/obspy/signal/tests/test_spectral_estimation.py", line 42, in _internal_get_sample_data
with gzip.open(file_data) as f:
File "/usr/lib/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/usr/lib/python2.7/gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: u'/usr/lib/python2.7/dist-packages/obspy/signal/tests/data/BW.KW1._.EHZ.D.2011.090_downsampled.asc.gz'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/tests/test_core.py", line 192, in test_tsg
st = _read_ah(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/core.py", line 62, in _read_ah
version = _get_ah_version(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/core.py", line 78, in _get_ah_version
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ah/tests/data/TSG/BRV.TSG.DS.lE21.resp'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/tests/test_core.py", line 263, in test_write_ah1
stream_orig = _read_ah(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/core.py", line 62, in _read_ah
version = _get_ah_version(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/core.py", line 78, in _get_ah_version
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ah/tests/data/st.ah'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/tests/test_core.py", line 31, in test_is_ah
self.assertTrue(_is_ah(testfile))
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/core.py", line 44, in _is_ah
if _get_ah_version(filename):
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/core.py", line 78, in _get_ah_version
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ah/tests/data/TSG/BRV.TSG.DS.lE21.resp'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/tests/test_core.py", line 67, in test_read
st = read(testfile)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/ah/tests/data/hrv.lh.zne'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/tests/test_core.py", line 90, in test_read_ah
st = _read_ah(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/core.py", line 62, in _read_ah
version = _get_ah_version(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/ah/core.py", line 78, in _get_ah_version
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ah/tests/data/ah1.f'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/test_inventory_xml.py", line 76, in test_raise_polynomial
read_inventory(self.arclink_xml_poly)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/data/arclink_inventory_poly.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/data/arclink_inventory_poly.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/test_inventory_xml.py", line 71, in test_validate_inventories_against_schema
self.assertTrue(validate_arclink_xml(self.arclink_xml_path)[0])
File "/usr/lib/python2.7/dist-packages/obspy/io/arclink/inventory.py", line 111, in validate_arclink_xml
xmldoc = etree.parse(path_or_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/data/arclink_inventory.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/data/arclink_inventory.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/test_inventory_xml.py", line 49, in test_analogue_filter_chain
arclink_inv = read_inventory(self.arclink_afc_path)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/data/arclink_afc.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/data/arclink_afc.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/test_inventory_xml.py", line 82, in test_auto_read_arclink_xml
arclink_inv = read_inventory(self.arclink_xml_path)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/data/arclink_inventory.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/arclink/tests/data/arclink_inventory.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ascii.core._read_slist
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 116, in _read_slist
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 135, in obspy.io.ascii.core._read_slist
Failed example:
st = read('/path/to/slist.ascii')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.ascii.core._read_slist[1]>", line 1, in <module>
st = read('/path/to/slist.ascii')
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file slist.ascii in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 164, in test_read_tspair_file_single_trace
stream = _read_tspair(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/tspair.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ascii.core._read_tspair
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 184, in _read_tspair
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 203, in obspy.io.ascii.core._read_tspair
Failed example:
st = read('/path/to/tspair.ascii')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.ascii.core._read_tspair[1]>", line 1, in <module>
st = read('/path/to/tspair.ascii')
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file tspair.ascii in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 149, in test_is_tspair_file
self.assertEqual(_is_tspair(testfile), True)
AssertionError: False != True
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 233, in test_read_tspair_head_only
stream = _read_tspair(testfile, headonly=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/tspair.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 544, in test_write_slist_custom_fmt_custom
stream_orig = _read_slist(testfile_orig)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/slist_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 449, in test_write_slist
stream_orig = _read_slist(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/slist_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 252, in test_read_tspair_file_encoding
stream = _read_tspair(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/tspair_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 189, in test_read_tspair_file_multiple_traces
stream = _read_tspair(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/tspair_2_traces.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 324, in test_write_tspair_custom_fmt
stream_orig = _read_tspair(testfile_orig)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/tspair_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 277, in test_write_tspair
stream_orig = _read_tspair(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/tspair_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 568, in test_write_slist_file_multiple_traces
stream_orig = _read_slist(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/slist_2_traces.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 497, in test_write_slist_custom_fmt_float
stream_orig = _read_slist(testfile_orig)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/slist_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 30, in test_is_slist_file
self.assertEqual(_is_slist(testfile), True)
AssertionError: False != True
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 391, in test_write_tspair_file_multiple_traces
stream_orig = _read_tspair(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/tspair_2_traces.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 369, in test_write_tspair_custom_fmt_custom
stream_orig = _read_tspair(testfile_orig)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/tspair_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 69, in test_read_slist_file_multiple_traces
stream = _read_slist(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/slist_2_traces.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 45, in test_read_slist_file_single_trace
stream = _read_slist(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/slist.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 127, in test_read_slist_file_encoding
stream = _read_slist(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/slist_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 109, in test_read_slist_file_head_only
stream = _read_slist(testfile, headonly=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ascii/tests/data/slist.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 232, in test_reading_newer_cmtsolution_files
cat = obspy.read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION_NEW'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 208, in test_read_and_write_multiple_events_from_bytes_io
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/data/MULTIPLE_EVENTS'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 62, in test_write_no_preferred_focal_mechanism
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 167, in test_is_cmtsolution
self.assertTrue(_is_cmtsolution(filename))
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/core.py", line 80, in _is_cmtsolution
reset_fp=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/core.py", line 67, in _buffer_proxy
with open(filename_or_buf, file_mode) as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 138, in test_read_and_write_cmtsolution_explosion
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION_EXPLOSION'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 113, in test_read_and_write_cmtsolution_from_bytes_io
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 35, in test_read_and_write_cmtsolution_from_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 92, in test_read_and_write_cmtsolution_from_open_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 177, in test_read_and_write_multiple_cmtsolution_from_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/cmtsolution/tests/data/MULTIPLE_EVENTS'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/cnv/tests/test_core.py", line 31, in test_write_cnv
cat = read_events(filename, format="QUAKEML")
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/cnv/tests/data/obspyck_20141020150701.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/usr/lib/python2.7/gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: u'/usr/lib/python2.7/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/css/tests/test_station.py", line 74, in test_default_write
self._run_test(inv, fname)
File "/usr/lib/python2.7/dist-packages/obspy/io/css/tests/test_station.py", line 47, in _run_test
with open(os.path.join(self.data_dir, expected), 'rt') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/css/tests/data/station/default.affiliation'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/usr/lib/python2.7/gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: u'/usr/lib/python2.7/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/usr/lib/python2.7/gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: u'/usr/lib/python2.7/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/usr/lib/python2.7/gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: u'/usr/lib/python2.7/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/usr/lib/python2.7/gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: u'/usr/lib/python2.7/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/usr/lib/python2.7/gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: u'/usr/lib/python2.7/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/test_core.py", line 40, in test_read_via_obspy
st = read(filename)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/test_core.py", line 154, in test_sps_d
st = read(filename, headonly=True, channel_prefix="HN")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/data/20160603_1910n.gcf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/test_core.py", line 59, in test_read_head_via_obspy
st = read(filename, headonly=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/test_core.py", line 76, in test_read_via_module
st = _read_gcf(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/core.py", line 85, in _read_gcf
with open(filename, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/test_core.py", line 112, in test_read_channel_prefix_via_obspy
st = read(filename, headonly=True, channel_prefix="HN")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/test_core.py", line 95, in test_read_head_via_module
st = _read_gcf(filename, headonly=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/core.py", line 85, in _read_gcf
with open(filename, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/test_core.py", line 129, in test_merge_gcf_stream
st1 = read(filename, headonly=True, channel_prefix="HN")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gcf.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/__init__.py", line 21, in obspy.io.gcf.__init__
Failed example:
st = read("/path/to/20160603_1955n.gcf")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gcf.__init__[1]>", line 1, in <module>
st = read("/path/to/20160603_1955n.gcf")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 20160603_1955n.gcf in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gcf.core._read_gcf
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/core.py", line 60, in _read_gcf
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gcf/core.py", line 82, in obspy.io.gcf.core._read_gcf
Failed example:
st = read("/path/to/20160603_1955n.gcf", format="GCF")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gcf.core._read_gcf[1]>", line 1, in <module>
st = read("/path/to/20160603_1955n.gcf", format="GCF")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 20160603_1955n.gcf in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gse2.bulletin._read_gse2
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 984, in _read_gse2
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1107, in obspy.io.gse2.bulletin._read_gse2
Failed example:
catalog = read_events('/path/to/bulletin/gse_2.0_non_standard.txt',
default_network_code='FR', res_id_prefix='quakeml:abc',
fields=fields, event_point_separator=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.bulletin._read_gse2[3]>", line 3, in <module>
fields=fields, event_point_separator=True)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file bulletin/gse_2.0_non_standard.txt in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1110, in obspy.io.gse2.bulletin._read_gse2
Failed example:
print(catalog)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.bulletin._read_gse2[4]>", line 1, in <module>
print(catalog)
NameError: name 'catalog' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gse2.core._read_gse2
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/core.py", line 34, in _read_gse2
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/core.py", line 57, in obspy.io.gse2.core._read_gse2
Failed example:
st = read("/path/to/loc_RJOB20050831023349.z")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.core._read_gse2[1]>", line 1, in <module>
st = read("/path/to/loc_RJOB20050831023349.z")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file loc_RJOB20050831023349.z in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gse2.core._read_gse1
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/core.py", line 135, in _read_gse1
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/core.py", line 158, in obspy.io.gse2.core._read_gse1
Failed example:
st = read("/path/to/y2000.gse")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.core._read_gse1[1]>", line 1, in <module>
st = read("/path/to/y2000.gse")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file y2000.gse in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gse2.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/__init__.py", line 25, in obspy.io.gse2.__init__
Failed example:
st = read("/path/to/loc_RJOB20050831023349.z")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[1]>", line 1, in <module>
st = read("/path/to/loc_RJOB20050831023349.z")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file loc_RJOB20050831023349.z in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/__init__.py", line 35, in obspy.io.gse2.__init__
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/__init__.py", line 37, in obspy.io.gse2.__init__
Failed example:
print(st) #doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[3]>", line 1, in <module>
print(st) #doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/__init__.py", line 48, in obspy.io.gse2.__init__
Failed example:
gse2 = st[0].stats.pop('gse2')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[4]>", line 1, in <module>
gse2 = st[0].stats.pop('gse2')
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/__init__.py", line 49, in obspy.io.gse2.__init__
Failed example:
print(st[0].stats) #doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[5]>", line 1, in <module>
print(st[0].stats) #doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/__init__.py", line 62, in obspy.io.gse2.__init__
Failed example:
for k, v in sorted(gse2.items()):
print(k, v) #doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[6]>", line 1, in <module>
for k, v in sorted(gse2.items()):
NameError: name 'gse2' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/__init__.py", line 79, in obspy.io.gse2.__init__
Failed example:
print(st[0].data)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[7]>", line 1, in <module>
print(st[0].data)
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/__init__.py", line 98, in obspy.io.gse2.__init__
Failed example:
catalog = read_events('/path/to/bulletin/gse_2.0_standard.txt')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[10]>", line 1, in <module>
catalog = read_events('/path/to/bulletin/gse_2.0_standard.txt')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file bulletin/gse_2.0_standard.txt in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/__init__.py", line 99, in obspy.io.gse2.__init__
Failed example:
print(catalog)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.gse2.__init__[11]>", line 1, in <module>
print(catalog)
NameError: name 'catalog' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 327, in test_read_apply_calib
st = read(gse2file, apply_calib=False)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 78, in test_read_and_write_via_obspy
st1 = read(gse2file)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RNON20040609200559.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 118, in test_read_header
with open(gse2file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/twiceCHK2.gse2'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 77, in test_read_and_write
with open(gse2file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RNON20040609200559.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 124, in test_read_and_write_streams_via_obspy
with open(filename, 'rb') as f1:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RNON20040609200559.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 65, in test_read_with_wrong_checksum
fp = open(gse2file, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z.wrong_chksum'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 204, in test_no_dat2_null_pointer
with open(filename, 'rb') as fin:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349_first100_dos.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 133, in test_is_widi_2
with open(filename, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RNON20040609200559.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 44, in test_read
f = open(gse2file, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 244, in test_parse_sta2
with open(filename) as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/STA2.testlines'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 85, in test_origin
catalog = _read_gse2(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 553, in test_non_standard_format
event_point_separator=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_non_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 247, in test_magnitude
catalog = _read_gse2(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 619, in test_inventory_with_multiple_channels
inventory = read_inventory(inventory_filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/inventory_multiple_channels.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/inventory_multiple_channels.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 579, in test_inventory
inventory = read_inventory(inventory_filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/inventory.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/inventory.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 705, in test_incomplete_file
self.assertRaises(GSE2BulletinSyntaxError, _read_gse2, filename)
File "/usr/lib/python2.7/unittest/case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_incomplete.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 57, in test_event
catalog = _read_gse2(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 43, in test_catalog
catalog = _read_gse2(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 198, in test_arrival
catalog = _read_gse2(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 323, in test_amplitude
catalog = _read_gse2(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 238, in test_read_gse1_via_obspy
st = read(gse1file, verify_checksum=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_STAU20031119011659.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 357, in test_read_gse2_int_datatype
st = read(gse2file, verify_checksum=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/boa___00_07a.gse'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 315, in test_read_dos
st = read(filedos, verify_chksum=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349_first100_dos.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 256, in test_read_gse1_head_via_obspy
st = read(gse1file, headonly=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_STAU20031119011659.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 37, in test_read_via_obspy
st = read(gse2file, verify_checksum=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 217, in test_read_with_wrong_checksum
read(gse2file, verify_chksum=False)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z.wrong_chksum'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 59, in test_read_head_via_obspy
st = read(gse2file, headonly=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 276, in test_read_intv_gse1_via_obspy
self.assertRaises(ChksumError, read, gse1file, verify_chksum=True)
File "/usr/lib/python2.7/unittest/case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/GRF_031102_0225.GSE.wrong_chksum'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 229, in test_read_with_wrong_parameters
read(gse2file, verify_chksum=False, starttime=None)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z.wrong_chksum'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_core.py", line 191, in test_tab_complete_stats
tr = read(gse2file)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 95, in test_bytes_io
with open(gse2file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/loc_RNON20040609200559.z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 181, in test_chk2_in_cm6
with open(os.path.join(self.path, 'twiceCHK2.gse2'), 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/twiceCHK2.gse2'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 387, in test_several_events
catalog = _read_gse2(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_2_events.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 289, in test_station_magnitude
catalog = _read_gse2(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse1.py", line 30, in test_verify_checksums
fh = open(os.path.join(self.path, 'acc.gse'), 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/acc.gse'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 192, in test_broken_head
with open(os.path.join(self.path, 'broken_head.gse2'), 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/broken_head.gse2'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 486, in test_parameters
fields, False, 'AGE')
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 142, in test_pick
catalog = _read_gse2(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 700, in test_read_events
catalog = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_2_events.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 666, in test_several_begin
catalog = _read_gse2(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_2_begins.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/test_core.py", line 109, in test_reading_via_file
with io.open(self.path_to_ims, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/test_core.py", line 123, in test_reading_via_bytes_io
with io.open(self.path_to_ims, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/test_core.py", line 101, in test_reading
cat = _read_ims10_bulletin(self.path_to_ims, _no_uuid_hashes=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/core.py", line 627, in _read_ims10_bulletin
reset_fp=False, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/core.py", line 614, in _buffer_proxy
with open(filename_or_buf, file_mode) as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/test_core.py", line 147, in test_is_ims10_bulltin_open_file
with open(self.path_to_ims, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/test_core.py", line 160, in test_is_ims10_bulltin_from_bytes_io
with open(self.path_to_ims, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/test_core.py", line 143, in test_is_ims10_bulltin
self.assertTrue(_is_ims10_bulletin(self.path_to_ims))
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/core.py", line 656, in _is_ims10_bulletin
reset_fp=True, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/core.py", line 614, in _buffer_proxy
with open(filename_or_buf, file_mode) as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/test_core.py", line 135, in test_reading_via_plugin
_no_uuid_hashes=True)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.json.default
File "/usr/lib/python2.7/dist-packages/obspy/io/json/default.py", line 1, in default
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/json/default.py", line 16, in obspy.io.json.default
Failed example:
c = read_events()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.json.default[3]>", line 1, in <module>
c = read_events()
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file neries_events.xml in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/json/default.py", line 18, in obspy.io.json.default
Failed example:
s = json.dumps(c, default=d)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.json.default[5]>", line 1, in <module>
s = json.dumps(c, default=d)
NameError: name 'c' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/json/tests/test_json.py", line 27, in setUp
self.c = _read_quakeml(qml_file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/json/tests/../../quakeml/tests/data/qml-example-1.2-RC3.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/json/tests/test_json.py", line 27, in setUp
self.c = _read_quakeml(qml_file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/json/tests/../../quakeml/tests/data/qml-example-1.2-RC3.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/json/tests/test_json.py", line 27, in setUp
self.c = _read_quakeml(qml_file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/json/tests/../../quakeml/tests/data/qml-example-1.2-RC3.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.kinemetrics.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/__init__.py", line 24, in obspy.io.kinemetrics.__init__
Failed example:
st = read("/path/to/BI008_MEMA-04823.evt")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.kinemetrics.__init__[1]>", line 1, in <module>
st = read("/path/to/BI008_MEMA-04823.evt")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file BI008_MEMA-04823.evt in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/__init__.py", line 25, in obspy.io.kinemetrics.__init__
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.kinemetrics.__init__[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/__init__.py", line 27, in obspy.io.kinemetrics.__init__
Failed example:
print (st) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.kinemetrics.__init__[3]>", line 1, in <module>
print (st) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/__init__.py", line 45, in obspy.io.kinemetrics.__init__
Failed example:
stats_evt = st[0].stats.pop('kinemetrics_evt')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.kinemetrics.__init__[4]>", line 1, in <module>
stats_evt = st[0].stats.pop('kinemetrics_evt')
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/__init__.py", line 46, in obspy.io.kinemetrics.__init__
Failed example:
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.kinemetrics.__init__[5]>", line 1, in <module>
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/__init__.py", line 58, in obspy.io.kinemetrics.__init__
Failed example:
for k, v in sorted(stats_evt.items()):
print(k, v)
# doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.kinemetrics.__init__[6]>", line 1, in <module>
for k, v in sorted(stats_evt.items()):
NameError: name 'stats_evt' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/__init__.py", line 98, in obspy.io.kinemetrics.__init__
Failed example:
type(st[0].data) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.kinemetrics.__init__[7]>", line 1, in <module>
type(st[0].data) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/__init__.py", line 100, in obspy.io.kinemetrics.__init__
Failed example:
print(st[0].data)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.kinemetrics.__init__[8]>", line 1, in <module>
print(st[0].data)
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 128, in test_reading_via_obspy_and_bytesio
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 227, in test_read_via_module_and_bytesio
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 82, in test_read_via_obspy
st = read(filename)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 44, in test_is_evt
self.assertTrue(is_evt(filename))
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/core.py", line 49, in is_evt
with open(filename_or_object, "rb") as file_obj:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 62, in test_is_evt_from_bytesio
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 180, in test_read_via_module
st = read_evt(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/core.py", line 73, in read_evt
stream = evt_obj.read_file(filename_or_object)
File "/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/evt.py", line 101, in read_file
file_pointer = open(filename_or_object, "rb")
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.kml.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/kml/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/kml/__init__.py", line 15, in obspy.io.kml.__init__
Failed example:
cat = read_events() # load example data
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.kml.__init__[3]>", line 1, in <module>
cat = read_events() # load example data
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file neries_events.xml in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/kml/tests/test_kml.py", line 35, in test_write_inventory
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/kml/tests/data/inventory.kml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/kml/tests/test_kml.py", line 45, in test_write_catalog
cat = read_events()
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file neries_events.xml in tests/data or data directory of ObsPy modules
>>> Cannot import test suite for module obspy.io.mseed due to:
--------------------------------------------------------------
File "/usr/bin/obspy-runtests", line 9, in <module>
load_entry_point('obspy==1.1.0', 'console_scripts', 'obspy-runtests')()
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 738, in main
errors = run(argv, interactive)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 706, in run
pr_url=args.pr_url)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 533, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 154, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "/usr/lib/python2.7/unittest/loader.py", line 115, in loadTestsFromName
test = obj()
File "/usr/lib/python2.7/dist-packages/obspy/io/mseed/tests/__init__.py", line 17, in suite
add_unittests(suite, MODULE_NAME)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 72, in add_unittests
fromlist=[native_str("obspy")])
File "/usr/lib/python2.7/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 21, in <module>
from obspy.core.compatibility import from_buffer, mock
ImportError: cannot import name mock
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 309, in test_raise_exception_if_no_events_in_file
with open(os.path.join(self.datapath, "C200604092050A.ndk"), "rt") \
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 271, in test_missing_lines
with open(os.path.join(self.datapath, "multiple_events.ndk"), "rt") \
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/multiple_events.ndk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 92, in test_is_ndk
self.assertTrue(_is_ndk(filename))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 34, in test_read_single_ndk
cat = _read_ndk(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/core.py", line 401, in _read_ndk
raise ObsPyNDKException(msg)
ObsPyNDKException: No valid events found in NDK file.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 47, in test_read_multiple_events
cat = _read_ndk(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/core.py", line 401, in _read_ndk
raise ObsPyNDKException(msg)
ObsPyNDKException: No valid events found in NDK file.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 172, in test_reading_the_same_file_twice_does_not_raise_a_warnings
cat_1 = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 101, in test_reading_using_obspy_plugin
cat = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ndk.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/__init__.py", line 2, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/__init__.py", line 60, in obspy.io.ndk.__init__
Failed example:
cat = obspy.read_events("/path/to/C200604092050A.ndk")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.ndk.__init__[1]>", line 1, in <module>
cat = obspy.read_events("/path/to/C200604092050A.ndk")
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file C200604092050A.ndk in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/__init__.py", line 61, in obspy.io.ndk.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.ndk.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 129, in test_reading_from_bytes_io
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 257, in test_reading_from_bytestring
ref_cat = read_events(reference)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/C200604092050A.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 297, in test_reading_event_with_faulty_but_often_occurring_timestamp
cat = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/faulty_cmt_timestamp.ndk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 220, in test_reading_file_with_multiple_errors
cat = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/faulty_multiple_events.ndk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 240, in test_reading_from_string
ref_cat = read_events(reference)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/C200604092050A.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 113, in test_reading_from_string_io
with open(filename, "rt") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 158, in test_reading_from_open_file_in_binary_mode
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 145, in test_reading_from_open_file_in_text_mode
with open(filename, "rt") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/test_fnetmt_reading.py", line 24, in test_read_fnetmt_catalog
cat = read_events(testfile, 'FNETMT')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/data/FNETMTCATALOG'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/test_fnetmt_reading.py", line 68, in test_is_fnetmt_catalog
is_fnetmt = _is_fnetmt_catalog(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/fnetmt.py", line 81, in _is_fnetmt_catalog
reset_fp=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/fnetmt.py", line 68, in _buffer_proxy
with open(filename_or_buf, file_mode) as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/data/FNETMTCATALOG'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/test_knet_reading.py", line 26, in test_read_knet_ascii
tr = read(testfile)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/data/test.knet'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/test_knet_reading.py", line 97, in test_is_knet_ascii
is_knet = _is_knet_ascii(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/knet.py", line 65, in _is_knet_ascii
reset_fp=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/knet.py", line 52, in _buffer_proxy
with open(filename_or_buf, file_mode) as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/data/test.knet'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/test_fnetmt_reading.py", line 35, in test_read_fnetmt_catalog_from_open_files
with open(testfile, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/data/FNETMTCATALOG'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/test_fnetmt_reading.py", line 44, in test_read_fnetmt_catalog_from_bytes_io
with open(testfile, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/data/FNETMTCATALOG'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/test_knet_reading.py", line 40, in test_read_knet_ascii_from_open_files
with open(testfile, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/data/test.knet'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/test_knet_reading.py", line 56, in test_read_knet_ascii_from_bytes_io
with open(testfile, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/data/test.knet'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.nied.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 22, in obspy.io.nied.__init__
Failed example:
cat = obspy.read_events("/path/to/FNETMTCATALOG")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[1]>", line 1, in <module>
cat = obspy.read_events("/path/to/FNETMTCATALOG")
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file FNETMTCATALOG in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 23, in obspy.io.nied.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 29, in obspy.io.nied.__init__
Failed example:
print(cat[0]) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[3]>", line 1, in <module>
print(cat[0]) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 90, in obspy.io.nied.__init__
Failed example:
st = read('/path/to/test.knet')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[5]>", line 1, in <module>
st = read('/path/to/test.knet')
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file test.knet in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 91, in obspy.io.nied.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[6]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 101, in obspy.io.nied.__init__
Failed example:
st = read('/path/to/test.knet',convert_stnm=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[7]>", line 1, in <module>
st = read('/path/to/test.knet',convert_stnm=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file test.knet in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 102, in obspy.io.nied.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[8]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 109, in obspy.io.nied.__init__
Failed example:
print(st[0].stats) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[9]>", line 1, in <module>
print(st[0].stats) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 123, in obspy.io.nied.__init__
Failed example:
print(st[0].stats.knet.stlo)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[10]>", line 1, in <module>
print(st[0].stats.knet.stlo)
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/__init__.py", line 126, in obspy.io.nied.__init__
Failed example:
print(st[0].stats.knet.comment)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nied.__init__[11]>", line 1, in <module>
print(st[0].stats.knet.comment)
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/test_knet_reading.py", line 76, in test_station_name_hack
tr = read(testfile, convert_stnm=True)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/nied/tests/data/test.knet'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/tests/test_util.py", line 43, in test_read_nlloc_scatter_plain
got = read_nlloc_scatter(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/util.py", line 51, in read_nlloc_scatter
data = np.fromfile(filename, dtype=dtype)[4:]
IOError: [Errno 2] No such file or directory: u'/usr/lib/python2.7/dist-packages/obspy/io/nlloc/tests/data/nlloc.scat'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/tests/test_core.py", line 224, in test_is_nlloc_hyp
filename = get_example_file("nlloc_custom.hyp")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file nlloc_custom.hyp in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/tests/test_core.py", line 277, in test_read_nlloc_6_beta_signature
cat[0].creation_info.creation_time,
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 163, in __getitem__
return self.events.__getitem__(index)
IndexError: list index out of range
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/tests/test_core.py", line 85, in test_read_nlloc_hyp
filename = get_example_file("nlloc_custom.hyp")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file nlloc_custom.hyp in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/tests/test_core.py", line 216, in test_read_nlloc_hyp_via_plugin
filename = get_example_file("nlloc_custom.hyp")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file nlloc_custom.hyp in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/tests/test_core.py", line 123, in test_read_nlloc_hyp_with_builtin_projection
cat = read_nlloc_hyp(get_example_file("nlloc.hyp"))
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file nlloc.hyp in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/tests/test_core.py", line 249, in test_read_nlloc_with_multiple_events
got = read_events(get_example_file("vanua.sum.grid0.loc.hyp"),
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file vanua.sum.grid0.loc.hyp in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/tests/test_core.py", line 237, in test_read_nlloc_with_picks
picks = read_events(get_example_file("nlloc_custom.qml"))[0].picks
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file nlloc_custom.qml in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.nlloc.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/__init__.py", line 2, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/__init__.py", line 23, in obspy.io.nlloc.__init__
Failed example:
cat = read_events("/path/to/nlloc.hyp")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nlloc.__init__[1]>", line 1, in <module>
cat = read_events("/path/to/nlloc.hyp")
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file nlloc.hyp in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/__init__.py", line 24, in obspy.io.nlloc.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nlloc.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/__init__.py", line 28, in obspy.io.nlloc.__init__
Failed example:
event = cat[0]
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nlloc.__init__[3]>", line 1, in <module>
event = cat[0]
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/__init__.py", line 29, in obspy.io.nlloc.__init__
Failed example:
print(event) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nlloc.__init__[4]>", line 1, in <module>
print(event) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'event' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/__init__.py", line 42, in obspy.io.nlloc.__init__
Failed example:
origin = event.origins[0]
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nlloc.__init__[5]>", line 1, in <module>
origin = event.origins[0]
NameError: name 'event' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/__init__.py", line 43, in obspy.io.nlloc.__init__
Failed example:
print(origin) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.nlloc.__init__[6]>", line 1, in <module>
print(origin) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'origin' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nlloc/tests/test_core.py", line 50, in test_write_nlloc_obs
filename = get_example_file("nlloc_custom.qml")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file nlloc_custom.qml in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 275, in test_read_extra_header
test_event = read_nordic(testing_path)[0]
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'unicode' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 397, in test_read_event
event = read_nordic(testing_path)[0]
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'unicode' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 319, in test_reading_bytes_io
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 420, in test_write_plugin
cat = read_events()
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file neries_events.xml in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 409, in test_write_select
cat = read_events()
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file neries_events.xml in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 304, in test_reading_string_io
with open(filename, "rt") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 472, in test_read_moment_info
spec_inf = read_spectral_info(testing_path)
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 336, in read_spectral_info
with open(sfile, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/data/automag.out'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 536, in test_distance_conversion
cat = read_events(testing_path)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 334, in test_corrupt_header
f = open(filename, 'r')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 439, in test_inaccurate_picks
cat = read_nordic(testing_path)
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'unicode' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 288, in test_header_mapping
'01-0411-15L.S201309'))
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 232, in readheader
with open(sfile, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 263, in test_read_empty_header
'Sfile_no_location'))[0]
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'unicode' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 300, in test_missing_header
readheader(os.path.join(self.testing_path, 'Sfile_no_header'))
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 232, in readheader
with open(sfile, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/data/Sfile_no_header'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 405, in test_read_many_events
catalog = read_nordic(testing_path)
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'unicode' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 449, in test_round_len
event = read_nordic(testing_path)[0]
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'unicode' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 506, in test_read_picks_across_day_end
event = read_nordic(testing_path)[0]
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'unicode' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 462, in test_read_moment
event = read_nordic(testing_path)[0]
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'unicode' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 386, in test_read_wavename
wavefiles = readwavename(testing_path)
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/core.py", line 636, in readwavename
with open(sfile, 'r') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 494, in test_is_sfile
self.assertTrue(_is_sfile(os.path.join(self.testing_path, sfile)))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pdas/tests/test_core.py", line 60, in test_is_pdas
self.assertTrue(_is_pdas(self.testfile))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.pdas.core._read_pdas
File "/usr/lib/python2.7/dist-packages/obspy/io/pdas/core.py", line 44, in _read_pdas
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/pdas/core.py", line 60, in obspy.io.pdas.core._read_pdas
Failed example:
st = read("/path/to/p1246001.108")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.pdas.core._read_pdas[1]>", line 1, in <module>
st = read("/path/to/p1246001.108")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file p1246001.108 in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/pdas/core.py", line 61, in obspy.io.pdas.core._read_pdas
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.pdas.core._read_pdas[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/pdas/core.py", line 63, in obspy.io.pdas.core._read_pdas
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.pdas.core._read_pdas[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pdas/tests/test_core.py", line 28, in test_read_pdas
st = _read_pdas(self.testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/pdas/core.py", line 68, in _read_pdas
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pdas/tests/data/p1246001.108'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.pde.mchedr._read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1, in _read_mchedr
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 19, in obspy.io.pde.mchedr._read_mchedr
Failed example:
cat = read_events('/path/to/mchedr.dat')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.pde.mchedr._read_mchedr[1]>", line 1, in <module>
cat = read_events('/path/to/mchedr.dat')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file mchedr.dat in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 20, in obspy.io.pde.mchedr._read_mchedr
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.pde.mchedr._read_mchedr[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<decorator-gen-49>", line 2, in _read_mchedr
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.quakeml.core._read_quakeml
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1778, in _read_quakeml
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1795, in obspy.io.quakeml.core._read_quakeml
Failed example:
cat = read_events('/path/to/iris_events.xml')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.quakeml.core._read_quakeml[1]>", line 1, in <module>
cat = read_events('/path/to/iris_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file iris_events.xml in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1796, in obspy.io.quakeml.core._read_quakeml
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.quakeml.core._read_quakeml[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 405, in test_data_unpacking_steim1
rt = Reftek130.from_file(self.reftek_file)
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 418, in test_data_unpacking_steim2
rt = Reftek130.from_file(self.reftek_file_steim2)
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/104800000_000093F8'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 355, in test_truncated_last_packet
with open(self.reftek_file, 'rb') as fh2:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 211, in test_integration_with_obspy_core
component_codes=["1", "2", "3"])
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 330, in test_missing_event_trailer_packet
with open(self.reftek_file, 'rb') as fh2:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 288, in test_drop_not_implemented_packets
with open(self.reftek_file, 'rb') as fh2:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 223, in test_error_no_packets_read
self.mseed_files[0])
File "/usr/lib/python2.7/unittest/case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 98, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/2015282_225051_0ae4c_1_1.msd'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 499, in test_string_representations
rt130 = Reftek130.from_file(self.reftek_file)
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 506, in test_reading_packet_with_vpu_float_string
with open(self.reftek_file_vpu, 'rb') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/221935615_00000000'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 385, in test_no_eh_et_packet
with open(self.reftek_file, 'rb') as fh2:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 254, in test_read_file_perturbed_packet_sequence
with open(self.reftek_file, 'rb') as fh2:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 138, in test_read_reftek130_steim1
component_codes=["1", "2", "3"])
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 98, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 178, in test_read_reftek130_no_component_codes_specified
self.reftek_file, network="XX", location="01")
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 98, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 530, in test_reading_file_with_multiple_events
with open(self.reftek_file_vpu, 'rb') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/221935615_00000000'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 150, in test_read_reftek130_steim2
component_codes=["1", "2", "3"])
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 98, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/104800000_000093F8'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 201, in test_is_reftek130
self.assertTrue(_is_reftek130(self.reftek_file))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/test_core.py", line 231, in test_warning_disturbed_packet_sequence
with open(self.reftek_file, 'rb') as fh2:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.reftek.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/__init__.py", line 53, in obspy.io.reftek.__init__
Failed example:
st = read("/path/to/225051000_00008656", network="BW", location="",
component_codes="ZNE")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[4]>", line 2, in <module>
component_codes="ZNE")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 225051000_00008656 in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/__init__.py", line 55, in obspy.io.reftek.__init__
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[5]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/__init__.py", line 57, in obspy.io.reftek.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[6]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/__init__.py", line 71, in obspy.io.reftek.__init__
Failed example:
print(st[0].stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[7]>", line 1, in <module>
print(st[0].stats) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/__init__.py", line 90, in obspy.io.reftek.__init__
Failed example:
rt = Reftek130.from_file(get_example_file("225051000_00008656"))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[10]>", line 1, in <module>
rt = Reftek130.from_file(get_example_file("225051000_00008656"))
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 225051000_00008656 in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/__init__.py", line 91, in obspy.io.reftek.__init__
Failed example:
print(rt) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[11]>", line 1, in <module>
print(rt) # doctest: +ELLIPSIS
NameError: name 'rt' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/reftek/__init__.py", line 127, in obspy.io.reftek.__init__
Failed example:
print(rt.__str__(compact=False)) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.reftek.__init__[12]>", line 1, in <module>
print(rt.__str__(compact=False)) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'rt' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._read_sac_xy
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 174, in _read_sac_xy
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 200, in obspy.io.sac.core._read_sac_xy
Failed example:
st = read("/path/to/testxy.sac")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.core._read_sac_xy[1]>", line 1, in <module>
st = read("/path/to/testxy.sac")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file testxy.sac in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._read_sac
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 311, in _read_sac
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 340, in obspy.io.sac.core._read_sac
Failed example:
st = read("/path/to/test.sac")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.core._read_sac[1]>", line 1, in <module>
st = read("/path/to/test.sac")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file test.sac in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sacpz.attach_resp
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sacpz.py", line 279, in attach_resp
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sacpz.py", line 304, in obspy.io.sac.sacpz.attach_resp
Failed example:
attach_resp(tr, respfile, torad=True, todisp=False)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sacpz.attach_resp[4]>", line 1, in <module>
attach_resp(tr, respfile, torad=True, todisp=False)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sacpz.py", line 319, in attach_resp
resp_filep = open(resp_file, 'r')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/RESP.NZ.CRLZ.10.HHZ'
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sacpz.py", line 305, in obspy.io.sac.sacpz.attach_resp
Failed example:
for k in sorted(tr.stats.paz): # doctest: +NORMALIZE_WHITESPACE
print(k)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sacpz.attach_resp[5]>", line 1, in <module>
for k in sorted(tr.stats.paz): # doctest: +NORMALIZE_WHITESPACE
File "/usr/lib/python2.7/dist-packages/obspy/core/util/attribdict.py", line 125, in __getattr__
raise AttributeError(e.args[0])
AttributeError: paz
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sacpz.py", line 314, in obspy.io.sac.sacpz.attach_resp
Failed example:
print(tr.stats.paz.poles) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sacpz.attach_resp[6]>", line 1, in <module>
print(tr.stats.paz.poles) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
File "/usr/lib/python2.7/dist-packages/obspy/core/util/attribdict.py", line 125, in __getattr__
raise AttributeError(e.args[0])
AttributeError: paz
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 98, in test_read_write_xy_via_obspy
tr = read(self.file, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 623, in test_read_xy_write_xy_from_bytes_io
st = _read_sac_xy(self.filexy)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 206, in _read_sac_xy
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 550, in test_read_write_open_file
st = _read_sac(self.file)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 348, in _read_sac
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 65, in test_read_write_via_obspy
tr = read(self.file, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 474, in test_read_with_fsize
self.assertRaises(SacError, read, longer_file)
File "/usr/lib/python2.7/unittest/case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/seism-longer.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 534, in test_read_write_bytes_io
st = _read_sac(self.file)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 348, in _read_sac
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 50, in test_read_via_obspy
tr = read(self.file, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 588, in test_read_via_obspy_from_bytes_io
with open(self.file, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sacpz.py", line 87, in test_attach_paz_diff_order
attach_paz(tr, pazfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sacpz.py", line 163, in attach_paz
paz_file = open(paz_file, 'r')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/NZCRLZ_HHZ10.pz'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sacpz.py", line 108, in test_sacpaz_from_dataless
attach_paz(tr, pazfile, todisp=False)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sacpz.py", line 163, in attach_paz
paz_file = open(paz_file, 'r')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/SAC_PZs_NZ_HHZ_10'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sacpz.py", line 131, in test_sacpaz_from_resp
attach_resp(tr1, respfile, torad=True, todisp=False)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sacpz.py", line 319, in attach_resp
resp_filep = open(resp_file, 'r')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/RESP.NZ.CRLZ.10.HHZ'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sacpz.py", line 53, in test_write_sacpz_multiple_channels
inv = read_inventory("/path/to/IU_ANMO_BH.xml")
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file IU_ANMO_BH.xml in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 150, in test_reftime
sac = SACTrace.read(self.fileseis)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/seism.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 168, in test_reftime_relative_times
sac = SACTrace.read(self.fileseis)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/seism.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 640, in test_read_xy_write_xy_from_open_file_binary_mode
st = _read_sac_xy(self.filexy)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 206, in _read_sac_xy
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 83, in test_read_xy_write_xy_via_obspy
tr = read(self.filexy, format='SACXY')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 732, in test_is_sacxy_open_file_text_mode_fails
with open(self.filexy, "rt") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 713, in test_is_sacxy_string_io_raises
with open(self.filexy, "rt") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 827, in test_decimate_resample
tr = read(self.file, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 271, in test_default_values
tr = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 930, in test_encoding_flag
tr0 = read(self.file_encode, encoding='cp1252')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test_encode.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 843, in test_invalid_header_field
tr = read(self.file, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 658, in test_is_sac_bytes_io
with open(self.file, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 684, in test_is_sac_open_file
with open(self.file, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 693, in test_is_sacxy_bytes_io
with open(self.filexy, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 722, in test_is_sacxy_open_file_binary_mode
with open(self.filexy, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 105, in test_write_binary_headonly
sac = SACTrace.read(self.file, byteorder='little')
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 91, in test_write_sac
sac1 = SACTrace.read(self.file, byteorder='little')
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._is_sac_xy
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 118, in _is_sac_xy
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 130, in obspy.io.sac.core._is_sac_xy
Failed example:
_is_sac_xy(get_example_file('testxy.sac'))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.core._is_sac_xy[1]>", line 1, in <module>
_is_sac_xy(get_example_file('testxy.sac'))
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file testxy.sac in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 132, in obspy.io.sac.core._is_sac_xy
Failed example:
_is_sac_xy(get_example_file('test.sac'))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.core._is_sac_xy[2]>", line 1, in <module>
_is_sac_xy(get_example_file('test.sac'))
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file test.sac in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 131, in test_swap_bytes_via_obspy
trbe = read(self.filebe, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac.swap'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 283, in test_reference_time
tr = read(self.fileseis)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/seism.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 604, in test_write_via_obspy_to_bytes_io
tr = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 311, in test_undefined_b
tr = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 225, in test_propagate_modified_stats_strings_to_sactrace
tr = read(self.fileseis)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/seism.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 923, in test_wrong_encoding
tr0 = read(self.file_encode)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test_encode.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 60, in test_read_binary_headonly
sac = SACTrace.read(self.file, byteorder='little', headonly=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 43, in test_read_binary
sac = SACTrace.read(self.file, byteorder='little')
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 76, in test_read_sac_byteorder
sac = SACTrace.read(self.filebe, byteorder='big')
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac.swap'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 135, in test_read_sac_ascii
sac = SACTrace.read(self.filexy, ascii=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1088, in read
hf, hi, hs, data = _io.read_sac_ascii(source, headonly=headonly)
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/arrayio.py", line 225, in read_sac_ascii
contents = fh.read()
UnboundLocalError: local variable 'fh' referenced before assignment
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._internal_read_sac_xy
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 212, in _internal_read_sac_xy
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 238, in obspy.io.sac.core._internal_read_sac_xy
Failed example:
st = read("/path/to/testxy.sac")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.core._internal_read_sac_xy[1]>", line 1, in <module>
st = read("/path/to/testxy.sac")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file testxy.sac in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.validate
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1304, in validate
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1329, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
file_ = get_example_file("LMOW.BHE.SAC")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[2]>", line 1, in <module>
file_ = get_example_file("LMOW.BHE.SAC")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file LMOW.BHE.SAC in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1330, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
sac = SACTrace.read(file_)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[3]>", line 1, in <module>
sac = SACTrace.read(file_)
NameError: name 'file_' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1332, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
sac.delta *= -1.0
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[4]>", line 1, in <module>
sac.delta *= -1.0
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1333, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
try:
sac.validate('delta')
except SacInvalidContentError as e:
sac.delta *= -1.0
sac.validate('delta')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[5]>", line 2, in <module>
sac.validate('delta')
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1340, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
sac.data += 5.0
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[6]>", line 1, in <module>
sac.data += 5.0
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1341, in obspy.io.sac.sactrace.SACTrace.validate
Failed example:
try:
sac.validate('data_hdrs')
except SacInvalidContentError:
sac._flush_headers()
sac.validate('data_hdrs')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.validate[7]>", line 2, in <module>
sac.validate('data_hdrs')
NameError: name 'sac' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.to_obspy_trace
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1250, in to_obspy_trace
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1267, in obspy.io.sac.sactrace.SACTrace.to_obspy_trace
Failed example:
file_ = get_example_file("test.sac")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.to_obspy_trace[1]>", line 1, in <module>
file_ = get_example_file("test.sac")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file test.sac in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1268, in obspy.io.sac.sactrace.SACTrace.to_obspy_trace
Failed example:
sac = SACTrace.read(file_, headonly=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.to_obspy_trace[2]>", line 1, in <module>
sac = SACTrace.read(file_, headonly=True)
NameError: name 'file_' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1269, in obspy.io.sac.sactrace.SACTrace.to_obspy_trace
Failed example:
tr = sac.to_obspy_trace()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.to_obspy_trace[3]>", line 1, in <module>
tr = sac.to_obspy_trace()
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1270, in obspy.io.sac.sactrace.SACTrace.to_obspy_trace
Failed example:
print(tr) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.to_obspy_trace[4]>", line 1, in <module>
print(tr) # doctest: +ELLIPSIS
NameError: name 'tr' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.read
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1034, in read
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1070, in obspy.io.sac.sactrace.SACTrace.read
Failed example:
file_ = get_example_file("test.sac")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.read[2]>", line 1, in <module>
file_ = get_example_file("test.sac")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file test.sac in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1071, in obspy.io.sac.sactrace.SACTrace.read
Failed example:
sac = SACTrace.read(file_, headonly=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.read[3]>", line 1, in <module>
sac = SACTrace.read(file_, headonly=True)
NameError: name 'file_' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1072, in obspy.io.sac.sactrace.SACTrace.read
Failed example:
sac.data is None
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.read[4]>", line 1, in <module>
sac.data is None
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1074, in obspy.io.sac.sactrace.SACTrace.read
Failed example:
sac = SACTrace.read(file_, headonly=False)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.read[5]>", line 1, in <module>
sac = SACTrace.read(file_, headonly=False)
NameError: name 'file_' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1075, in obspy.io.sac.sactrace.SACTrace.read
Failed example:
sac.data # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.read[6]>", line 1, in <module>
sac.data # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'sac' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.listhdr
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1411, in listhdr
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1429, in obspy.io.sac.sactrace.SACTrace.listhdr
Failed example:
file_ = get_example_file("LMOW.BHE.SAC")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.listhdr[1]>", line 1, in <module>
file_ = get_example_file("LMOW.BHE.SAC")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file LMOW.BHE.SAC in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1430, in obspy.io.sac.sactrace.SACTrace.listhdr
Failed example:
sac = SACTrace.read(file_)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.listhdr[2]>", line 1, in <module>
sac = SACTrace.read(file_)
NameError: name 'file_' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1431, in obspy.io.sac.sactrace.SACTrace.listhdr
Failed example:
sac.lh() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace.listhdr[3]>", line 1, in <module>
sac.lh() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'sac' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace._allt
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1498, in _allt
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1521, in obspy.io.sac.sactrace.SACTrace._allt
Failed example:
file_ = get_example_file("test.sac")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace._allt[2]>", line 1, in <module>
file_ = get_example_file("test.sac")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file test.sac in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1522, in obspy.io.sac.sactrace.SACTrace._allt
Failed example:
sac = SACTrace.read(file_)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace._allt[3]>", line 1, in <module>
sac = SACTrace.read(file_)
NameError: name 'file_' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1523, in obspy.io.sac.sactrace.SACTrace._allt
Failed example:
sac.o = UTCDateTime(year=1982, julday=123,
hour=13, minute=37,
second=10, microsecond=103)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace._allt[4]>", line 3, in <module>
second=10, microsecond=103)
NameError: name 'sac' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/sactrace.py", line 1526, in obspy.io.sac.sactrace.SACTrace._allt
Failed example:
sac.iztype = 'io'
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.sactrace.SACTrace._allt[5]>", line 1, in <module>
sac.iztype = 'io'
NameError: name 'sac' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 521, in test_read_sac_from_open_file
with open(self.file, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 505, in test_read_sac_from_bytes_io
with open(self.file, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._is_sac
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 25, in _is_sac
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 37, in obspy.io.sac.core._is_sac
Failed example:
_is_sac(get_example_file('test.sac'))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.core._is_sac[1]>", line 1, in <module>
_is_sac(get_example_file('test.sac'))
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file test.sac in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/core.py", line 39, in obspy.io.sac.core._is_sac
Failed example:
_is_sac(get_example_file('test.mseed'))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.core._is_sac[2]>", line 1, in <module>
_is_sac(get_example_file('test.mseed'))
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file test.mseed in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 374, in test_not_used_but_given_headers
tr1 = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 864, in test_not_ascii
tr = read(self.file_notascii, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/non_ascii.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 254, in test_iztype11
tr = read(sod_file)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/dis.G.SCZ.__.BHE_short'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 438, in test_issue390
tr = read(self.file, headonly=True, debug_headers=True)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 158, in test_read_head_via_obspy
tr = read(self.file, format='SAC', headonly=True)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 117, in test_read_big_endian_via_obspy
tr = read(self.filebe, format='SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac.swap'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 196, in test_read_and_write_via_obspy
tr = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_core.py", line 413, in test_null_terminated_strings
tr = read(null_file)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/data/null_terminated.sac'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/tests/test_sacpz.py", line 37, in test_write_sacpz_single_channel
inv = read_inventory("/path/to/IU_ANMO_00_BHZ.xml")
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file IU_ANMO_00_BHZ.xml in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/__init__.py", line 26, in obspy.io.sac.__init__
Failed example:
st = read('/path/to/test.sac', debug_headers=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[1]>", line 1, in <module>
st = read('/path/to/test.sac', debug_headers=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file test.sac in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/__init__.py", line 27, in obspy.io.sac.__init__
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/__init__.py", line 29, in obspy.io.sac.__init__
Failed example:
print(st) #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[3]>", line 1, in <module>
print(st) #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/__init__.py", line 41, in obspy.io.sac.__init__
Failed example:
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[4]>", line 1, in <module>
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/__init__.py", line 54, in obspy.io.sac.__init__
Failed example:
print(st[0].stats.sac.dist)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[5]>", line 1, in <module>
print(st[0].stats.sac.dist)
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sac/__init__.py", line 59, in obspy.io.sac.__init__
Failed example:
st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sac.__init__[6]>", line 1, in <module>
st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/scardec/tests/test_core.py", line 92, in test_read_and_write_scardec_from_open_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/scardec/tests/data/test.scardec'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/scardec/tests/test_core.py", line 183, in test_is_scardec
self.assertTrue(_is_scardec(filename))
File "/usr/lib/python2.7/dist-packages/obspy/io/scardec/core.py", line 87, in _is_scardec
reset_fp=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/scardec/core.py", line 74, in _buffer_proxy
with open(filename_or_buf, file_mode) as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/scardec/tests/data/test.scardec'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/scardec/tests/test_core.py", line 42, in test_read_and_write_scardec_from_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/scardec/tests/data/test.scardec'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/scardec/tests/test_core.py", line 134, in test_read_and_write_scardec_from_bytes_io
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/scardec/tests/data/test.scardec'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seg2/tests/test_seg2.py", line 84, in test_read_data_format_2
st = read(basename + ".seg2.gz")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/seg2/tests/data/20130107_103041000.CET.3c.cont.0.seg2.gz'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 499, in test_writing_modified_date
segy = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/example.y_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 396, in test_writing_new_sampling_rate
segy = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 336, in test_read_and_write_trace_header
with open(file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 301, in test_read_and_write_textual_file_header
with open(file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 405, in test_unpack_binary_file_header
segy = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 564, in test_read_bytes_io
with open(file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/example.y_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 450, in test_unpack_trace_header
segy = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 52, in test_unpack_segy_data
with open(file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.segy.iread_segy
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 991, in iread_segy
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 1001, in obspy.io.segy.segy.iread_segy
Failed example:
filename = get_example_file("00001034.sgy_first_trace")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.segy.iread_segy[1]>", line 1, in <module>
filename = get_example_file("00001034.sgy_first_trace")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 00001034.sgy_first_trace in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 1003, in obspy.io.segy.segy.iread_segy
Failed example:
for tr in iread_segy(filename):
# Each Trace's stats attribute will have references to the file
# headers and some more information.
tf = tr.stats.segy.textual_file_header
bf = tr.stats.segy.binary_file_header
tfe = tr.stats.segy.textual_file_header_encoding
de = tr.stats.segy.data_encoding
e = tr.stats.segy.endian
# Also do something meaningful with each Trace.
print(int(tr.data.sum() * 1E9))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.segy.iread_segy[3]>", line 1, in <module>
for tr in iread_segy(filename):
NameError: name 'filename' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 65, in obspy.io.segy.__init__
Failed example:
filename = get_example_file("00001034.sgy_first_trace")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[2]>", line 1, in <module>
filename = get_example_file("00001034.sgy_first_trace")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 00001034.sgy_first_trace in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 66, in obspy.io.segy.__init__
Failed example:
st = _read_segy(filename)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[3]>", line 1, in <module>
st = _read_segy(filename)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 67, in obspy.io.segy.__init__
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[4]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 69, in obspy.io.segy.__init__
Failed example:
print(st) #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[5]>", line 1, in <module>
print(st) #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 79, in obspy.io.segy.__init__
Failed example:
st1 = _read_segy(filename)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[6]>", line 1, in <module>
st1 = _read_segy(filename)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 80, in obspy.io.segy.__init__
Failed example:
len(st1[0].stats.segy.trace_header)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[7]>", line 1, in <module>
len(st1[0].stats.segy.trace_header)
NameError: name 'st1' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 82, in obspy.io.segy.__init__
Failed example:
st1[0].stats.segy.trace_header.data_use # Unpacking a value on the fly.
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[8]>", line 1, in <module>
st1[0].stats.segy.trace_header.data_use # Unpacking a value on the fly.
NameError: name 'st1' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 84, in obspy.io.segy.__init__
Failed example:
len(st1[0].stats.segy.trace_header) # This value will remain unpacked.
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[9]>", line 1, in <module>
len(st1[0].stats.segy.trace_header) # This value will remain unpacked.
NameError: name 'st1' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 86, in obspy.io.segy.__init__
Failed example:
st2 = _read_segy(filename, unpack_trace_headers=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[10]>", line 1, in <module>
st2 = _read_segy(filename, unpack_trace_headers=True)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 87, in obspy.io.segy.__init__
Failed example:
len(st2[0].stats.segy.trace_header)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[11]>", line 1, in <module>
len(st2[0].stats.segy.trace_header)
NameError: name 'st2' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 103, in obspy.io.segy.__init__
Failed example:
segy = _read_segy(filename)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[13]>", line 1, in <module>
segy = _read_segy(filename)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 104, in obspy.io.segy.__init__
Failed example:
segy #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[14]>", line 1, in <module>
segy #doctest: +ELLIPSIS
NameError: name 'segy' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 106, in obspy.io.segy.__init__
Failed example:
print(segy)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[15]>", line 1, in <module>
print(segy)
NameError: name 'segy' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 127, in obspy.io.segy.__init__
Failed example:
segy = _read_segy(filename, headonly=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[17]>", line 1, in <module>
segy = _read_segy(filename, headonly=True)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 128, in obspy.io.segy.__init__
Failed example:
print(len(segy.traces[0].data))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[18]>", line 1, in <module>
print(len(segy.traces[0].data))
NameError: name 'segy' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/__init__.py", line 140, in obspy.io.segy.__init__
Failed example:
for trace in iread_segy(filename):
# Do something meaningful.
print(int(trace.data.sum() * 1E9))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.__init__[20]>", line 1, in <module>
for trace in iread_segy(filename):
NameError: name 'filename' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.core._read_segy
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 131, in _read_segy
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 165, in obspy.io.segy.core._read_segy
Failed example:
st = read("/path/to/00001034.sgy_first_trace")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_segy[1]>", line 1, in <module>
st = read("/path/to/00001034.sgy_first_trace")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 00001034.sgy_first_trace in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 166, in obspy.io.segy.core._read_segy
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_segy[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 168, in obspy.io.segy.core._read_segy
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_segy[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.segy.iread_su
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 1077, in iread_su
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 1087, in obspy.io.segy.segy.iread_su
Failed example:
filename = get_example_file("1.su_first_trace")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.segy.iread_su[1]>", line 1, in <module>
filename = get_example_file("1.su_first_trace")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 1.su_first_trace in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 1089, in obspy.io.segy.segy.iread_su
Failed example:
for tr in iread_su(filename):
# Each Trace's stats attribute will have some file-wide
# information.
de = tr.stats.su.data_encoding
e = tr.stats.su.endian
# Also do something meaningful with each Trace.
print(int(tr.data.sum()))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.segy.iread_su[3]>", line 1, in <module>
for tr in iread_su(filename):
NameError: name 'filename' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 519, in test_writing_starttime_timestamp_0
with open(file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 148, in test_setting_data_encoding_works
st = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 309, in test_reading_using_core
segy_file = _read_segy_internal(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 417, in test_reading_date
segy = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 174, in test_reading_and_writing_different_data_encodings
st = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_su.py", line 122, in test_read_bytes_io
with open(filename, 'rb') as fp:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_su.py", line 39, in test_read_and_write_su
with open(file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 435, in test_large_sample_rate_interval_raises
segy = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 597, in test_issue_377
st = _read_segy(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/one_trace_year_11.sgy'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_su.py", line 133, in test_iterative_reading
st = obspy.read(filename, unpack_trace_headers=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_su.py", line 61, in test_enforcing_byteorders_while_reading
su = _read_su(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 1314, in _read_su
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 573, in test_two_digit_years_segy
st = _read_segy(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/one_trace_year_11.sgy'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 384, in test_setting_delta_and_sampling_rate_in_stats
segy = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 348, in test_writing_using_core
segy_file = _read_segy_internal(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 585, in test_two_digit_years_su
st = _read_su(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 458, in _read_su
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 1314, in _read_su
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/one_trace_year_11.su'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 599, in test_iterative_reading
st = obspy.read(filename, unpack_trace_headers=True)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/example.y_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 81, in test_pack_segy_data
data = np.load(file + '.npy').ravel()
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 362, in load
fid = open(file, "rb")
IOError: [Errno 2] No such file or directory: u'/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace.npy'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 278, in test_read_and_write_binary_file_header
with open(file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.core._read_su
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 419, in _read_su
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 449, in obspy.io.segy.core._read_su
Failed example:
st = read("/path/to/1.su_first_trace")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_su[1]>", line 1, in <module>
st = read("/path/to/1.su_first_trace")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 1.su_first_trace in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 450, in obspy.io.segy.core._read_su
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_su[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 452, in obspy.io.segy.core._read_su
Failed example:
print(st) #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.segy.core._read_su[3]>", line 1, in <module>
print(st) #doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 50, in test_is_segy_file
self.assertEqual(_is_segy(file), True)
AssertionError: False != True
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 82, in test_read_head_only
st = _read_segy(file, headonly=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 204, in test_not_matching_data_encoding_and_dtype_raises
st = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 614, in test_comparing_still_packed_trace_headers
header_a = read(file)[0].stats.segy.trace_header
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 289, in test_enforcing_endianness_while_reading
st1 = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_su.py", line 79, in test_reading_and_writing_different_byteorders
su = _read_su(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 1314, in _read_su
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_su.py", line 109, in test_unpacking_su_data
su = _read_su(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 1314, in _read_su
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 234, in test_enforcing_textual_header_encoding_while_writing
st1 = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 219, in test_invalid_data_encoding_raises
st = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 125, in test_enforcing_endianness_while_writing
st1 = _read_segy(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 99, in test_enforcing_textual_header_encoding_while_reading
st1 = _read_segy(file, textual_header_encoding='EBCDIC')
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 374, in test_invalid_values_for_textual_header_encoding
textual_header_encoding='BLUB')
File "/usr/lib/python2.7/unittest/case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_core.py", line 65, in test_is_su_file
self.assertEqual(_is_su(file), False)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/core.py", line 410, in _is_su
with open(filename, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 358, in test_read_and_write_segy
with open(file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 397, in test_read_and_write_segy_headonly
self.test_read_and_write_segy(headonly=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/test_segy.py", line 358, in test_read_and_write_segy
with open(file, 'rb') as f:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seisan.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/__init__.py", line 23, in obspy.io.seisan.__init__
Failed example:
st = read("/path/to/2001-01-13-1742-24S.KONO__004")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.__init__[1]>", line 1, in <module>
st = read("/path/to/2001-01-13-1742-24S.KONO__004")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 2001-01-13-1742-24S.KONO__004 in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/__init__.py", line 24, in obspy.io.seisan.__init__
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.__init__[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/__init__.py", line 26, in obspy.io.seisan.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.__init__[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/__init__.py", line 37, in obspy.io.seisan.__init__
Failed example:
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.__init__[4]>", line 1, in <module>
print(st[0].stats) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/__init__.py", line 52, in obspy.io.seisan.__init__
Failed example:
print(st[0].data)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.__init__[5]>", line 1, in <module>
print(st[0].data)
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seisan.core._read_seisan
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/core.py", line 117, in _read_seisan
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/core.py", line 133, in obspy.io.seisan.core._read_seisan
Failed example:
st = read("/path/to/2001-01-13-1742-24S.KONO__004")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.core._read_seisan[1]>", line 1, in <module>
st = read("/path/to/2001-01-13-1742-24S.KONO__004")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 2001-01-13-1742-24S.KONO__004 in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/core.py", line 134, in obspy.io.seisan.core._read_seisan
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.core._read_seisan[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/core.py", line 136, in obspy.io.seisan.core._read_seisan
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seisan.core._read_seisan[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/tests/test_core.py", line 72, in test_read_seisan
st = _read_seisan(fn)
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/core.py", line 144, in _read_seisan
fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/seisan/tests/data/9701-30-1048-54S.MVO_21_1'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/tests/test_core.py", line 125, in test_read_seisan_head_only
st = _read_seisan(fn, headonly=True)
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/core.py", line 144, in _read_seisan
fh = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/seisan/tests/data/9701-30-1048-54S.MVO_21_1'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/tests/test_core.py", line 34, in test_get_version
with open(fn, 'rb') as fp:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/seisan/tests/data/1996-06-03-1917-52S.TEST__002'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/tests/test_core.py", line 197, in test_read_obspy
'2011-09-06-1311-36S.A1032_001BH_Z'))
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/seisan/tests/data/2011-09-06-1311-36S.A1032_001BH_Z'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seisan/tests/test_core.py", line 56, in test_is_seisan
self.assertTrue(_is_seisan(fn))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 266, in test_write_xslt_neries_events
catalog = _read_quakeml(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 227, in test_write_xslt_magnitude
'quakeml_1.2_magnitude.sc3ml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_magnitude.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_magnitude.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 251, in test_write_xslt_pick
'quakeml_1.2_pick.sc3ml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_pick.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_pick.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 222, in test_write_xslt_origin
path=self.quakeml_path)
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_origin.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_origin.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 286, in test_write_xslt_example
'qml-example-1.2-RC3.sc3ml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 217, in test_write_xslt_event
path=self.quakeml_path)
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_event.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_event.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 261, in test_write_xslt_iris_events
path=self.quakeml_path)
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/iris_events.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/iris_events.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 256, in test_write_xslt_focalmechanism
path=self.quakeml_path)
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_focalmechanism.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_focalmechanism.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 233, in test_write_xslt_station_magnitude_contribution
'quakeml_1.2_stationmagnitudecontributions.sc3ml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitudecontributions.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitudecontributions.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 238, in test_write_xslt_station_magnitude
'quakeml_1.2_stationmagnitude.sc3ml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitude.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitude.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 147, in test_read_xslt_iris_events
self.cmp_read_xslt_file('iris_events.sc3ml', 'iris_events_res.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/iris_events.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/iris_events.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 143, in test_read_xslt_focalmechanism
'quakeml_1.2_focalmechanism_res.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_focalmechanism.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_focalmechanism.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 197, in test_read_string
with open(filename, 'rb') as fp:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.sc3ml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 209, in test_read_quakeml
read_events(filename, format='SC3ML')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 163, in test_read_id_prefix
catalog = _read_sc3ml(filename, id_prefix='quakeml:obspy.org/')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/event.py", line 63, in _read_sc3ml
sc3ml_doc = _xml_doc_from_anything(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3_wrong_id.sc3ml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 155, in test_read_example
catalog = _read_sc3ml(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/event.py", line 63, in _read_sc3ml
sc3ml_doc = _xml_doc_from_anything(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.sc3ml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 151, in test_read_xslt_example
'qml-example-1.2-RC3.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 110, in test_read_xslt_event
'quakeml_1.2_event_res.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_event.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_event.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 131, in test_read_xslt_data_used_in_moment_tensor
'quakeml_1.2_data_used.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_data_used.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_data_used.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 135, in test_read_xslt_arrival
'quakeml_1.2_arrival_res.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_arrival.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_arrival.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_core.py", line 45, in test_validate
self.assertTrue(validate(filename))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_core.py", line 41, in test_sc3ml_no_version_attribute
self.assertTrue(_is_sc3ml(filename))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_core.py", line 37, in test_sc3ml_versions
self.assertTrue(_is_sc3ml(filename))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 282, in test_write_xslt_usgs_events
validate=False)
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/usgs_event.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/usgs_event.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seiscomp.event._read_sc3ml
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/event.py", line 31, in _read_sc3ml
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/event.py", line 57, in obspy.io.seiscomp.event._read_sc3ml
Failed example:
cat = read_events('/path/to/iris_events.sc3ml')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seiscomp.event._read_sc3ml[1]>", line 1, in <module>
cat = read_events('/path/to/iris_events.sc3ml')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file iris_events.sc3ml in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/event.py", line 58, in obspy.io.seiscomp.event._read_sc3ml
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.seiscomp.event._read_sc3ml[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 311, in test_read_and_write
catalog = read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3_write.sc3ml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 247, in test_write_xslt_arrival
path=self.quakeml_path)
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_arrival.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_arrival.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 242, in test_write_xslt_data_used_in_moment_tensor
'quakeml_1.2_data_used.sc3ml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_data_used.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_data_used.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 118, in test_read_xslt_magnitude
'quakeml_1.2_magnitude.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_magnitude.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_magnitude.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 114, in test_read_xslt_origin
'quakeml_1.2_origin_res.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_origin.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_origin.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 139, in test_read_xslt_pick
'quakeml_1.2_pick.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_pick.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_pick.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 127, in test_read_xslt_station_magnitude
'quakeml_1.2_stationmagnitude.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitude.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitude.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 123, in test_read_xslt_station_magnitude_contribution
'quakeml_1.2_stationmagnitudecontributions.xml')
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitudecontributions.sc3ml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitudecontributions.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 90, in test_sc3ml_versions
read_events(filename)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/version0.5'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 290, in test_write_example
catalog = _read_quakeml(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 300, in test_write_remove_events
catalog = _read_quakeml(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python2.7/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/test_core.py", line 125, in test_read_and_write_multi_channel_asc_file
stream1 = _read_asc(origfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 133, in _read_asc
fh = open(filename, 'rt')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/data/QFILE-TEST-ASC.ASC'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/test_core.py", line 149, in test_read_and_write_multi_channel_asc_file_via_obspy
stream1 = read(origfile, format="SH_ASC")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/data/QFILE-TEST-ASC.ASC'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/test_core.py", line 33, in test_read_101_traces
stream = _read_q(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 384, in _read_q
raise IOError(msg % data_file)
IOError: Can't find corresponding QBN file at /usr/lib/python2.7/dist-packages/obspy/io/sh/tests/data/101.QBN.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/test_core.py", line 63, in test_read_single_channel_asc_file
stream = _read_asc(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 133, in _read_asc
fh = open(filename, 'rt')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/data/TEST_090101_0101.ASC'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/test_core.py", line 239, in test_skip_asc_lines
stream = _read_asc(testfile, skip=100, delta=0.1, length=2)
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 133, in _read_asc
fh = open(filename, 'rt')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/data/QFILE-TEST-ASC.ASC'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/test_core.py", line 169, in test_read_and_write_multi_channel_q_file
stream1 = _read_q(origfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 384, in _read_q
raise IOError(msg % data_file)
IOError: Can't find corresponding QBN file at /usr/lib/python2.7/dist-packages/obspy/io/sh/tests/data/QFILE-TEST.QBN.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/test_core.py", line 206, in test_read_and_write_multi_channel_q_file_via_obspy
stream1 = read(origfile, format="Q")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/data/QFILE-TEST.QHD'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sh.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/__init__.py", line 23, in obspy.io.sh.__init__
Failed example:
st = read("/path/to/QFILE-TEST-ASC.ASC")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.__init__[1]>", line 1, in <module>
st = read("/path/to/QFILE-TEST-ASC.ASC")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file QFILE-TEST-ASC.ASC in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/__init__.py", line 24, in obspy.io.sh.__init__
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.__init__[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/__init__.py", line 26, in obspy.io.sh.__init__
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.__init__[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/__init__.py", line 36, in obspy.io.sh.__init__
Failed example:
print(st[0].stats) #doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.__init__[4]>", line 1, in <module>
print(st[0].stats) #doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/__init__.py", line 50, in obspy.io.sh.__init__
Failed example:
print(st[0].stats.sh['COMMENT'])
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.__init__[5]>", line 1, in <module>
print(st[0].stats.sh['COMMENT'])
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/__init__.py", line 55, in obspy.io.sh.__init__
Failed example:
st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.__init__[6]>", line 1, in <module>
st[0].data #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sh.core._read_asc
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 96, in _read_asc
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 124, in obspy.io.sh.core._read_asc
Failed example:
st = read("/path/to/QFILE-TEST-ASC.ASC")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.core._read_asc[1]>", line 1, in <module>
st = read("/path/to/QFILE-TEST-ASC.ASC")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file QFILE-TEST-ASC.ASC in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 125, in obspy.io.sh.core._read_asc
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.core._read_asc[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 127, in obspy.io.sh.core._read_asc
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.core._read_asc[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/test_core.py", line 42, in test_is_asc_file
self.assertEqual(_is_asc(testfile), True)
AssertionError: False != True
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sh.core._read_q
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 326, in _read_q
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 367, in obspy.io.sh.core._read_q
Failed example:
st = read("/path/to/QFILE-TEST.QHD")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.core._read_q[1]>", line 1, in <module>
st = read("/path/to/QFILE-TEST.QHD")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file QFILE-TEST.QHD in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 368, in obspy.io.sh.core._read_q
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.core._read_q[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/core.py", line 370, in obspy.io.sh.core._read_q
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.sh.core._read_q[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/sh/tests/test_core.py", line 51, in test_is_q_file
self.assertEqual(_is_q(testfile), True)
AssertionError: False != True
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.shapefile.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/shapefile/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/shapefile/__init__.py", line 14, in obspy.io.shapefile.__init__
Failed example:
cat = read_events() # load example data
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.shapefile.__init__[3]>", line 1, in <module>
cat = read_events() # load example data
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file neries_events.xml in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/test_station_text_parsing.py", line 204, in test_reading_station_file
inv = read_fdsn_station_text_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/core.py", line 160, in read_fdsn_station_text_file
encoding="utf8") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/data/station_level_fdsn.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/test_station_text_parsing.py", line 119, in test_reading_network_file
inv = read_fdsn_station_text_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/core.py", line 160, in read_fdsn_station_text_file
encoding="utf8") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/data/network_level_fdsn.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/test_station_text_parsing.py", line 567, in test_reading_channel_without_response_info
inv = read_fdsn_station_text_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/core.py", line 160, in read_fdsn_station_text_file
encoding="utf8") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/data/log_channel_fdsn.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.stationtxt.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/__init__.py", line 2, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/__init__.py", line 24, in obspy.io.stationtxt.__init__
Failed example:
inv = obspy.read_inventory("/path/to/channel_level_fdsn.txt")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.stationtxt.__init__[1]>", line 1, in <module>
inv = obspy.read_inventory("/path/to/channel_level_fdsn.txt")
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file channel_level_fdsn.txt in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/__init__.py", line 25, in obspy.io.stationtxt.__init__
Failed example:
print(inv) # # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.stationtxt.__init__[2]>", line 1, in <module>
print(inv) # # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'inv' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/test_station_text_parsing.py", line 49, in test_is_txt_file
self.assertTrue(is_fdsn_station_text_file(filename))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/test_station_text_parsing.py", line 659, in test_parsing_files_with_no_endtime
inv_a = read_fdsn_station_text_file(file_a)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/core.py", line 160, in read_fdsn_station_text_file
encoding="utf8") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/data/network_level_fdsn.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/test_station_text_parsing.py", line 630, in test_parsing_faulty_header_at_channel_level
inv_good = read_fdsn_station_text_file(good_file)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/core.py", line 160, in read_fdsn_station_text_file
encoding="utf8") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/data/channel_level_fdsn.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/test_station_text_parsing.py", line 407, in test_reading_channel_file
inv = read_fdsn_station_text_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/core.py", line 160, in read_fdsn_station_text_file
encoding="utf8") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/data/channel_level_fdsn.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/test_station_text_parsing.py", line 854, in test_read_write_stationtxt
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/data/network_level_fdsn.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/test_station_text_parsing.py", line 477, in test_reading_unicode_file
inv = read_fdsn_station_text_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/core.py", line 160, in read_fdsn_station_text_file
encoding="utf8") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/stationtxt/tests/data/unicode_example_fdsn.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 671, in test_stationxml_with_availability
inv = obspy.read_inventory(filename, format="stationxml")
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/stationxml_with_availability.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/stationxml_with_availability.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 1080, in test_reading_channel_without_coordinates
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/channel_without_coordinates.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/channel_without_coordinates.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 765, in test_write_with_extra_tags_namespace_redef
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/stationxml_with_availability.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/stationxml_with_availability.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 244, in test_reading_other_module_tags
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/minimal_with_non_obspy_module_and_sender_tags_station.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/minimal_with_non_obspy_module_and_sender_tags_station.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 1065, in test_reading_file_with_empty_channel_object
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/empty_channel.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/empty_channel.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 101, in test_different_write_levels
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/stationxml_BK.CMB.__.LKS.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/stationxml_BK.CMB.__.LKS.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 83, in test_is_stationxml
self.assertTrue(obspy.io.stationxml.core._is_stationxml(stat))
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/minimal_station.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/minimal_station.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 698, in test_parse_file_with_no_default_namespace
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/no_default_namespace.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/no_default_namespace.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 711, in test_parse_file_with_schema_2
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/version20.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/version20.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 369, in test_reading_and_writing_full_station_tag
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/full_station_field_station.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/full_station_field_station.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 255, in test_reading_and_writing_full_root_tag
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/minimal_with_non_obspy_module_and_sender_tags_station.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/minimal_with_non_obspy_module_and_sender_tags_station.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 284, in test_reading_and_writing_full_network_tag
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/full_network_field_station.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/full_network_field_station.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 604, in test_reading_and_writing_channel_with_response
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/IRIS_single_channel_with_response.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/IRIS_single_channel_with_response.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 199, in test_read_and_write_full_file
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/full_random_stationxml.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/full_random_stationxml.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 146, in test_read_and_write_minimal_file
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/minimal_station.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/minimal_station.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 896, in test_write_with_extra_tags_and_read
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/IRIS_single_channel_with_response_custom_tags.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/IRIS_single_channel_with_response_custom_tags.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/test_stationxml.py", line 176, in test_subsecond_read_and_write_minimal_file
inv = obspy.read_inventory(filename)
File "<decorator-gen-45>", line 2, in read_inventory
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/core.py", line 68, in _is_stationxml
xmldoc = etree.parse(path_or_file_object)
File "src/lxml/lxml.etree.pyx", line 3427, in lxml.etree.parse (src/lxml/lxml.etree.c:85131)
File "src/lxml/parser.pxi", line 1782, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:124005)
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:124374)
File "src/lxml/parser.pxi", line 1712, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:123169)
File "src/lxml/parser.pxi", line 1115, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:117533)
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510)
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276)
File "src/lxml/parser.pxi", line 611, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111078)
IOError: Error reading file '/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/minimal_station_with_microseconds.xml': failed to load external entity "/usr/lib/python2.7/dist-packages/obspy/io/stationxml/tests/data/minimal_station_with_microseconds.xml"
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.wav.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/__init__.py", line 22, in obspy.io.wav.__init__
Failed example:
st = read("/path/to/3cssan.near.8.1.RNON.wav")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.__init__[1]>", line 1, in <module>
st = read("/path/to/3cssan.near.8.1.RNON.wav")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 3cssan.near.8.1.RNON.wav in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/__init__.py", line 23, in obspy.io.wav.__init__
Failed example:
print(st) #doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.__init__[2]>", line 1, in <module>
print(st) #doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/__init__.py", line 33, in obspy.io.wav.__init__
Failed example:
print(st[0].stats) #doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.__init__[3]>", line 1, in <module>
print(st[0].stats) #doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/__init__.py", line 48, in obspy.io.wav.__init__
Failed example:
st[0].data
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.__init__[4]>", line 1, in <module>
st[0].data
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.wav.core._read_wav
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/core.py", line 69, in _read_wav
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/core.py", line 88, in obspy.io.wav.core._read_wav
Failed example:
st = read("/path/to/3cssan.near.8.1.RNON.wav")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.core._read_wav[1]>", line 1, in <module>
st = read("/path/to/3cssan.near.8.1.RNON.wav")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file 3cssan.near.8.1.RNON.wav in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/core.py", line 89, in obspy.io.wav.core._read_wav
Failed example:
print(st) #doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.wav.core._read_wav[2]>", line 1, in <module>
print(st) #doctest: +NORMALIZE_WHITESPACE
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/tests/test_core.py", line 92, in test_rescale_on_write
tr = read(self.file, format='WAV')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/wav/tests/data/3cssan.reg.8.1.RNON.wav'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/tests/test_core.py", line 113, in test_write_stream_via_obspy
tr = read(self.file, format='WAV')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/wav/tests/data/3cssan.reg.8.1.RNON.wav'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/tests/test_core.py", line 56, in test_read_head_via_obspy
tr = read(self.file, headonly=True)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/wav/tests/data/3cssan.near.8.1.RNON.wav'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/tests/test_core.py", line 43, in test_read_via_obspy
tr = read(self.file)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/wav/tests/data/3cssan.near.8.1.RNON.wav'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/wav/tests/test_core.py", line 70, in test_read_and_write_via_obspy
tr = read(self.file, format='WAV')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/wav/tests/data/3cssan.reg.8.1.RNON.wav'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/win/tests/test_core.py", line 52, in test_read_via_module
st = _read_win(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/win/core.py", line 74, in _read_win
with open(filename, "rb") as fpin:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/win/tests/data/10030302.00'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/win/tests/test_core.py", line 32, in test_read_via_obspy
st = read(filename)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/win/tests/data/10030302.00'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 515, in test_create_resp_from_xseed
sp1 = Parser(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 295, in test_create_read_assert_and_write_xseed
f = open(xsd_path, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/xml-seed-1.0.xsd'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 100, in test_get_inventory
p = Parser(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 476, in test_get_coordinates
sp = Parser(os.path.join(self.path, 'dataless.seed.BW_RJOB'))
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 458, in test_get_paz_from_xseed
sp1 = Parser(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 341, in test_get_paz
sp = Parser(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 709, in test_issue_157
parser.read(filename2)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 49, in test_issue165
parser.read(file)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 675, in test_issue_298b
parser = Parser(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 667, in test_issue_298a
parser = Parser(file)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_scripts.py", line 81, in test_dataless2xseed
self.assertEqual(expected, out.stdout)
AssertionError: u'Found 1 files.\nParsing file /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/dataless.seed.BW_FURT\n' != 'Found 1 files.\n'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_scripts.py", line 41, in test_dataless2resp
self.assertEqual(expected, out.stdout)
AssertionError: u'Found 1 files.\nParsing file /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/dataless.seed.BW_FURT\n' != 'Found 1 files.\n'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_scripts.py", line 57, in test_dataless2resp_zipped
self.assertEqual(expected, out.stdout)
AssertionError: u'Found 1 files.\nParsing file /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/dataless.seed.BW_FURT\n' != 'Found 1 files.\n'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 816, in test_underline_in_site_name
parser.read(filename)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 79, in test_string
p = Parser(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 754, in test_split_stations_dataless_to_xseed
parser.read(filename)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.xseed.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/__init__.py", line 27, in obspy.io.xseed.__init__
Failed example:
sp = Parser("/path/to/dataless.seed.BW_FURT")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.xseed.__init__[1]>", line 1, in <module>
sp = Parser("/path/to/dataless.seed.BW_FURT")
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file dataless.seed.BW_FURT in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_utils.py", line 82, in test_is_resp
"_is_resp() returns %s for file %s" % (got, filename))
AssertionError: _is_resp() returns False for file /usr/lib/python2.7/dist-packages/obspy/signal/tests/data/RESP.NZ.CRLZ.10.HHZ.mac
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_scripts.py", line 125, in test_xseed2dataless
self.assertEqual(expected, out.stdout)
AssertionError: u'Found 1 files.\nParsing file /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/dataless.seed.BW_FURT.xml\n' != 'Found 1 files.\n'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_scripts.py", line 103, in test_dataless2xseed_split
self.assertEqual(expected, out.stdout)
AssertionError: u'Found 1 files.\nParsing file /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/CL.AIO.dataless\n' != 'Found 1 files.\n'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 768, in test_rotation_to_zne
"II_COCO_three_channel_borehole.mseed"))
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/II_COCO_three_channel_borehole.mseed'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 503, in test_select_does_not_change_the_parser_format
p = Parser(os.path.join(self.path, "dataless.seed.BW_FURT.xml"))
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 692, in test_issue_319
parser = Parser(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 726, in test_issue_358
parser.read(filename)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 736, in test_issue_361
parser.read(filename)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 260, in test_read_and_write_seed
f = open(file, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/dataless.seed.BW_ZUGS'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 325, in test_read_full_seed
sp = Parser(filename)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 543, in test_read_resp
p = Parser(sts2_resp_file)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 559, in test_read_resp_data
with open(sts2_resp_file, "rt") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/RESP.XX.NS085..BHZ.STS2_gen3.120.1500'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_parser.py", line 595, in test_resp_round_trip
seed_p = Parser(single_seed)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<decorator-gen-53>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
IOError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.xseed.parser.is_xseed
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 2422, in is_xseed
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 2429, in obspy.io.xseed.parser.is_xseed
Failed example:
xseed_file = get_example_file("dataless.seed.BW_FURT.xml")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.xseed.parser.is_xseed[1]>", line 1, in <module>
xseed_file = get_example_file("dataless.seed.BW_FURT.xml")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file dataless.seed.BW_FURT.xml in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 2430, in obspy.io.xseed.parser.is_xseed
Failed example:
is_xseed(xseed_file)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.xseed.parser.is_xseed[2]>", line 1, in <module>
is_xseed(xseed_file)
NameError: name 'xseed_file' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 2432, in obspy.io.xseed.parser.is_xseed
Failed example:
stationxml_file = get_example_file("IU_ANMO_00_BHZ.xml")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.xseed.parser.is_xseed[3]>", line 1, in <module>
stationxml_file = get_example_file("IU_ANMO_00_BHZ.xml")
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file IU_ANMO_00_BHZ.xml in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/parser.py", line 2433, in obspy.io.xseed.parser.is_xseed
Failed example:
is_xseed(stationxml_file)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.xseed.parser.is_xseed[4]>", line 1, in <module>
is_xseed(stationxml_file)
NameError: name 'stationxml_file' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/test_core.py", line 83, in setUp
assert os.path.exists(_i), _i
AssertionError: /usr/lib/python2.7/dist-packages/obspy/io/xseed/tests/data/AI.ESPZ._.BHE.dataless
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/y/tests/test_core.py", line 26, in test_is_y_file
self.assertEqual(_is_y(testfile), True)
AssertionError: False != True
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.y.core._read_y
File "/usr/lib/python2.7/dist-packages/obspy/io/y/core.py", line 134, in _read_y
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/y/core.py", line 153, in obspy.io.y.core._read_y
Failed example:
st = read("/path/to/YAYT_BHZ_20021223.124800")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.y.core._read_y[1]>", line 1, in <module>
st = read("/path/to/YAYT_BHZ_20021223.124800")
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file YAYT_BHZ_20021223.124800 in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/y/core.py", line 154, in obspy.io.y.core._read_y
Failed example:
st # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.y.core._read_y[2]>", line 1, in <module>
st # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/y/core.py", line 156, in obspy.io.y.core._read_y
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.y.core._read_y[3]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/y/tests/test_core.py", line 35, in test_read_y_file
st = _read_y(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/y/core.py", line 173, in _read_y
with open(filename, 'rb') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/y/tests/data/YAYT_BHZ_20021223.124800'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/y/tests/test_core.py", line 56, in test_ignore_non_ascii_tag_station_info
st = _read_y(testfile)
File "/usr/lib/python2.7/dist-packages/obspy/io/y/core.py", line 173, in _read_y
with open(filename, 'rb') as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/io/y/tests/data/YAZRSPE.20100119.060433'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.zmap.__init__
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/__init__.py", line 22, in obspy.io.zmap.__init__
Failed example:
cat = read_events('/path/to/zmap_events.txt')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.zmap.__init__[1]>", line 1, in <module>
cat = read_events('/path/to/zmap_events.txt')
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file zmap_events.txt in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/__init__.py", line 23, in obspy.io.zmap.__init__
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.zmap.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.zmap.core._is_zmap
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/core.py", line 1, in _is_zmap
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/core.py", line 17, in obspy.io.zmap.core._is_zmap
Failed example:
_is_zmap('/path/to/zmap_events.txt')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.io.zmap.core._is_zmap[0]>", line 1, in <module>
_is_zmap('/path/to/zmap_events.txt')
File "<decorator-gen-51>", line 2, in _is_zmap
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file zmap_events.txt in tests/data or data directory of ObsPy modules
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/test_zmap.py", line 31, in setUp
self.catalog = read_events(path_to_catalog)
File "<decorator-gen-42>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<decorator-gen-41>", line 2, in read_events
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<decorator-gen-43>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/io/zmap/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/realtime/tests/test_signal.py", line 33, in setUpClass
dtype=np.float64)[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/realtime/tests/data/II.TLY.BHZ.SAC'
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.realtime.rttrace.RtTrace
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 40, in RtTrace
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 71, in obspy.realtime.rttrace.RtTrace
Failed example:
data_trace = read('/path/to/II.TLY.BHZ.SAC')[0]
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[3]>", line 1, in <module>
data_trace = read('/path/to/II.TLY.BHZ.SAC')[0]
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 296, in _map_example_filename
args[ind] = get_example_file(args[ind][9:])
File "/usr/lib/python2.7/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file II.TLY.BHZ.SAC in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 72, in obspy.realtime.rttrace.RtTrace
Failed example:
len(data_trace)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[4]>", line 1, in <module>
len(data_trace)
NameError: name 'data_trace' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 74, in obspy.realtime.rttrace.RtTrace
Failed example:
ref_time_offset = data_trace.stats.sac.a
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[5]>", line 1, in <module>
ref_time_offset = data_trace.stats.sac.a
NameError: name 'data_trace' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 75, in obspy.realtime.rttrace.RtTrace
Failed example:
print(ref_time_offset)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[6]>", line 1, in <module>
print(ref_time_offset)
NameError: name 'ref_time_offset' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 77, in obspy.realtime.rttrace.RtTrace
Failed example:
epicentral_distance = data_trace.stats.sac.gcarc
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[7]>", line 1, in <module>
epicentral_distance = data_trace.stats.sac.gcarc
NameError: name 'data_trace' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 78, in obspy.realtime.rttrace.RtTrace
Failed example:
print(epicentral_distance)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[8]>", line 1, in <module>
print(epicentral_distance)
NameError: name 'epicentral_distance' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 83, in obspy.realtime.rttrace.RtTrace
Failed example:
traces = data_trace / 3
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[9]>", line 1, in <module>
traces = data_trace / 3
NameError: name 'data_trace' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 84, in obspy.realtime.rttrace.RtTrace
Failed example:
[len(tr) for tr in traces]
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[10]>", line 1, in <module>
[len(tr) for tr in traces]
NameError: name 'traces' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 92, in obspy.realtime.rttrace.RtTrace
Failed example:
rt_trace.register_rt_process('mwpintegral', mem_time=240,
ref_time=(data_trace.stats.starttime + ref_time_offset),
max_time=120, gain=1.610210e+09)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[13]>", line 2, in <module>
ref_time=(data_trace.stats.starttime + ref_time_offset),
NameError: name 'data_trace' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 99, in obspy.realtime.rttrace.RtTrace
Failed example:
for tr in traces:
processed_trace = rt_trace.append(tr, gap_overlap_check=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[14]>", line 1, in <module>
for tr in traces:
NameError: name 'traces' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 102, in obspy.realtime.rttrace.RtTrace
Failed example:
len(rt_trace)
Expected:
12684
Got:
0
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 107, in obspy.realtime.rttrace.RtTrace
Failed example:
peak = np.amax(np.abs(rt_trace.data))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[16]>", line 1, in <module>
peak = np.amax(np.abs(rt_trace.data))
File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 2268, in amax
out=out, keepdims=keepdims)
File "/usr/lib/python2.7/dist-packages/numpy/core/_methods.py", line 26, in _amax
return umr_maximum(a, axis, None, out, keepdims)
ValueError: zero-size array to reduction operation maximum which has no identity
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 108, in obspy.realtime.rttrace.RtTrace
Failed example:
print(peak)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[17]>", line 1, in <module>
print(peak)
NameError: name 'peak' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 110, in obspy.realtime.rttrace.RtTrace
Failed example:
mwp = calculate_mwp_mag(peak, epicentral_distance)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[18]>", line 1, in <module>
mwp = calculate_mwp_mag(peak, epicentral_distance)
NameError: name 'peak' is not defined
----------------------------------------------------------------------
File "/usr/lib/python2.7/dist-packages/obspy/realtime/rttrace.py", line 111, in obspy.realtime.rttrace.RtTrace
Failed example:
print(mwp) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.7/doctest.py", line 1315, in __run
compileflags, 1) in test.globs
File "<doctest obspy.realtime.rttrace.RtTrace[19]>", line 1, in <module>
print(mwp) # doctest: +ELLIPSIS
NameError: name 'mwp' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/scripts/tests/test_print.py", line 32, in test_print_nomerge
obspy_print(['--no-merge'] + self.all_files)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/print.py", line 35, in main
st += read(f, format=args.format)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/scripts/tests/../../io/ascii/tests/data/slist.ascii'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/scripts/tests/test_print.py", line 23, in test_print
obspy_print(self.all_files)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/print.py", line 35, in main
st += read(f, format=args.format)
File "<decorator-gen-31>", line 2, in read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<decorator-gen-32>", line 2, in _read
File "/usr/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
IOError: File not found '/usr/lib/python2.7/dist-packages/obspy/scripts/tests/../../io/ascii/tests/data/slist.ascii'
>>> Cannot import test suite for module obspy.signal due to:
------------------------------------------------------------
File "/usr/bin/obspy-runtests", line 9, in <module>
load_entry_point('obspy==1.1.0', 'console_scripts', 'obspy-runtests')()
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 738, in main
errors = run(argv, interactive)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 706, in run
pr_url=args.pr_url)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 533, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "/usr/lib/python2.7/dist-packages/obspy/scripts/runtests.py", line 154, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "/usr/lib/python2.7/unittest/loader.py", line 115, in loadTestsFromName
test = obj()
File "/usr/lib/python2.7/dist-packages/obspy/signal/tests/__init__.py", line 17, in suite
add_unittests(suite, MODULE_NAME)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 72, in add_unittests
fromlist=[native_str("obspy")])
File "/usr/lib/python2.7/dist-packages/obspy/signal/tests/test_spectral_estimation.py", line 69, in <module>
_sample_data = _internal_get_sample_data()
File "/usr/lib/python2.7/dist-packages/obspy/signal/tests/test_spectral_estimation.py", line 42, in _internal_get_sample_data
with gzip.open(file_data) as f:
File "/usr/lib/python2.7/gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "/usr/lib/python2.7/gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: u'/usr/lib/python2.7/dist-packages/obspy/signal/tests/data/BW.KW1._.EHZ.D.2011.090_downsampled.asc.gz'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_plotting.py", line 42, in test_spherical_many_phases
plt.savefig(ic.name)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
IOError: Baseline image u'/usr/lib/python2.7/dist-packages/obspy/taup/tests/images/spherical_many_phases.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_plotting.py", line 55, in test_spherical_many_phases_buried_station
plt.savefig(ic.name)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
IOError: Baseline image u'/usr/lib/python2.7/dist-packages/obspy/taup/tests/images/spherical_many_phases_buried_station.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_plotting.py", line 183, in test_plot_travel_times_convenience
plt.savefig(ic.name)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
IOError: Baseline image u'/usr/lib/python2.7/dist-packages/obspy/taup/tests/images/traveltimes_many_phases_multiple_degrees.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_plotting.py", line 95, in test_spherical_diff_phases
plt.savefig(ic.name)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
IOError: Baseline image u'/usr/lib/python2.7/dist-packages/obspy/taup/tests/images/spherical_diff_phases.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_plotting.py", line 132, in test_cartesian_many_phases_one_way
plt.savefig(ic.name)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
IOError: Baseline image u'/usr/lib/python2.7/dist-packages/obspy/taup/tests/images/cartesian_many_phases_one_way.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_plotting.py", line 164, in test_plot_travel_times
plt.savefig(ic.name)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
IOError: Baseline image u'/usr/lib/python2.7/dist-packages/obspy/taup/tests/images/traveltimes_many_phases.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_plotting.py", line 107, in test_cartesian_many_phases
plt.savefig(ic.name)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
IOError: Baseline image u'/usr/lib/python2.7/dist-packages/obspy/taup/tests/images/cartesian_many_phases.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_plotting.py", line 120, in test_cartesian_many_phases_buried_station
plt.savefig(ic.name)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
IOError: Baseline image u'/usr/lib/python2.7/dist-packages/obspy/taup/tests/images/cartesian_many_phases_buried_station.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_plotting.py", line 68, in test_spherical_many_phases_one_way
plt.savefig(ic.name)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
IOError: Baseline image u'/usr/lib/python2.7/dist-packages/obspy/taup/tests/images/spherical_many_phases_one_way.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_plotting.py", line 79, in test_spherical_more_then_360_degrees
plt.savefig(ic.name)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 543, in compare
return compare_images(self.baseline_image, self.name, tol=self.tol)
File "/usr/lib/python2.7/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
IOError: Baseline image u'/usr/lib/python2.7/dist-packages/obspy/taup/tests/images/spherical_more_then_360.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 218, in test_p_ak135f_no_mud
arrivals, "taup_time_-h_10_-ph_P_-deg_35_-mod_ak135f_no_mud")
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 79, in _compare_arrivals_with_file
expected_arrivals = self._read_taup_output(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 51, in _read_taup_output
with open(os.path.join(DATA, filename), "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_time_-h_10_-ph_P_-deg_35_-mod_ak135f_no_mud'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 192, in test_p_iasp91
"taup_time_-h_10_-ph_P_-deg_35")
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 79, in _compare_arrivals_with_file
expected_arrivals = self._read_taup_output(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 51, in _read_taup_output
with open(os.path.join(DATA, filename), "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_time_-h_10_-ph_P_-deg_35'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 231, in test_p_jb
arrivals, "taup_time_-h_10_-ph_P_-deg_35_-mod_jb")
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 79, in _compare_arrivals_with_file
expected_arrivals = self._read_taup_output(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 51, in _read_taup_output
with open(os.path.join(DATA, filename), "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_time_-h_10_-ph_P_-deg_35_-mod_jb'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 244, in test_p_pwdk
arrivals, "taup_time_-h_10_-ph_P_-deg_35_-mod_pwdk")
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 79, in _compare_arrivals_with_file
expected_arrivals = self._read_taup_output(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 51, in _read_taup_output
with open(os.path.join(DATA, filename), "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_time_-h_10_-ph_P_-deg_35_-mod_pwdk'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 752, in test_kennet_ak135_ttime_tables_s_shallow
"ak135_S_shallow.txt", phases=["s", "S", "Sdiff"])
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 711, in _compare_against_ak135_tables_kennet
values = self._read_ak135_test_files(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 681, in _read_ak135_test_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/ak135_S_shallow.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 756, in test_kennet_ak135_ttime_tables_scp
"ak135_ScP.txt", phases=["ScP"])
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 711, in _compare_against_ak135_tables_kennet
values = self._read_ak135_test_files(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 681, in _read_ak135_test_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/ak135_ScP.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 760, in test_kennet_ak135_ttime_tables_scs
"ak135_ScS.txt", phases=["ScS"])
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 711, in _compare_against_ak135_tables_kennet
values = self._read_ak135_test_files(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 681, in _read_ak135_test_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/ak135_ScS.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 205, in test_p_ak135
arrivals, "taup_time_-h_10_-ph_ttall_-deg_35_-mod_ak135")
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 79, in _compare_arrivals_with_file
expected_arrivals = self._read_taup_output(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 51, in _read_taup_output
with open(os.path.join(DATA, filename), "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_time_-h_10_-ph_ttall_-deg_35_-mod_ak135'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 462, in test_pierce_all_phases
with open(filename, "rt") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/java_taup_pierce_h10_deg35_ttall'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 288, in test_pierce_p_iasp91
expected = np.genfromtxt(filename, skip_header=1)
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1451, in genfromtxt
fhd = iter(np.lib._datasource.open(fname, 'rbU'))
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 151, in open
return ds.open(path, mode)
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 501, in open
raise IOError("%s not found." % path)
IOError: /usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_pierce_-h_10_-ph_P_-deg_35 not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 504, in test_single_path_iasp91
expected = np.genfromtxt(filename, comments='>')
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1451, in genfromtxt
fhd = iter(np.lib._datasource.open(fname, 'rbU'))
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 151, in open
return ds.open(path, mode)
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 501, in open
raise IOError("%s not found." % path)
IOError: /usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_path_-o_stdout_-h_10_-ph_P_-deg_35 not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 604, in test_single_path_geo_fallback_iasp91
expected = np.genfromtxt(filename, comments='>')
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1451, in genfromtxt
fhd = iter(np.lib._datasource.open(fname, 'rbU'))
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 151, in open
return ds.open(path, mode)
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 501, in open
raise IOError("%s not found." % path)
IOError: /usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_path_-o_stdout_-h_10_-ph_P_-deg_35 not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 740, in test_kennet_ak135_ttime_tables_pcp
"ak135_PcP.txt", phases=["PcP"])
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 711, in _compare_against_ak135_tables_kennet
values = self._read_ak135_test_files(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 681, in _read_ak135_test_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/ak135_PcP.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 736, in test_kennet_ak135_ttime_tables_p_shallow
"ak135_P_shallow.txt", phases=["p", "Pdiff", "P"])
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 711, in _compare_against_ak135_tables_kennet
values = self._read_ak135_test_files(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 681, in _read_ak135_test_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/ak135_P_shallow.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 732, in test_kennet_ak135_ttime_tables_p_deep
"ak135_P_deep.txt", phases=["p", "Pdiff", "P"])
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 711, in _compare_against_ak135_tables_kennet
values = self._read_ak135_test_files(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 681, in _read_ak135_test_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/ak135_P_deep.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 777, in test_java_pnps
"java_tauptime_pnsn")
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 79, in _compare_arrivals_with_file
expected_arrivals = self._read_taup_output(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 51, in _read_taup_output
with open(os.path.join(DATA, filename), "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/java_tauptime_pnsn'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 258, in test_iasp91
arrivals, "taup_time_-h_10_-ph_ttall_-deg_35")
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 79, in _compare_arrivals_with_file
expected_arrivals = self._read_taup_output(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 51, in _read_taup_output
with open(os.path.join(DATA, filename), "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_time_-h_10_-ph_ttall_-deg_35'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 840, in test_buried_receiver
self._compare_arrivals_with_file(arrivals, "buried_receivers.txt")
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 79, in _compare_arrivals_with_file
expected_arrivals = self._read_taup_output(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 51, in _read_taup_output
with open(os.path.join(DATA, filename), "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/buried_receivers.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 272, in test_ak135
arrivals, "taup_time_-h_10_-ph_ttall_-deg_35_-mod_ak135")
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 79, in _compare_arrivals_with_file
expected_arrivals = self._read_taup_output(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 51, in _read_taup_output
with open(os.path.join(DATA, filename), "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_time_-h_10_-ph_ttall_-deg_35_-mod_ak135'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_velocity_model.py", line 26, in test_read_velocity_model
test2 = VelocityModel.read_velocity_file(velocity_model)
File "/usr/lib/python2.7/dist-packages/obspy/taup/velocity_model.py", line 380, in read_velocity_file
v_mod = cls.read_tvel_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/velocity_model.py", line 419, in read_tvel_file
data = np.genfromtxt(filename, skip_header=2, comments='#')
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1451, in genfromtxt
fhd = iter(np.lib._datasource.open(fname, 'rbU'))
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 151, in open
return ds.open(path, mode)
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 501, in open
raise IOError("%s not found." % path)
IOError: /usr/lib/python2.7/dist-packages/obspy/taup/tests/data/iasp91.tvel not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 790, in test_surface_wave_ttimes
with open(filename, "rt") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/iasp91_surface_waves_table.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 1016, in test_small_regional_model
output_folder=folder, verbose=False)
File "/usr/lib/python2.7/dist-packages/obspy/taup/taup_create.py", line 180, in build_taup_model
mod_create.load_velocity_model()
File "/usr/lib/python2.7/dist-packages/obspy/taup/taup_create.py", line 54, in load_velocity_model
self.v_mod = VelocityModel.read_velocity_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/velocity_model.py", line 380, in read_velocity_file
v_mod = cls.read_tvel_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/velocity_model.py", line 419, in read_tvel_file
data = np.genfromtxt(filename, skip_header=2, comments='#')
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1451, in genfromtxt
fhd = iter(np.lib._datasource.open(fname, 'rbU'))
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 151, in open
return ds.open(path, mode)
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 501, in open
raise IOError("%s not found." % path)
IOError: /usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/../regional_model.tvel not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 408, in test_vs_java_iasp91
with open(filename, "rt") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/java_tauptime_testoutput'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 828, in test_underside_reflections
self._compare_arrivals_with_file(arrivals, "underside_reflections.txt")
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 79, in _compare_arrivals_with_file
expected_arrivals = self._read_taup_output(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 51, in _read_taup_output
with open(os.path.join(DATA, filename), "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/underside_reflections.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 651, in test_single_path_ak135
expected = np.genfromtxt(filename, comments='>')
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1451, in genfromtxt
fhd = iter(np.lib._datasource.open(fname, 'rbU'))
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 151, in open
return ds.open(path, mode)
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 501, in open
raise IOError("%s not found." % path)
IOError: /usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_path_-o_stdout_-h_10_-ph_P_-deg_35_-mod_ak135 not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 363, in test_pierce_p_iasp91_fallback_geo
expected = np.genfromtxt(filename, skip_header=1)
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1451, in genfromtxt
fhd = iter(np.lib._datasource.open(fname, 'rbU'))
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 151, in open
return ds.open(path, mode)
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 501, in open
raise IOError("%s not found." % path)
IOError: /usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/taup_pierce_-h_10_-ph_P_-deg_35 not found.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 748, in test_kennet_ak135_ttime_tables_s_deep
"ak135_S_deep.txt", phases=["s", "S", "Sdiff"])
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 711, in _compare_against_ak135_tables_kennet
values = self._read_ak135_test_files(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 681, in _read_ak135_test_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/ak135_S_deep.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 744, in test_kennet_ak135_ttime_tables_pkikp
"ak135_PKIKP.txt", phases=["PKIKP"])
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 711, in _compare_against_ak135_tables_kennet
values = self._read_ak135_test_files(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_tau.py", line 681, in _read_ak135_test_files
with open(filename, "rb") as fh:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/obspy/taup/tests/data/TauP_test_data/ak135_PKIKP.txt'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/obspy/taup/tests/test_seismic_phase.py", line 82, in test_many_identically_named_phases
output_folder=folder, verbose=False)
File "/usr/lib/python2.7/dist-packages/obspy/taup/taup_create.py", line 180, in build_taup_model
mod_create.load_velocity_model()
File "/usr/lib/python2.7/dist-packages/obspy/taup/taup_create.py", line 54, in load_velocity_model
self.v_mod = VelocityModel.read_velocity_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/velocity_model.py", line 380, in read_velocity_file
v_mod = cls.read_tvel_file(filename)
File "/usr/lib/python2.7/dist-packages/obspy/taup/velocity_model.py", line 419, in read_tvel_file
data = np.genfromtxt(filename, skip_header=2, comments='#')
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1451, in genfromtxt
fhd = iter(np.lib._datasource.open(fname, 'rbU'))
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 151, in open
return ds.open(path, mode)
File "/usr/lib/python2.7/dist-packages/numpy/lib/_datasource.py", line 501, in open
raise IOError("%s not found." % path)
IOError: /usr/lib/python2.7/dist-packages/obspy/taup/tests/data/smooth_geodynamic_model.tvel not found.

Skipped Tests (13)

Submodule Test Skip Message
geodetics test_gps_2_dist_azimuth_with_geographiclib (obspy.geodetics.tests.test_util_geodetics.UtilGeodeticsTestCase) Module geographiclib is not installed
geodetics test_issue_375 (obspy.geodetics.tests.test_util_geodetics.UtilGeodeticsTestCase) Module geographiclib is not installed
io.nlloc test_read_nlloc_scatter_coordinate_conversion (obspy.io.nlloc.tests.test_util.NLLOCTestCase) pyproj not installed
io.shapefile test_write_catalog_shapefile (obspy.io.shapefile.tests.test_core.ShapefileTestCase) pyshp not installed
io.shapefile test_write_catalog_shapefile_via_plugin (obspy.io.shapefile.tests.test_core.ShapefileTestCase) pyshp not installed
io.shapefile test_write_inventory_shapefile (obspy.io.shapefile.tests.test_core.ShapefileTestCase) pyshp not installed
io.shapefile test_write_inventory_shapefile_via_plugin (obspy.io.shapefile.tests.test_core.ShapefileTestCase) pyshp not installed
taup test_path_geo (obspy.taup.tests.test_taup_geo.TaupGeoTestCase) Module geographiclib is not installed or too old.
taup test_path_resampling (obspy.taup.tests.test_taup_geo.TaupGeoTestCase) Module geographiclib is not installed or too old.
taup test_p_iasp91_geo_manual (obspy.taup.tests.test_tau.TauPyModelTestCase) Module geographiclib is not installed
taup test_pierce_p_iasp91_geo (obspy.taup.tests.test_tau.TauPyModelTestCase) test needs geographiclib >= 1.34
taup test_single_path_geo_iasp91 (obspy.taup.tests.test_tau.TauPyModelTestCase) test needs geographiclib >= 1.34
taup test_compute_ray_paths (obspy.taup.tests.test_ray_paths.RayPathCalculationsTestCase) test needs geographiclib >= 1.34

Slowest Tests (20)

Runtime Test
4.490s __init__ (obspy.taup)
3.377s test_shoot_existing_ray_param (obspy.taup.tests.test_seismic_phase.TauPySeismicPhaseTestCase)
2.155s plot_travel_times (obspy.taup.tau)
1.100s test_spherical_many_phases (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
0.966s test_read_from_sds_with_wildcarded_seed_ids (obspy.clients.filesystem.tests.test_sds.SDSTestCase)
0.932s test_spherical_many_phases_buried_station (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
0.886s test_spherical_many_phases_one_way (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
0.732s __init__ (obspy.taup.tau.TauPyModel)
0.590s test_cartesian_many_phases (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
0.588s test_cartesian_many_phases_buried_station (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
0.556s test_cartesian_many_phases_one_way (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
0.437s test_read_from_sds (obspy.clients.filesystem.tests.test_sds.SDSTestCase)
0.402s test_sds_report (obspy.clients.filesystem.tests.test_sds.SDSTestCase)
0.397s plot_ray_paths (obspy.taup.tau)
0.391s test_plot_travel_times (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
0.388s test_shoot_middle_ray_param (obspy.taup.tests.test_seismic_phase.TauPySeismicPhaseTestCase)
0.386s test_multi_writing (obspy.io.nordic.tests.test_nordic.TestNordicMethods)
0.384s test_different_models (obspy.taup.tests.test_tau.TauPyModelTestCase)
0.378s test_plot_travel_times_convenience (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)
0.348s test_spherical_more_then_360_degrees (obspy.taup.tests.test_plotting.TauPyPlottingTestCase)

Chuck Norris Fact

MySpace actually isn't your space, it's Chuck's (he just lets you use it).