#92896 Report by node hyena covering 1444 tests from 45 modules resulted into 703 errors

Report

ObsPy Version
1.1.0
Continuous Integration
-
GitHub Pull Request
-
Report File
XML Document
Total Runtime
96.5 sec
Report Date/Time
2018-03-06 01:42:32

System / Python

Architecture
64bit
Machine
x86_64
Node
hyena
Processor
x86_64
Python Compiler
GCC 4.8.4
Python Implementation
CPython
Python Version
3.4.3
Release
3.13.0-126-generic
System
Linux
Version
#175-Ubuntu SMP Thu Jul 20 17:33:56 UTC 2017

Dependencies

cartopy
---
decorator
3.4.0
flake8
2.1.0
future
0.14.3
geographiclib
---
lxml.etree
3.3.3
m2crypto
---
matplotlib
1.3.1
mock
1.0.1
mpl_toolkits.basemap
---
numpy
1.8.2
pep8-naming
---
pyflakes
0.8.1
pyimgur
---
pyproj
---
requests
2.2.1
scipy
0.13.3
setuptools
3.3
shapefile
???
sqlalchemy
0.8.4

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 58 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
obspy.db - -
obspy.geodetics 2 60 61
obspy.imaging 1 62
obspy.io.ah 5 63 64 65 66 67
obspy.io.arclink 4 68 69 70 71
obspy.io.ascii 20 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
obspy.io.cmtsolution 9 92 93 94 95 96 97 98 99 100
obspy.io.cnv 1 101
obspy.io.css 7 102 103 104 105 106 107 108
obspy.io.gcf 9 109 110 111 112 113 114 115 116 117
obspy.io.gse2 44 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
obspy.io.iaspei 7 162 163 164 165 166 167 168
obspy.io.json 4 169 170 171 172
obspy.io.kinemetrics 7 173 174 175 176 177 178 179
obspy.io.kml 3 180 181 182
obspy.io.mseed 76 183 184 185 186 187 188 189 190 191 192 193 194 195 196 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 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
obspy.io.ndk 16 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274
obspy.io.nied 10 275 276 277 278 279 280 281 282 283 284
obspy.io.nlloc 10 285 286 287 288 289 290 291 292 293 294
obspy.io.nordic 19 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
obspy.io.pdas 3 314 315 316
obspy.io.pde 12 317 318 319 320 321 322 323 324 325 326 327 328
obspy.io.quakeml 26 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354
obspy.io.reftek 18 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372
obspy.io.sac 61 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 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433
obspy.io.scardec 4 434 435 436 437
obspy.io.seg2 1 438
obspy.io.segy 46 439 440 441 442 443 444 445 446 447 448 449 450 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
obspy.io.seisan 7 485 486 487 488 489 490 491
obspy.io.seiscomp 42 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533
obspy.io.sh 12 534 535 536 537 538 539 540 541 542 543 544 545
obspy.io.shapefile 3 546 547 548
obspy.io.stationtxt 10 549 550 551 552 553 554 555 556 557 558
obspy.io.stationxml 17 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575
obspy.io.wav 7 576 577 578 579 580 581 582
obspy.io.win 2 583 584
obspy.io.xseed 57 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641
obspy.io.y 4 642 643 644 645
obspy.io.zmap 14 646 647 648 649 650 651 652 653 654 655 656 657 658 659
obspy.realtime 2 660 661
obspy.scripts 2 662 663
obspy.signal 1 664
obspy.taup 39 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703
Summary 703 703

Tracebacks (703)

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/clients/filesystem/tests/test_sds.py", line 215, in test_sds_report
with open(html_regex_file, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/clients/filesystem/tests/data/sds_report.regex'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_station.py", line 56, in test_response_plot
sta.plot(0.05, channel="*[NE]", outfile=ic.name)
File "/usr/lib/python3/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python3/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/python3/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
OSError: Baseline image '/usr/lib/python3/dist-packages/obspy/core/tests/images/station_response.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_station.py", line 76, in test_response_plot_degrees
outfile=ic.name)
File "/usr/lib/python3/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python3/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/python3/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
OSError: Baseline image '/usr/lib/python3/dist-packages/obspy/core/tests/images/station_response_degrees.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_response.py", line 72, in test_evalresp_with_output_from_seed
p = Parser(seed_filename)
File "/usr/lib/python3/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
OSError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.inventory.network.Network.get_contents
File "/usr/lib/python3/dist-packages/obspy/core/inventory/network.py", line 149, in get_contents
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/network.py", line 157, in obspy.core.inventory.network.Network.get_contents
Failed example:
inventory = read_inventory(example_filename)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.network.Network.get_contents[2]>", line 1, in <module>
inventory = read_inventory(example_filename)
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/IRIS_single_channel_with_response.xml': failed to load external entity "/path/to/IRIS_single_channel_with_response.xml"
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/network.py", line 158, in obspy.core.inventory.network.Network.get_contents
Failed example:
network = inventory.networks[0]
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.network.Network.get_contents[3]>", line 1, in <module>
network = inventory.networks[0]
NameError: name 'inventory' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/network.py", line 159, in obspy.core.inventory.network.Network.get_contents
Failed example:
network.get_contents() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.network.Network.get_contents[4]>", line 1, in <module>
network.get_contents() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'network' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/network.py", line 161, in obspy.core.inventory.network.Network.get_contents
Failed example:
for k, v in sorted(network.get_contents().items()):
print(k, v[0])
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.network.Network.get_contents[5]>", line 1, in <module>
for k, v in sorted(network.get_contents().items()):
NameError: name 'network' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 432, in test_copy
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_waveform_plugins.py", line 515, in test_reading_tarfile_impostor
st = read("/path/to/tarfile_impostor.mseed")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/tarfile_impostor.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 454, in test_filter
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 266, in test_read_events_without_parameters
catalog = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_trace.py", line 2284, in test_remove_response_plot
tr = read("/path/to/IU_ULN_00_LH1_2015-07-18T02.mseed")[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/IU_ULN_00_LH1_2015-07-18T02.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 51, in test_str
event = read_events()[1]
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.inventory.inventory.Inventory.get_response
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 336, in get_response
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 341, in obspy.core.inventory.inventory.Inventory.get_response
Failed example:
inventory = read_inventory("/path/to/IU_ANMO_BH.xml")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.inventory.Inventory.get_response[1]>", line 1, in <module>
inventory = read_inventory("/path/to/IU_ANMO_BH.xml")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/IU_ANMO_BH.xml': failed to load external entity "/path/to/IU_ANMO_BH.xml"
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 343, in obspy.core.inventory.inventory.Inventory.get_response
Failed example:
response = inventory.get_response("IU.ANMO.00.BHZ", datetime)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.inventory.Inventory.get_response[3]>", line 1, in <module>
response = inventory.get_response("IU.ANMO.00.BHZ", datetime)
NameError: name 'inventory' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 344, in obspy.core.inventory.inventory.Inventory.get_response
Failed example:
print(response) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.inventory.Inventory.get_response[4]>", line 1, in <module>
print(response) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
NameError: name 'response' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_response.py", line 166, in test_response_plot_degrees
plot_degrees=True, outfile=ic.name)
File "/usr/lib/python3/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python3/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/python3/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
OSError: Baseline image '/usr/lib/python3/dist-packages/obspy/core/tests/images/response_response_degrees.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_response.py", line 250, in test_response_list_raises_error_if_out_of_range
inv = read_inventory(os.path.join(self.data_dir, "IM_IL31__BHZ.xml"))
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/core/tests/data/IM_IL31__BHZ.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/core/tests/data/IM_IL31__BHZ.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_trace.py", line 1730, in test_remove_polynomial_response
inv = read_inventory(filename, format='StationXML')
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/core/tests/data/stationxml_IU.ANTO.30.LDO.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/core/tests/data/stationxml_IU.ANTO.30.LDO.xml"
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream.rotate
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 2568, in rotate
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 2615, in obspy.core.stream.Stream.rotate
Failed example:
st = read("/path/to/ffbx_unrotated_gaps.mseed")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.Stream.rotate[1]>", line 1, in <module>
st = read("/path/to/ffbx_unrotated_gaps.mseed")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/ffbx_unrotated_gaps.mseed'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 2616, in obspy.core.stream.Stream.rotate
Failed example:
inv = read_inventory("/path/to/ffbx.stationxml")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.Stream.rotate[2]>", line 1, in <module>
inv = read_inventory("/path/to/ffbx.stationxml")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/ffbx.stationxml': failed to load external entity "/path/to/ffbx.stationxml"
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 2617, in obspy.core.stream.Stream.rotate
Failed example:
st.rotate(method="->ZNE", inventory=inv) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.Stream.rotate[3]>", line 1, in <module>
st.rotate(method="->ZNE", inventory=inv) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_stream.py", line 2161, in test_simulate_seedresp_parser
p = Parser("/path/to/dataless.seed.BW_RJOB")
File "/usr/lib/python3/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
OSError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 298, in test_read_events_with_wildcard
expected = read_events(self.iris_xml)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/core/tests/data/iris_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 273, in test_str
catalog = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_response.py", line 146, in test_response_plot
outfile=ic.name)
File "/usr/lib/python3/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python3/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/python3/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
OSError: Baseline image '/usr/lib/python3/dist-packages/obspy/core/tests/images/response_response.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.catalog.Catalog.__eq__
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 124, in __eq__
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 136, in obspy.core.event.catalog.Catalog.__eq__
Failed example:
cat = read_events()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.__eq__[1]>", line 1, in <module>
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 137, in obspy.core.event.catalog.Catalog.__eq__
Failed example:
cat2 = cat.copy()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.__eq__[2]>", line 1, in <module>
cat2 = cat.copy()
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 138, in obspy.core.event.catalog.Catalog.__eq__
Failed example:
cat is cat2
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.__eq__[3]>", line 1, in <module>
cat is cat2
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 140, in obspy.core.event.catalog.Catalog.__eq__
Failed example:
cat == cat2
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.__eq__[4]>", line 1, in <module>
cat == cat2
NameError: name 'cat' is not defined
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.trace.Trace.remove_response
File "/usr/lib/python3/dist-packages/obspy/core/trace.py", line 1, in remove_response
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/trace.py", line 61, in obspy.core.trace.Trace.remove_response
Failed example:
st = read("/path/to/IU_ULN_00_LH1_2015-07-18T02.mseed")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.trace.Trace.remove_response[7]>", line 1, in <module>
st = read("/path/to/IU_ULN_00_LH1_2015-07-18T02.mseed")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/IU_ULN_00_LH1_2015-07-18T02.mseed'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/trace.py", line 63, in obspy.core.trace.Trace.remove_response
Failed example:
inv = read_inventory("/path/to/IU_ULN_00_LH1.xml")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.trace.Trace.remove_response[9]>", line 1, in <module>
inv = read_inventory("/path/to/IU_ULN_00_LH1.xml")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/IU_ULN_00_LH1.xml': failed to load external entity "/path/to/IU_ULN_00_LH1.xml"
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.event.Event.plot
File "/usr/lib/python3/dist-packages/obspy/core/event/event.py", line 167, in plot
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/event.py", line 212, in obspy.core.event.event.Event.plot
Failed example:
event = read_events("/path/to/CMTSOLUTION")[0]
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.event.Event.plot[1]>", line 1, in <module>
event = read_events("/path/to/CMTSOLUTION")[0]
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/CMTSOLUTION'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_response.py", line 276, in test_response_with_no_units_in_stage_1
self.data_dir, "stationxml_no_units_in_stage_1.xml"))
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/core/tests/data/stationxml_no_units_in_stage_1.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/core/tests/data/stationxml_no_units_in_stage_1.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 282, in test_read_events
catalog = read_events(self.iris_xml)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/core/tests/data/iris_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.catalog.Catalog.filter
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 274, in filter
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 301, in obspy.core.event.catalog.Catalog.filter
Failed example:
cat = read_events()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.filter[1]>", line 1, in <module>
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 302, in obspy.core.event.catalog.Catalog.filter
Failed example:
print(cat)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.filter[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 307, in obspy.core.event.catalog.Catalog.filter
Failed example:
cat2 = cat.filter("magnitude >= 4.0", "latitude < 40.0")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.filter[3]>", line 1, in <module>
cat2 = cat.filter("magnitude >= 4.0", "latitude < 40.0")
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 308, in obspy.core.event.catalog.Catalog.filter
Failed example:
print(cat2)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.filter[4]>", line 1, in <module>
print(cat2)
NameError: name 'cat2' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 311, in obspy.core.event.catalog.Catalog.filter
Failed example:
cat3 = cat.filter("time > 2012-04-04T14:10",
"time < 2012-04-04T14:20")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.filter[5]>", line 1, in <module>
cat3 = cat.filter("time > 2012-04-04T14:10",
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 313, in obspy.core.event.catalog.Catalog.filter
Failed example:
print(cat3)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.filter[6]>", line 1, in <module>
print(cat3)
NameError: name 'cat3' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 316, in obspy.core.event.catalog.Catalog.filter
Failed example:
cat4 = cat.filter("time > 2012-04-04T14:10",
"time < 2012-04-04T14:20",
inverse=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.filter[7]>", line 1, in <module>
cat4 = cat.filter("time > 2012-04-04T14:10",
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 319, in obspy.core.event.catalog.Catalog.filter
Failed example:
print(cat4)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.filter[8]>", line 1, in <module>
print(cat4)
NameError: name 'cat4' is not defined
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.inventory.inventory.Inventory.get_contents
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 210, in get_contents
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 217, in obspy.core.inventory.inventory.Inventory.get_contents
Failed example:
inventory = read_inventory(example_filename)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.inventory.Inventory.get_contents[1]>", line 1, in <module>
inventory = read_inventory(example_filename)
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/IRIS_single_channel_with_response.xml': failed to load external entity "/path/to/IRIS_single_channel_with_response.xml"
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 218, in obspy.core.inventory.inventory.Inventory.get_contents
Failed example:
inventory.get_contents() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.inventory.Inventory.get_contents[2]>", line 1, in <module>
inventory.get_contents() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'inventory' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 220, in obspy.core.inventory.inventory.Inventory.get_contents
Failed example:
for k, v in sorted(inventory.get_contents().items()): # doctest: +NORMALIZE_WHITESPACE
print(k, v[0])
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.inventory.Inventory.get_contents[3]>", line 1, in <module>
for k, v in sorted(inventory.get_contents().items()): # doctest: +NORMALIZE_WHITESPACE
NameError: name 'inventory' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_waveform_plugins.py", line 401, in test_read_zip_archive
st1 = read(os.path.join(path, 'data', 'test.zip'))
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/core/tests/data/test.zip'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 383, in test_count_and_len
catalog = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_waveform_plugins.py", line 230, in test_is_format
if is_format(file) is True: # pragma: no cover
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 48, in _is_mseed
file_size = os.path.getsize(filename)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nied/tests/data/FNETMTCATALOG'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_waveform_plugins.py", line 355, in test_read_gzip2_file
st1 = read(os.path.join(ascii_path, 'tspair.ascii.gz'))
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/core/tests/../../io/ascii/tests/data/tspair.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.inventory.inventory.Inventory.plot
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 563, in plot
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 691, in obspy.core.inventory.inventory.Inventory.plot
Failed example:
cat = read_events()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.inventory.Inventory.plot[8]>", line 1, in <module>
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_response.py", line 212, in test_response_list_stage
inv = read_inventory(os.path.join(self.data_dir, "IM_IL31__BHZ.xml"))
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/core/tests/data/IM_IL31__BHZ.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/core/tests/data/IM_IL31__BHZ.xml"
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.catalog.Catalog.clear
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 258, in clear
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 265, in obspy.core.event.catalog.Catalog.clear
Failed example:
cat = read_events()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.clear[1]>", line 1, in <module>
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 266, in obspy.core.event.catalog.Catalog.clear
Failed example:
len(cat)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.clear[2]>", line 1, in <module>
len(cat)
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 268, in obspy.core.event.catalog.Catalog.clear
Failed example:
cat.clear()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.clear[3]>", line 1, in <module>
cat.clear()
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 269, in obspy.core.event.catalog.Catalog.clear
Failed example:
cat.events
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.clear[4]>", line 1, in <module>
cat.events
NameError: name 'cat' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 391, in test_get_item
catalog = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_stream.py", line 1361, in test_read_pickle
st = read(pickle_file, format='PICKLE')
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/core/tests/data/example_py2.pickle'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream._rotate_specific_channels_to_zne
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 3254, in _rotate_specific_channels_to_zne
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 3259, in obspy.core.stream.Stream._rotate_specific_channels_to_zne
Failed example:
st = read("/path/to/ffbx_unrotated_gaps.mseed")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.Stream._rotate_specific_channels_to_zne[1]>", line 1, in <module>
st = read("/path/to/ffbx_unrotated_gaps.mseed")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/ffbx_unrotated_gaps.mseed'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 3260, in obspy.core.stream.Stream._rotate_specific_channels_to_zne
Failed example:
inv = read_inventory("/path/to/ffbx.stationxml")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.Stream._rotate_specific_channels_to_zne[2]>", line 1, in <module>
inv = read_inventory("/path/to/ffbx.stationxml")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/ffbx.stationxml': failed to load external entity "/path/to/ffbx.stationxml"
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 3261, in obspy.core.stream.Stream._rotate_specific_channels_to_zne
Failed example:
st._rotate_specific_channels_to_zne(
"BW", "FFB1", "", ["HHZ", "HH1", "HH2"],
inv) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.Stream._rotate_specific_channels_to_zne[3]>", line 1, in <module>
st._rotate_specific_channels_to_zne(
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.catalog.Catalog.write
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 456, in write
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 471, in obspy.core.event.catalog.Catalog.write
Failed example:
catalog = read_events()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.write[1]>", line 1, in <module>
catalog = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_inventory.py", line 193, in test_response_plot
station="[WR]*", time=t, outfile=ic.name)
File "/usr/lib/python3/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python3/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/python3/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
OSError: Baseline image '/usr/lib/python3/dist-packages/obspy/core/tests/images/inventory_response.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_stream.py", line 2524, in test_rotate_to_zne
inv = read_inventory("/path/to/ffbx.stationxml", format="STATIONXML")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/ffbx.stationxml': failed to load external entity "/path/to/ffbx.stationxml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_trace.py", line 1883, in test_interpolate
org_tr = read("/path/to/%s" % file_)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/interpolation_test_random_waveform_delta_0.01_npts_50.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_trace.py", line 1706, in test_remove_response
parser = Parser("/path/to/dataless.seed.BW_RJOB")
File "/usr/lib/python3/dist-packages/obspy/io/xseed/parser.py", line 123, in __init__
self.read(data)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/xseed/parser.py", line 237, in read
raise IOError("First byte of data must be in [0-9<]")
OSError: First byte of data must be in [0-9<]
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.read
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 1, in read
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 135, in obspy.core.stream.read
Failed example:
st = read("/path/to/loc_RJOB20050831023349.z", format="GSE2")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.read[7]>", line 1, in <module>
st = read("/path/to/loc_RJOB20050831023349.z", format="GSE2")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/loc_RJOB20050831023349.z'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 136, in obspy.core.stream.read
Failed example:
print(st) # doctest: +ELLIPSIS
Expected:
1 Trace(s) in Stream:
.RJOB..Z | 2005-08-31T02:33:49.850000Z - ... | 200.0 Hz, 12000 samples
Got:
3 Trace(s) in Stream:
BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z - 2009-08-24T00:20:32.990000Z | 100.0 Hz, 3000 samples
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 151, in obspy.core.stream.read
Failed example:
st = read("/path/to/tspair.ascii.gz")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.read[13]>", line 1, in <module>
st = read("/path/to/tspair.ascii.gz")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/tspair.ascii.gz'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 152, in obspy.core.stream.read
Failed example:
print(st) # doctest: +ELLIPSIS
Expected:
1 Trace(s) in Stream:
XX.TEST..BHZ | 2008-01-15T00:00:00.025000Z - ... | 40.0 Hz, 635 samples
Got:
1 Trace(s) in Stream:
.RJOB..Z | 2005-08-31T02:33:49.850000Z - 2005-08-31T02:34:49.845000Z | 200.0 Hz, 12000 samples
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.stream.Stream._rotate_to_zne
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 3204, in _rotate_to_zne
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 3209, in obspy.core.stream.Stream._rotate_to_zne
Failed example:
st = read("/path/to/ffbx_unrotated_gaps.mseed")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.Stream._rotate_to_zne[1]>", line 1, in <module>
st = read("/path/to/ffbx_unrotated_gaps.mseed")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/ffbx_unrotated_gaps.mseed'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 3210, in obspy.core.stream.Stream._rotate_to_zne
Failed example:
inv = read_inventory("/path/to/ffbx.stationxml")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.Stream._rotate_to_zne[2]>", line 1, in <module>
inv = read_inventory("/path/to/ffbx.stationxml")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/ffbx.stationxml': failed to load external entity "/path/to/ffbx.stationxml"
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 3211, in obspy.core.stream.Stream._rotate_to_zne
Failed example:
st._rotate_to_zne(inv) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.stream.Stream._rotate_to_zne[3]>", line 1, in <module>
st._rotate_to_zne(inv) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_stream.py", line 1801, in test_read
tr = read('/path/to/slist_float.ascii', dtype=np.int32)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/slist_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_network.py", line 145, in test_response_plot
time=t, outfile=ic.name)
File "/usr/lib/python3/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python3/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/python3/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
OSError: Baseline image '/usr/lib/python3/dist-packages/obspy/core/tests/images/network_response.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 403, in test_slicing
catalog = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.catalog.Catalog.plot
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 511, in plot
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 607, in obspy.core.event.catalog.Catalog.plot
Failed example:
cat = read_events()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.plot[1]>", line 1, in <module>
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 640, in obspy.core.event.catalog.Catalog.plot
Failed example:
cat = read_events()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.plot[7]>", line 1, in <module>
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_waveform_plugins.py", line 366, in test_read_bzip2_file
st1 = read(os.path.join(ascii_path, 'slist.ascii.bz2'))
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/core/tests/../../io/ascii/tests/data/slist.ascii.bz2'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_channel.py", line 61, in test_response_plot
cha.plot(0.005, outfile=ic.name)
File "/usr/lib/python3/dist-packages/obspy/core/util/testing.py", line 443, in __exit__
msg = self.compare()
File "/usr/lib/python3/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/python3/dist-packages/obspy/core/util/testing.py", line 196, in compare_images
raise IOError('Baseline image %r does not exist.' % expected)
OSError: Baseline image '/usr/lib/python3/dist-packages/obspy/core/tests/images/channel_response.png' does not exist.
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.inventory.station.Station.get_contents
File "/usr/lib/python3/dist-packages/obspy/core/inventory/station.py", line 188, in get_contents
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/station.py", line 196, in obspy.core.inventory.station.Station.get_contents
Failed example:
inventory = read_inventory(example_filename)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.station.Station.get_contents[2]>", line 1, in <module>
inventory = read_inventory(example_filename)
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/IRIS_single_channel_with_response.xml': failed to load external entity "/path/to/IRIS_single_channel_with_response.xml"
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/station.py", line 197, in obspy.core.inventory.station.Station.get_contents
Failed example:
station = inventory.networks[0].stations[0]
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.station.Station.get_contents[3]>", line 1, in <module>
station = inventory.networks[0].stations[0]
NameError: name 'inventory' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/station.py", line 198, in obspy.core.inventory.station.Station.get_contents
Failed example:
station.get_contents() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.station.Station.get_contents[4]>", line 1, in <module>
station.get_contents() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
NameError: name 'station' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/inventory/station.py", line 200, in obspy.core.inventory.station.Station.get_contents
Failed example:
for (k, v) in sorted(station.get_contents().items()):
print(k, v[0])
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.inventory.station.Station.get_contents[5]>", line 1, in <module>
for (k, v) in sorted(station.get_contents().items()):
NameError: name 'station' is not defined
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.core.event.catalog.Catalog.copy
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 402, in copy
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 414, in obspy.core.event.catalog.Catalog.copy
Failed example:
cat = read_events()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.copy[1]>", line 1, in <module>
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 415, in obspy.core.event.catalog.Catalog.copy
Failed example:
cat2 = cat.copy()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.copy[2]>", line 1, in <module>
cat2 = cat.copy()
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 419, in obspy.core.event.catalog.Catalog.copy
Failed example:
cat is cat2
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.copy[3]>", line 1, in <module>
cat is cat2
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 424, in obspy.core.event.catalog.Catalog.copy
Failed example:
cat == cat2
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.copy[4]>", line 1, in <module>
cat == cat2
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 431, in obspy.core.event.catalog.Catalog.copy
Failed example:
cat3 = cat
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.copy[5]>", line 1, in <module>
cat3 = cat
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 432, in obspy.core.event.catalog.Catalog.copy
Failed example:
cat is cat3
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.copy[6]>", line 1, in <module>
cat is cat3
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 434, in obspy.core.event.catalog.Catalog.copy
Failed example:
cat == cat3
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.core.event.catalog.Catalog.copy[7]>", line 1, in <module>
cat == cat3
NameError: name 'cat' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 496, in test_latest_in_scope_object_returned
cat1 = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_response.py", line 183, in test_segfault_after_error_handling
inv = read_inventory(filename)
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/core/tests/data/TM.SKLT.__.BHZ_faulty_response.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/core/tests/data/TM.SKLT.__.BHZ_faulty_response.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 487, in test_catalog_resource_id
cat = read_events(self.neries_xml)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/core/tests/data/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_util_base.py", line 78, in test_image_comparison
shutil.copy(img_ok, ic.name)
File "/usr/lib/python3.4/shutil.py", line 229, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.4/shutil.py", line 108, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/core/tests/images/image_ok.png'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_stream.py", line 2506, in test_read_check_compression
check_compression=False)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/slist.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_waveform_plugins.py", line 378, in test_read_tar_archive
st1 = read(os.path.join(path, "data", "test.tar"))
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/core/tests/data/test.tar'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/core/tests/test_event.py", line 119, in test_event_copying_does_not_raise_duplicate_resource_id_warning
ev = read_events()[0]
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/geodetics/tests/test_util_flinnengdahl.py", line 44, in test_script
with open(self.samples_file, 'r') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/geodetics/tests/data/flinnengdahl.csv'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/geodetics/tests/test_util_flinnengdahl.py", line 25, in test_coordinates
with open(self.samples_file, 'r') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/geodetics/tests/data/flinnengdahl.csv'
>>> Cannot import test suite for module obspy.imaging due to:
-------------------------------------------------------------
File "/usr/bin/obspy3-runtests", line 9, in <module>
load_entry_point('obspy==1.1.0', 'console_scripts', 'obspy3-runtests')()
File "/usr/lib/python3/dist-packages/obspy/scripts/runtests.py", line 738, in main
errors = run(argv, interactive)
File "/usr/lib/python3/dist-packages/obspy/scripts/runtests.py", line 706, in run
pr_url=args.pr_url)
File "/usr/lib/python3/dist-packages/obspy/scripts/runtests.py", line 533, in run_tests
suites, status, import_failures = _get_suites(verbosity, tests)
File "/usr/lib/python3/dist-packages/obspy/scripts/runtests.py", line 154, in _get_suites
suite.append(ut.loadTestsFromName(test, None))
File "/usr/lib/python3.4/unittest/loader.py", line 131, in loadTestsFromName
test = obj()
File "/usr/lib/python3/dist-packages/obspy/imaging/tests/__init__.py", line 24, in suite
add_unittests(suite, MODULE_NAME)
File "/usr/lib/python3/dist-packages/obspy/core/util/testing.py", line 72, in add_unittests
fromlist=[native_str("obspy")])
File "/usr/lib/python3/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/python3/dist-packages/obspy/signal/tests/test_spectral_estimation.py", line 69, in <module>
_sample_data = _internal_get_sample_data()
File "/usr/lib/python3/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/python3.4/gzip.py", line 52, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/usr/lib/python3.4/gzip.py", line 181, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/signal/tests/data/BW.KW1._.EHZ.D.2011.090_downsampled.asc.gz'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ah/tests/test_core.py", line 90, in test_read_ah
st = _read_ah(testfile)
File "/usr/lib/python3/dist-packages/obspy/io/ah/core.py", line 62, in _read_ah
version = _get_ah_version(filename)
File "/usr/lib/python3/dist-packages/obspy/io/ah/core.py", line 78, in _get_ah_version
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ah/tests/data/ah1.f'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ah/tests/test_core.py", line 263, in test_write_ah1
stream_orig = _read_ah(testfile)
File "/usr/lib/python3/dist-packages/obspy/io/ah/core.py", line 62, in _read_ah
version = _get_ah_version(filename)
File "/usr/lib/python3/dist-packages/obspy/io/ah/core.py", line 78, in _get_ah_version
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ah/tests/data/st.ah'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ah/tests/test_core.py", line 67, in test_read
st = read(testfile)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/ah/tests/data/hrv.lh.zne'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ah/tests/test_core.py", line 192, in test_tsg
st = _read_ah(testfile)
File "/usr/lib/python3/dist-packages/obspy/io/ah/core.py", line 62, in _read_ah
version = _get_ah_version(filename)
File "/usr/lib/python3/dist-packages/obspy/io/ah/core.py", line 78, in _get_ah_version
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ah/tests/data/TSG/BRV.TSG.DS.lE21.resp'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ah/tests/test_core.py", line 31, in test_is_ah
self.assertTrue(_is_ah(testfile))
File "/usr/lib/python3/dist-packages/obspy/io/ah/core.py", line 44, in _is_ah
if _get_ah_version(filename):
File "/usr/lib/python3/dist-packages/obspy/io/ah/core.py", line 78, in _get_ah_version
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ah/tests/data/TSG/BRV.TSG.DS.lE21.resp'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/arclink/inventory.py", line 111, in validate_arclink_xml
xmldoc = etree.parse(path_or_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/arclink/tests/data/arclink_inventory.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/arclink/tests/data/arclink_inventory.xml"
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/arclink/tests/data/arclink_afc.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/arclink/tests/data/arclink_afc.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/arclink/tests/test_inventory_xml.py", line 76, in test_raise_polynomial
read_inventory(self.arclink_xml_poly)
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/arclink/tests/data/arclink_inventory_poly.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/arclink/tests/data/arclink_inventory_poly.xml"
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/arclink/tests/data/arclink_inventory.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/arclink/tests/data/arclink_inventory.xml"
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/tspair_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/tspair.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/slist.ascii'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ascii.core._read_slist
File "/usr/lib/python3/dist-packages/obspy/io/ascii/core.py", line 116, in _read_slist
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.ascii.core._read_slist[1]>", line 1, in <module>
st = read('/path/to/slist.ascii')
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/slist.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/tspair.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 449, in test_write_slist
stream_orig = _read_slist(testfile)
File "/usr/lib/python3/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/slist_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/slist_2_traces.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/slist_2_traces.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/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/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ascii.core._read_tspair
File "/usr/lib/python3/dist-packages/obspy/io/ascii/core.py", line 184, in _read_tspair
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.ascii.core._read_tspair[1]>", line 1, in <module>
st = read('/path/to/tspair.ascii')
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/tspair.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/slist_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/tspair_2_traces.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 277, in test_write_tspair
stream_orig = _read_tspair(testfile)
File "/usr/lib/python3/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/tspair_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/slist_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/tspair_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 252, in test_read_tspair_file_encoding
stream = _read_tspair(testfile)
File "/usr/lib/python3/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/tspair_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ascii/tests/test_ascii.py", line 127, in test_read_slist_file_encoding
stream = _read_slist(testfile)
File "/usr/lib/python3/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/slist_float.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 137, in _read_slist
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/slist.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ascii/core.py", line 205, in _read_tspair
with open(filename, 'rt') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ascii/tests/data/tspair_2_traces.ascii'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/data/MULTIPLE_EVENTS'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 138, in test_read_and_write_cmtsolution_explosion
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION_EXPLOSION'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 62, in test_write_no_preferred_focal_mechanism
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 232, in test_reading_newer_cmtsolution_files
cat = obspy.read_events(filename)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION_NEW'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/test_core.py", line 167, in test_is_cmtsolution
self.assertTrue(_is_cmtsolution(filename))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/data/CMTSOLUTION'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/cmtsolution/tests/data/MULTIPLE_EVENTS'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/cnv/tests/test_core.py", line 31, in test_write_cnv
cat = read_events(filename, format="QUAKEML")
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/cnv/tests/data/obspyck_20141020150701.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python3.4/gzip.py", line 52, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/usr/lib/python3.4/gzip.py", line 181, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python3.4/gzip.py", line 52, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/usr/lib/python3.4/gzip.py", line 181, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/css/tests/test_station.py", line 74, in test_default_write
self._run_test(inv, fname)
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/css/tests/data/station/default.affiliation'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python3.4/gzip.py", line 52, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/usr/lib/python3.4/gzip.py", line 181, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python3.4/gzip.py", line 52, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/usr/lib/python3.4/gzip.py", line 181, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python3.4/gzip.py", line 52, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/usr/lib/python3.4/gzip.py", line 181, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/css/tests/test_core.py", line 41, in setUp
with gzip.open(filename, 'rb') as fp:
File "/usr/lib/python3.4/gzip.py", line 52, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/usr/lib/python3.4/gzip.py", line 181, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/css/tests/data/201101311155.10.ascii.gz'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gcf.__init__
File "/usr/lib/python3/dist-packages/obspy/io/gcf/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.gcf.__init__[1]>", line 1, in <module>
st = read("/path/to/20160603_1955n.gcf")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gcf/tests/test_core.py", line 154, in test_sps_d
st = read(filename, headonly=True, channel_prefix="HN")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gcf/tests/data/20160603_1910n.gcf'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gcf/tests/test_core.py", line 40, in test_read_via_obspy
st = read(filename)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gcf.core._read_gcf
File "/usr/lib/python3/dist-packages/obspy/io/gcf/core.py", line 60, in _read_gcf
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/gcf/core.py", line 85, in _read_gcf
with open(filename, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gcf/tests/test_core.py", line 76, in test_read_via_module
st = _read_gcf(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gcf/core.py", line 85, in _read_gcf
with open(filename, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gcf/tests/test_core.py", line 59, in test_read_head_via_obspy
st = read(filename, headonly=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gcf/tests/data/20160603_1955n.gcf'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 579, in test_inventory
inventory = read_inventory(inventory_filename)
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/inventory.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/inventory.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 553, in test_non_standard_format
event_point_separator=True)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_non_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 95, in test_bytes_io
with open(gse2file, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RNON20040609200559.z'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/broken_head.gse2'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 705, in test_incomplete_file
self.assertRaises(GSE2BulletinSyntaxError, _read_gse2, filename)
File "/usr/lib/python3.4/unittest/case.py", line 704, in assertRaises
return context.handle('assertRaises', callableObj, args, kwargs)
File "/usr/lib/python3.4/unittest/case.py", line 162, in handle
callable_obj(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_incomplete.txt'
Traceback (most recent call last):
File "/usr/lib/python3/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')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/acc.gse'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_core.py", line 59, in test_read_head_via_obspy
st = read(gse2file, headonly=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 323, in test_amplitude
catalog = _read_gse2(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 44, in test_read
f = open(gse2file, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 57, in test_event
catalog = _read_gse2(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/twiceCHK2.gse2'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 700, in test_read_events
catalog = read_events(filename)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_2_events.txt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 387, in test_several_events
catalog = _read_gse2(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_2_events.txt'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z.wrong_chksum'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_core.py", line 315, in test_read_dos
st = read(filedos, verify_chksum=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349_first100_dos.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 204, in test_no_dat2_null_pointer
with open(filename, 'rb') as fin:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349_first100_dos.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_core.py", line 327, in test_read_apply_calib
st = read(gse2file, apply_calib=False)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 77, in test_read_and_write
with open(gse2file, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RNON20040609200559.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_core.py", line 37, in test_read_via_obspy
st = read(gse2file, verify_checksum=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 65, in test_read_with_wrong_checksum
fp = open(gse2file, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z.wrong_chksum'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 133, in test_is_widi_2
with open(filename, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RNON20040609200559.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 289, in test_station_magnitude
catalog = _read_gse2(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3.4/unittest/case.py", line 704, in assertRaises
return context.handle('assertRaises', callableObj, args, kwargs)
File "/usr/lib/python3.4/unittest/case.py", line 162, in handle
callable_obj(*args, **kwargs)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/GRF_031102_0225.GSE.wrong_chksum'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 142, in test_pick
catalog = _read_gse2(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gse2.bulletin._read_gse2
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 984, in _read_gse2
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.gse2.bulletin._read_gse2[3]>", line 3, in <module>
fields=fields, event_point_separator=True)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/bulletin/gse_2.0_non_standard.txt'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gse2.core._read_gse1
File "/usr/lib/python3/dist-packages/obspy/io/gse2/core.py", line 135, in _read_gse1
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.gse2.core._read_gse1[1]>", line 1, in <module>
st = read("/path/to/y2000.gse")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/y2000.gse'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 43, in test_catalog
catalog = _read_gse2(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 666, in test_several_begin
catalog = _read_gse2(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_2_begins.txt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_core.py", line 78, in test_read_and_write_via_obspy
st1 = read(gse2file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RNON20040609200559.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 486, in test_parameters
fields, False, 'AGE')
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_core.py", line 357, in test_read_gse2_int_datatype
st = read(gse2file, verify_checksum=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/boa___00_07a.gse'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gse2.core._read_gse2
File "/usr/lib/python3/dist-packages/obspy/io/gse2/core.py", line 34, in _read_gse2
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.gse2.core._read_gse2[1]>", line 1, in <module>
st = read("/path/to/loc_RJOB20050831023349.z")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_core.py", line 256, in test_read_gse1_head_via_obspy
st = read(gse1file, headonly=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_STAU20031119011659.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 118, in test_read_header
with open(gse2file, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/twiceCHK2.gse2'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 619, in test_inventory_with_multiple_channels
inventory = read_inventory(inventory_filename)
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/inventory_multiple_channels.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/inventory_multiple_channels.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_libgse2.py", line 244, in test_parse_sta2
with open(filename) as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/STA2.testlines'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 198, in test_arrival
catalog = _read_gse2(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.gse2.__init__
File "/usr/lib/python3/dist-packages/obspy/io/gse2/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.gse2.__init__[1]>", line 1, in <module>
st = read("/path/to/loc_RJOB20050831023349.z")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/loc_RJOB20050831023349.z'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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 "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/bulletin/gse_2.0_standard.txt'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/gse2/tests/test_core.py", line 191, in test_tab_complete_stats
tr = read(gse2file)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_core.py", line 217, in test_read_with_wrong_checksum
read(gse2file, verify_chksum=False)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RJOB20050831023349.z.wrong_chksum'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_RNON20040609200559.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 247, in test_magnitude
catalog = _read_gse2(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_core.py", line 238, in test_read_gse1_via_obspy
st = read(gse1file, verify_checksum=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/loc_STAU20031119011659.z'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/gse2/tests/test_bulletin.py", line 85, in test_origin
catalog = _read_gse2(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 1119, in _read_gse2
event_point_separator, agency).load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/gse2/bulletin.py", line 244, in load
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/gse2/tests/data/bulletin/gse_2.0_standard.txt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/iaspei/tests/test_core.py", line 135, in test_reading_via_plugin
_no_uuid_hashes=True)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python3/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))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/iaspei/tests/test_core.py", line 102, in test_reading
self.assertEqual(len(cat), 1)
TypeError: object of type 'bool' has no len()
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/iaspei/tests/data/19670130012028.isf'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/json/tests/../../quakeml/tests/data/qml-example-1.2-RC3.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/json/tests/../../quakeml/tests/data/qml-example-1.2-RC3.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/json/tests/test_json.py", line 27, in setUp
self.c = _read_quakeml(qml_file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/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/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.json.default
File "/usr/lib/python3/dist-packages/obspy/io/json/default.py", line 1, in default
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.json.default[3]>", line 1, in <module>
c = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/json/tests/../../quakeml/tests/data/qml-example-1.2-RC3.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/json/tests/../../quakeml/tests/data/qml-example-1.2-RC3.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/json/tests/test_json.py", line 27, in setUp
self.c = _read_quakeml(qml_file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/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/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/json/tests/../../quakeml/tests/data/qml-example-1.2-RC3.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/json/tests/../../quakeml/tests/data/qml-example-1.2-RC3.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/json/tests/test_json.py", line 27, in setUp
self.c = _read_quakeml(qml_file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/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/python3/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 227, in test_read_via_module_and_bytesio
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 180, in test_read_via_module
st = read_evt(filename)
File "/usr/lib/python3/dist-packages/obspy/io/kinemetrics/core.py", line 73, in read_evt
stream = evt_obj.read_file(filename_or_object)
File "/usr/lib/python3/dist-packages/obspy/io/kinemetrics/evt.py", line 101, in read_file
file_pointer = open(filename_or_object, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 44, in test_is_evt
self.assertTrue(is_evt(filename))
File "/usr/lib/python3/dist-packages/obspy/io/kinemetrics/core.py", line 49, in is_evt
with open(filename_or_object, "rb") as file_obj:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 128, in test_reading_via_obspy_and_bytesio
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 82, in test_read_via_obspy
st = read(filename)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.kinemetrics.__init__
File "/usr/lib/python3/dist-packages/obspy/io/kinemetrics/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kinemetrics.__init__[1]>", line 1, in <module>
st = read("/path/to/BI008_MEMA-04823.evt")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/BI008_MEMA-04823.evt'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/kinemetrics/tests/test_core.py", line 62, in test_is_evt_from_bytesio
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/kinemetrics/tests/data/BI008_MEMA-04823.evt'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/kml/tests/test_kml.py", line 45, in test_write_catalog
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.kml.__init__
File "/usr/lib/python3/dist-packages/obspy/io/kml/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.kml.__init__[3]>", line 1, in <module>
cat = read_events() # load example data
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/kml/tests/test_kml.py", line 35, in test_write_inventory
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/kml/tests/data/inventory.kml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 1092, in test_reading_truncated_miniseed_files_case_2
with io.open(filename, 'rb') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 628, in test_time_shifting_special_case
timeshift=123400)
File "/usr/lib/python3.4/unittest/case.py", line 704, in assertRaises
return context.handle('assertRaises', callableObj, args, kwargs)
File "/usr/lib/python3.4/unittest/case.py", line 162, in handle
callable_obj(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 1527, in shift_time_of_file
info = get_record_information(input_file)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 541, in get_record_information
with open(file_or_file_object, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/one_record_already_applied_time_correction.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 486, in test_get_start_and_end_time
(start, end) = util.get_start_and_end_time(filename)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 88, in get_start_and_end_time
info = get_record_information(file_or_file_object)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 541, in get_record_information
with open(file_or_file_object, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 1513, in test_per_trace_mseed_attributes
with io.open(d, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/test.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 317, in test_issue160
tr_one = read(file)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 1244, in test_reading_cdsn_format
tr = read(os.path.join(self.path, "data", "CDSN_encoding.mseed"))[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/CDSN_encoding.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_recordanalyzer.py", line 113, in test_record_with_data_offset_zero
obspy_recordanalyzer(['-n', '1', filename])
File "/usr/lib/python3/dist-packages/obspy/io/mseed/scripts/recordanalyzer.py", line 384, in main
rec = RecordAnalyser(args.filename)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/scripts/recordanalyzer.py", line 57, in __init__
self.file = open(file_object, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/bizarre/mseed_data_offset_0.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 299, in test_read_with_missing_blockette010
tr = read(file)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/blockette008.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 471, in test_issue272
st = read(filename)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 388, in test__partial_with_only_endtime_set
stream = _read_mseed(testfile, endtime=endtime - 6)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 653, in test_full_seed_with_non_default_dataquality
st = read(filename)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/fullseed.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 558, in test_unpack_steim_2
d = np.fromfile(steim2_file, dtype=np.uint8)[128:]
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/steim2.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 251, in test_is_mseed
is_mseed = _is_mseed(filename)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 48, in _is_mseed
file_size = os.path.getsize(filename)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 120, in test_read_and_write_traces
stream = _read_mseed(mseed_file)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/test.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 43, in test_read_head_file_via_obspy
stream = read(testfile, headonly=True, format='MSEED')
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/test.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 218, in test_get_data_quality
data_quality_flags=True)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 235, in get_flags
bfr_np = np.fromfile(file, dtype=np.int8)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/qualityflags.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 313, in test_read_file_via_mseed
stream = _read_mseed(testfile)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/test.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 375, in test_read_partial_with_only_starttime_set
stream = _read_mseed(testfile, starttime=starttime + 6)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 727, in test_read_with_gse2_option
tr = read(file, verify_chksum=True, starttime=None)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.second_record'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 401, in test_read_partial_frame_with_empty_time_range
endtime=starttime - 1E6 + 1)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/test.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 711, in test_read_parts_of_file
tr1 = read(file, starttime=t[0], endtime=t[1])[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.mseed.util.get_flags
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 100, in get_flags
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 192, in obspy.io.mseed.util.get_flags
Failed example:
filename = get_example_file("qualityflags.mseed")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_flags[1]>", line 1, in <module>
filename = get_example_file("qualityflags.mseed")
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file qualityflags.mseed in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 193, in obspy.io.mseed.util.get_flags
Failed example:
flags = get_flags(filename)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_flags[2]>", line 1, in <module>
flags = get_flags(filename)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 194, in obspy.io.mseed.util.get_flags
Failed example:
for k, v in flags["data_quality_flags_counts"].items():
print(k, v)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_flags[3]>", line 1, in <module>
for k, v in flags["data_quality_flags_counts"].items():
NameError: name 'flags' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 208, in obspy.io.mseed.util.get_flags
Failed example:
filename = get_example_file("timingquality.mseed")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_flags[4]>", line 1, in <module>
filename = get_example_file("timingquality.mseed")
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file timingquality.mseed in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 209, in obspy.io.mseed.util.get_flags
Failed example:
flags = get_flags(filename)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_flags[5]>", line 1, in <module>
flags = get_flags(filename)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 210, in obspy.io.mseed.util.get_flags
Failed example:
for k, v in sorted(flags["timing_quality"].items()):
print(k, v) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_flags[6]>", line 1, in <module>
for k, v in sorted(flags["timing_quality"].items()):
NameError: name 'flags' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 82, in test_read_gappy_file
stream = _read_mseed(mseed_file)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/gaps.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 811, in test_enforce_steim2_with_steim1_as_encoding
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_record'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 844, in test_mseed_zero_data_headonly
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/three_records_zero_data_in_middle.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 607, in test_read_full_seed
st = _read_mseed(files)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/fullseed.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 338, in test_issue217
tr = read(file)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/reclen_1024_without_sequence_numbers.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 1042, in test_reading_file_with_data_offset_of_48
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/mseed_not_a_single_blkt_48byte_data_offset.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 410, in test_read_partial_with_source_name
st1 = _read_mseed(testfile)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/two_channels.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 211, in test_read_and_write_file_with_gaps
stream = _read_mseed(filename)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/gaps.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 859, in test_files_from_libmseed
st = read(os.path.join(cur_file))
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/encoding/smallASCII_littleEndian.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 988, in test_is_valid_mseed
self.assertTrue(_is_mseed(file))
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 48, in _is_mseed
file_size = os.path.getsize(filename)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/fullseed.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 181, in test_get_record_information
info = util.get_record_information(os.path.join(path, file))
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 541, in get_record_information
with open(file_or_file_object, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/encoding/float32_Float32_bigEndian.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 299, in test_read_single_record_to_msr
ms.read(-1, 0, 1, 0)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/msstruct.py", line 142, in read
skipnotdata, dataflag, verbose)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/headers.py", line 833, in _wrapper
raise InternalMSEEDError(msg)
obspy.io.mseed.InternalMSEEDError: Encountered 1 error(s) during a call to ms_readmsr_r():
Cannot open file: /usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records (No such file or directory)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 266, in test_write_wrong_encoding_via_mseed_stats
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_record'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 1145, in test_regression_segfault_when_hooking_up_libmseeds_logging
_read_mseed(filename)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/wrong_blockette_numbers_specified.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 545, in test_unpack_steim_1
d = np.fromfile(steim1_file, dtype=np.uint8)[64:]
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_record'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 362, in test_read_partial_time_window_from_file
endtime=endtime - 6)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 269, in _read_mseed
length = os.path.getsize(mseed_object)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 137, in test_broken_last_record
d = np.fromfile(file, dtype=np.uint8)[128:]
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/brokenlastrecord.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 448, in test_issue312
ms = _MSStruct(filename)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/msstruct.py", line 71, in __init__
self.read(-1, 0, 1, 0)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/msstruct.py", line 142, in read
skipnotdata, dataflag, verbose)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/headers.py", line 833, in _wrapper
raise InternalMSEEDError(msg)
obspy.io.mseed.InternalMSEEDError: Encountered 1 error(s) during a call to ms_readmsr_r():
Cannot open file: /usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records (No such file or directory)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_recordanalyzer.py", line 22, in test_default_record
obspy_recordanalyzer([self.test_file])
File "/usr/lib/python3/dist-packages/obspy/io/mseed/scripts/recordanalyzer.py", line 384, in main
rec = RecordAnalyser(args.filename)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/scripts/recordanalyzer.py", line 57, in __init__
self.file = open(file_object, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/timingquality.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 564, in test_issue485
data = read(filename)[0].data.tolist()
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/encoding/nan_float32.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 432, in test_issue289
st = read(file, starttime=UTCDateTime() - 10, endtime=UTCDateTime())
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/steim2.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 1131, in test_corrupt_file_length
st = read(filename, reclen=512)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/corrupt_one_extra_byte_at_end.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 1063, in test_reading_truncated_miniseed_files
with io.open(filename, 'rb') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 1102, in test_read_timing_qual
st = read(filename, details=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/timingquality.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 1222, in test_reading_sro_format
"SRO_encoding.mseed")).select(component="Z")[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/SRO_encoding.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 1123, in test_set_flags_in_fixed_header_with_blockette_100
tf.name)
File "/usr/lib/python3.4/shutil.py", line 229, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.4/shutil.py", line 108, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/test.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 512, in test_get_timing_quality
data_quality_flags=False)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 235, in get_flags
bfr_np = np.fromfile(file, dtype=np.int8)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/timingquality.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 971, in test_is_invalid_mseed
self.assertFalse(_is_mseed(file))
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 48, in _is_mseed
file_size = os.path.getsize(filename)
File "/usr/lib/python3.4/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/not.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 1233, in test_reading_dwwssn_format
tr = read(os.path.join(self.path, "data", "DWWSSN_encoding.mseed"))[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/DWWSSN_encoding.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 797, in test_mseed_zero_data_offset
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/bizarre/mseed_data_offset_0.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 1122, in test_reading_less_than_128_bytes
with io.open(filename, 'rb') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.mseed.util.get_record_information
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 506, in get_record_information
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 517, in obspy.io.mseed.util.get_record_information
Failed example:
filename = get_example_file("test.mseed")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_record_information[1]>", line 1, in <module>
filename = get_example_file("test.mseed")
File "/usr/lib/python3/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
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 518, in obspy.io.mseed.util.get_record_information
Failed example:
ri = get_record_information(filename)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_record_information[2]>", line 1, in <module>
ri = get_record_information(filename)
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 519, in obspy.io.mseed.util.get_record_information
Failed example:
for k, v in sorted(ri.items()):
print(k, v)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_record_information[3]>", line 1, in <module>
for k, v in sorted(ri.items()):
NameError: name 'ri' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 740, in test_reading_noise_records
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/single_record_plus_noise_record.mseed'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.mseed.core._read_mseed
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 147, in _read_mseed
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 197, in obspy.io.mseed.core._read_mseed
Failed example:
st = read("/path/to/two_channels.mseed")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.core._read_mseed[1]>", line 1, in <module>
st = read("/path/to/two_channels.mseed")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/two_channels.mseed'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 198, in obspy.io.mseed.core._read_mseed
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.core._read_mseed[2]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 204, in obspy.io.mseed.core._read_mseed
Failed example:
st = read("/path/to/two_channels.mseed",
starttime=UTCDateTime("2010-06-20T00:00:01"),
sourcename="*.?HZ")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.core._read_mseed[4]>", line 3, in <module>
sourcename="*.?HZ")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/two_channels.mseed'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 207, in obspy.io.mseed.core._read_mseed
Failed example:
print(st) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.core._read_mseed[5]>", line 1, in <module>
print(st) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 213, in obspy.io.mseed.core._read_mseed
Failed example:
st = read("/path/to/timingquality.mseed", details=True)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.core._read_mseed[6]>", line 1, in <module>
st = read("/path/to/timingquality.mseed", details=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/timingquality.mseed'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 214, in obspy.io.mseed.core._read_mseed
Failed example:
print(st[0].stats.mseed.blkt1001.timing_quality)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.core._read_mseed[7]>", line 1, in <module>
print(st[0].stats.mseed.blkt1001.timing_quality)
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 220, in obspy.io.mseed.core._read_mseed
Failed example:
print(st[0].stats.mseed.calibration_type)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.core._read_mseed[8]>", line 1, in <module>
print(st[0].stats.mseed.calibration_type)
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/core.py", line 227, in obspy.io.mseed.core._read_mseed
Failed example:
print(len(st))
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.core._read_mseed[9]>", line 1, in <module>
print(len(st))
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 485, in test_issue325
st = read(filename)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/dataquality-m.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 1146, in test_verbosity
st = read(filename, verbose=2)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.UH3.__.EHZ.D.2010.171.first_record'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 285, in test_wrong_record_length_as_argument
read(file, reclen=111)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/encoding/float32_Float32_bigEndian.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_recordanalyzer.py", line 64, in test_second_record
obspy_recordanalyzer(['-n', '1', self.test_file])
File "/usr/lib/python3/dist-packages/obspy/io/mseed/scripts/recordanalyzer.py", line 384, in main
rec = RecordAnalyser(args.filename)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/scripts/recordanalyzer.py", line 57, in __init__
self.file = open(file_object, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/timingquality.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 914, in test_reading_miniseed_with_no_blockette_1000
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/bizarre/mseed_no_blkt_1000.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 1240, in test_get_record_information_with_invalid_word_order
info = util.get_record_information(filename)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 541, in get_record_information
with open(file_or_file_object, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/record_with_invalid_word_order.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 1468, in test_libmseed_test_cases
with io.open(filename, "rt") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/libmseed/pack-Float32-encoded.test'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 619, in test_read_with_wild_card
st = read(files)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_record'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 892, in test_writing_microseconds
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.UH3.__.EHZ.D.2010.171.first_record'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 742, in test_all_data_types_and_endians_in_multiple_files
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.second_record'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.mseed.__init__
File "/usr/lib/python3/dist-packages/obspy/io/mseed/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/__init__.py", line 31, in obspy.io.mseed.__init__
Failed example:
st = read("/path/to/test.mseed")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.__init__[1]>", line 1, in <module>
st = read("/path/to/test.mseed")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/test.mseed'
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/__init__.py", line 32, in obspy.io.mseed.__init__
Failed example:
st #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.__init__[2]>", line 1, in <module>
st #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/__init__.py", line 34, in obspy.io.mseed.__init__
Failed example:
print(st) #doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.__init__[3]>", line 1, in <module>
print(st) #doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/__init__.py", line 37, in obspy.io.mseed.__init__
Failed example:
print(st[0].stats) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.__init__[4]>", line 1, in <module>
print(st[0].stats) # doctest: +ELLIPSIS
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/__init__.py", line 53, in obspy.io.mseed.__init__
Failed example:
for k, v in sorted(st[0].stats.mseed.items()):
print("'%s': %s" % (k, str(v))) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.__init__[5]>", line 1, in <module>
for k, v in sorted(st[0].stats.mseed.items()):
NameError: name 'st' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/__init__.py", line 65, in obspy.io.mseed.__init__
Failed example:
print(st[0].data)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.__init__[6]>", line 1, in <module>
print(st[0].data)
NameError: name 'st' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 248, in test_write_wrong_encoding
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_record'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 762, in test_read_file_with_various_noise_records
st = read(file)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/various_noise_records.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 170, in test_get_record_information
info = util.get_record_information(filename)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 541, in get_record_information
with open(file_or_file_object, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.mseed.util.get_start_and_end_time
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 29, in get_start_and_end_time
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 48, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
filename = get_example_file(
"BW.BGLD.__.EHE.D.2008.001.first_10_records")
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[1]>", line 2, in <module>
"BW.BGLD.__.EHE.D.2008.001.first_10_records")
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 215, in get_example_file
raise OSError(msg)
OSError: Could not find file BW.BGLD.__.EHE.D.2008.001.first_10_records in tests/data or data directory of ObsPy modules
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 50, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
get_start_and_end_time(filename) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[2]>", line 1, in <module>
get_start_and_end_time(filename) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 57, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
f = open(filename, 'rb')
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[3]>", line 1, in <module>
f = open(filename, 'rb')
NameError: name 'filename' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 58, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
get_start_and_end_time(f) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[4]>", line 1, in <module>
get_start_and_end_time(f) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'f' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 65, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
file_object = io.BytesIO(f.read())
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[6]>", line 1, in <module>
file_object = io.BytesIO(f.read())
NameError: name 'f' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 66, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
get_start_and_end_time(file_object) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[7]>", line 1, in <module>
get_start_and_end_time(file_object) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'file_object' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 69, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
file_object.close()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[8]>", line 1, in <module>
file_object.close()
NameError: name 'file_object' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 74, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
_ = f.seek(512)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[9]>", line 1, in <module>
_ = f.seek(512)
NameError: name 'f' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 75, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
get_start_and_end_time(f) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[10]>", line 1, in <module>
get_start_and_end_time(f) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'f' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 81, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
file_object = io.BytesIO(f.read())
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[11]>", line 1, in <module>
file_object = io.BytesIO(f.read())
NameError: name 'f' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 82, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
get_start_and_end_time(file_object) # doctest: +NORMALIZE_WHITESPACE
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[12]>", line 1, in <module>
get_start_and_end_time(file_object) # doctest: +NORMALIZE_WHITESPACE
NameError: name 'file_object' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 85, in obspy.io.mseed.util.get_start_and_end_time
Failed example:
f.close()
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.mseed.util.get_start_and_end_time[13]>", line 1, in <module>
f.close()
NameError: name 'f' is not defined
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 1005, in test_bizarre_files
"endiantest.be-header.be-data.mseed"))
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/bizarre/endiantest.be-header.be-data.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_util.py", line 575, in test_time_shifting
util.shift_time_of_file(filename, output_filename, 10000)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 1527, in shift_time_of_file
info = get_record_information(input_file)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 541, in get_record_information
with open(file_or_file_object, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/BW.BGLD.__.EHE.D.2008.001.first_10_records'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_special_issues.py", line 876, in test_read_file_with_microsecond_wrap
info = util.get_record_information(file)
File "/usr/lib/python3/dist-packages/obspy/io/mseed/util.py", line 541, in get_record_information
with open(file_or_file_object, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/microsecond_wrap.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 474, in test_read_ms_traces_via_records_multiple_ids
st = read(file, starttime=starttime, endtime=endtime)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/constructedFileToTestReadViaRecords.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/mseed/tests/test_mseed_reading_and_writing.py", line 1206, in test_reading_geoscope_16bit_4bit_exponent_format
"GEOSCOPE16_4_encoding.mseed"))[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/mseed/tests/data/GEOSCOPE16_4_encoding.mseed'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 129, in test_reading_from_bytes_io
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.ndk.__init__
File "/usr/lib/python3/dist-packages/obspy/io/ndk/__init__.py", line 2, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.ndk.__init__[1]>", line 1, in <module>
cat = obspy.read_events("/path/to/C200604092050A.ndk")
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/C200604092050A.ndk'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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") \
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 220, in test_reading_file_with_multiple_errors
cat = read_events(filename)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/faulty_multiple_events.ndk'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 257, in test_reading_from_bytestring
ref_cat = read_events(reference)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/C200604092050A.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 101, in test_reading_using_obspy_plugin
cat = read_events(filename)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 34, in test_read_single_ndk
cat = _read_ndk(filename)
File "/usr/lib/python3/dist-packages/obspy/io/ndk/core.py", line 401, in _read_ndk
raise ObsPyNDKException(msg)
obspy.io.ndk.core.ObsPyNDKException: No valid events found in NDK file.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 47, in test_read_multiple_events
cat = _read_ndk(filename)
File "/usr/lib/python3/dist-packages/obspy/io/ndk/core.py", line 401, in _read_ndk
raise ObsPyNDKException(msg)
obspy.io.ndk.core.ObsPyNDKException: No valid events found in NDK file.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 113, in test_reading_from_string_io
with open(filename, "rt") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python3/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") \
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/multiple_events.ndk'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/faulty_cmt_timestamp.ndk'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/ndk/tests/test_ndk.py", line 240, in test_reading_from_string
ref_cat = read_events(reference)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/C200604092050A.xml'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/ndk/tests/data/C200604092050A.ndk'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/nied/tests/data/test.knet'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nied/tests/data/test.knet'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nied/tests/test_knet_reading.py", line 98, in test_is_knet_ascii
self.assertTrue(is_knet)
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nied/tests/data/test.knet'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nied/tests/data/FNETMTCATALOG'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.nied.__init__
File "/usr/lib/python3/dist-packages/obspy/io/nied/__init__.py", line 0, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[1]>", line 1, in <module>
cat = obspy.read_events("/path/to/FNETMTCATALOG")
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/FNETMTCATALOG'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[5]>", line 1, in <module>
st = read('/path/to/test.knet')
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/test.knet'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nied.__init__[7]>", line 1, in <module>
st = read('/path/to/test.knet',convert_stnm=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/test.knet'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nied/tests/data/FNETMTCATALOG'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nied/tests/test_fnetmt_reading.py", line 24, in test_read_fnetmt_catalog
cat = read_events(testfile, 'FNETMT')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/nied/tests/data/FNETMTCATALOG'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nied/tests/test_fnetmt_reading.py", line 69, in test_is_fnetmt_catalog
self.assertTrue(is_fnetmt)
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nied/tests/test_knet_reading.py", line 26, in test_read_knet_ascii
tr = read(testfile)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/nied/tests/data/test.knet'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/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/python3/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/python3/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/python3/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/python3/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/python3/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/python3/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/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.nlloc.__init__
File "/usr/lib/python3/dist-packages/obspy/io/nlloc/__init__.py", line 2, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nlloc.__init__[1]>", line 1, in <module>
cat = read_events("/path/to/nlloc.hyp")
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/nlloc.hyp'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.nlloc.__init__[2]>", line 1, in <module>
print(cat)
NameError: name 'cat' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/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/python3/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/python3/dist-packages/obspy/io/nlloc/util.py", line 51, in read_nlloc_scatter
data = np.fromfile(filename, dtype=dtype)[4:]
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nlloc/tests/data/nlloc.scat'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/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/python3/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/python3/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/python3/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/python3/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/python3/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/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 386, in test_read_wavename
wavefiles = readwavename(testing_path)
File "/usr/lib/python3/dist-packages/obspy/io/nordic/core.py", line 636, in readwavename
with open(sfile, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/nordic/core.py", line 232, in readheader
with open(sfile, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nordic/tests/data/Sfile_no_header'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 439, in test_inaccurate_picks
cat = read_nordic(testing_path)
File "/usr/lib/python3/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'str' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 319, in test_reading_bytes_io
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 304, in test_reading_string_io
with open(filename, "rt") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 397, in test_read_event
event = read_nordic(testing_path)[0]
File "/usr/lib/python3/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'str' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 263, in test_read_empty_header
'Sfile_no_location'))[0]
File "/usr/lib/python3/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'str' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/nordic/core.py", line 336, in read_spectral_info
with open(sfile, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nordic/tests/data/automag.out'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 462, in test_read_moment
event = read_nordic(testing_path)[0]
File "/usr/lib/python3/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'str' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 409, in test_write_select
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 420, in test_write_plugin
cat = read_events()
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 807, in read_events
return _create_example_catalog()
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 868, in _create_example_catalog
return read_events('/path/to/neries_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/neries_events.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 536, in test_distance_conversion
cat = read_events(testing_path)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'str' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 288, in test_header_mapping
'01-0411-15L.S201309'))
File "/usr/lib/python3/dist-packages/obspy/io/nordic/core.py", line 232, in readheader
with open(sfile, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 405, in test_read_many_events
catalog = read_nordic(testing_path)
File "/usr/lib/python3/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'str' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 449, in test_round_len
event = read_nordic(testing_path)[0]
File "/usr/lib/python3/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'str' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/nordic/core.py", line 467, in read_nordic
f.close()
AttributeError: 'str' object has no attribute 'close'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/nordic/tests/test_nordic.py", line 334, in test_corrupt_header
f = open(filename, 'r')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/nordic/tests/data/01-0411-15L.S201309'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.pdas.core._read_pdas
File "/usr/lib/python3/dist-packages/obspy/io/pdas/core.py", line 44, in _read_pdas
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.pdas.core._read_pdas[1]>", line 1, in <module>
st = read("/path/to/p1246001.108")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/p1246001.108'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/pdas/tests/test_core.py", line 28, in test_read_pdas
st = _read_pdas(self.testfile)
File "/usr/lib/python3/dist-packages/obspy/io/pdas/core.py", line 68, in _read_pdas
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pdas/tests/data/p1246001.108'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.pde.mchedr._read_mchedr
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1, in _read_mchedr
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.pde.mchedr._read_mchedr[1]>", line 1, in <module>
cat = read_events('/path/to/mchedr.dat')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/mchedr.dat'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/pde/tests/test_mchedr.py", line 40, in setUp
self.__class__.catalog = _read_mchedr(filename)
File "<string>", line 2, in _read_mchedr
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 1086, in _read_mchedr
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/pde/mchedr.py", line 92, in load
self.fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/pde/tests/data/mchedr.dat'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.quakeml.core._read_quakeml
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1778, in _read_quakeml
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.quakeml.core._read_quakeml[1]>", line 1, in <module>
cat = read_events('/path/to/iris_events.xml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/iris_events.xml'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/test_quakeml.py", line 39, in setUp
self.neries_catalog = _read_quakeml(self.neries_filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/reftek/tests/test_core.py", line 138, in test_read_reftek130_steim1
component_codes=["1", "2", "3"])
File "/usr/lib/python3/dist-packages/obspy/io/reftek/core.py", line 98, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "/usr/lib/python3/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/reftek/tests/test_core.py", line 211, in test_integration_with_obspy_core
component_codes=["1", "2", "3"])
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/221935615_00000000'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/reftek/tests/test_core.py", line 223, in test_error_no_packets_read
self.mseed_files[0])
File "/usr/lib/python3.4/unittest/case.py", line 704, in assertRaises
return context.handle('assertRaises', callableObj, args, kwargs)
File "/usr/lib/python3.4/unittest/case.py", line 162, in handle
callable_obj(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/reftek/core.py", line 98, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "/usr/lib/python3/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/2015282_225051_0ae4c_1_1.msd'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.reftek.__init__
File "/usr/lib/python3/dist-packages/obspy/io/reftek/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.reftek.__init__[4]>", line 2, in <module>
component_codes="ZNE")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/225051000_00008656'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/reftek/tests/test_core.py", line 150, in test_read_reftek130_steim2
component_codes=["1", "2", "3"])
File "/usr/lib/python3/dist-packages/obspy/io/reftek/core.py", line 98, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "/usr/lib/python3/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/104800000_000093F8'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/104800000_000093F8'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/reftek/tests/test_core.py", line 355, in test_truncated_last_packet
with open(self.reftek_file, 'rb') as fh2:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/221935615_00000000'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/reftek/core.py", line 98, in _read_reftek130
rt130 = Reftek130.from_file(filename)
File "/usr/lib/python3/dist-packages/obspy/io/reftek/core.py", line 140, in from_file
with io.open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/reftek/tests/data/225051000_00008656'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 413, in test_null_terminated_strings
tr = read(null_file)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/null_terminated.sac'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, 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/python3/dist-packages/obspy/io/sac/sactrace.py", line 1250, in to_obspy_trace
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 50, in test_read_via_obspy
tr = read(self.file, format='SAC')[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.__init__
File "/usr/lib/python3/dist-packages/obspy/io/sac/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.__init__[1]>", line 1, in <module>
st = read('/path/to/test.sac', debug_headers=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/test.sac'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/dist-packages/obspy/io/sac/sacpz.py", line 319, in attach_resp
resp_filep = open(resp_file, 'r')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/RESP.NZ.CRLZ.10.HHZ'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/sac/core.py", line 206, in _read_sac_xy
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 311, in test_undefined_b
tr = read(self.file)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python3/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac.swap'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/sac/core.py", line 206, in _read_sac_xy
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python3/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 693, in test_is_sacxy_bytes_io
with open(self.filexy, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 168, in test_reftime_relative_times
sac = SACTrace.read(self.fileseis)
File "/usr/lib/python3/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python3/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/seism.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 930, in test_encoding_flag
tr0 = read(self.file_encode, encoding='cp1252')[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test_encode.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_sacpz.py", line 87, in test_attach_paz_diff_order
attach_paz(tr, pazfile)
File "/usr/lib/python3/dist-packages/obspy/io/sac/sacpz.py", line 163, in attach_paz
paz_file = open(paz_file, 'r')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/NZCRLZ_HHZ10.pz'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 843, in test_invalid_header_field
tr = read(self.file, format='SAC')[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python3/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 827, in test_decimate_resample
tr = read(self.file, format='SAC')[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/sac/core.py", line 348, in _read_sac
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python3/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_sactrace.py", line 150, in test_reftime
sac = SACTrace.read(self.fileseis)
File "/usr/lib/python3/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python3/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/seism.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/IU_ANMO_00_BHZ.xml': failed to load external entity "/path/to/IU_ANMO_00_BHZ.xml"
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._read_sac
File "/usr/lib/python3/dist-packages/obspy/io/sac/core.py", line 311, in _read_sac
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.core._read_sac[1]>", line 1, in <module>
st = read("/path/to/test.sac")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, 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/python3/dist-packages/obspy/io/sac/core.py", line 118, in _is_sac_xy
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/dist-packages/obspy/io/sac/arrayio.py", line 217, in read_sac_ascii
fh = open(source, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/testxy.sac'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/arrayio.py", line 223, in read_sac_ascii
raise SacIOError("No such file: " + source)
obspy.io.sac.util.SacIOError: No such file: /usr/lib/python3/dist-packages/obspy/io/sac/tests/data/testxy.sac
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/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/python3/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/python3.4/doctest.py", line 2187, 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/python3/dist-packages/obspy/io/sac/core.py", line 212, in _internal_read_sac_xy
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.core._internal_read_sac_xy[1]>", line 1, in <module>
st = read("/path/to/testxy.sac")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac.swap'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.listhdr
File "/usr/lib/python3/dist-packages/obspy/io/sac/sactrace.py", line 1411, in listhdr
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sacpz.attach_resp
File "/usr/lib/python3/dist-packages/obspy/io/sac/sacpz.py", line 279, in attach_resp
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/sac/sacpz.py", line 319, in attach_resp
resp_filep = open(resp_file, 'r')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/RESP.NZ.CRLZ.10.HHZ'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3/dist-packages/obspy/core/util/attribdict.py", line 123, in __getattr__
return self.__getitem__(name, default)
File "/usr/lib/python3/dist-packages/obspy/core/util/attribdict.py", line 72, in __getitem__
return self.__dict__[name]
KeyError: 'paz'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/core/util/attribdict.py", line 125, in __getattr__
raise AttributeError(e.args[0])
AttributeError: paz
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3/dist-packages/obspy/core/util/attribdict.py", line 123, in __getattr__
return self.__getitem__(name, default)
File "/usr/lib/python3/dist-packages/obspy/core/util/attribdict.py", line 72, in __getitem__
return self.__dict__[name]
KeyError: 'paz'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.read
File "/usr/lib/python3/dist-packages/obspy/io/sac/sactrace.py", line 1034, in read
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.sactrace.SACTrace.read[2]>", line 1, in <module>
file_ = get_example_file("test.sac")
File "/usr/lib/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 283, in test_reference_time
tr = read(self.fileseis)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/seism.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/sac/sactrace.py", line 1092, in read
checksize=checksize)
File "/usr/lib/python3/dist-packages/obspy/io/sac/arrayio.py", line 111, in read_sac
f = open(source, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/sac/sacpz.py", line 163, in attach_paz
paz_file = open(paz_file, 'r')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/SAC_PZs_NZ_HHZ_10'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 684, in test_is_sac_open_file
with open(self.file, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace.validate
File "/usr/lib/python3/dist-packages/obspy/io/sac/sactrace.py", line 1304, in validate
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 254, in test_iztype11
tr = read(sod_file)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/dis.G.SCZ.__.BHE_short'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 923, in test_wrong_encoding
tr0 = read(self.file_encode)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test_encode.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/seism.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 196, in test_read_and_write_via_obspy
tr = read(self.file)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.sactrace.SACTrace._allt
File "/usr/lib/python3/dist-packages/obspy/io/sac/sactrace.py", line 1498, in _allt
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.sactrace.SACTrace._allt[2]>", line 1, in <module>
file_ = get_example_file("test.sac")
File "/usr/lib/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac.swap'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 658, in test_is_sac_bytes_io
with open(self.file, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/sac/core.py", line 348, in _read_sac
with open(filename, "rb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, 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/python3/dist-packages/obspy/io/sac/core.py", line 174, in _read_sac_xy
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.sac.core._read_sac_xy[1]>", line 1, in <module>
st = read("/path/to/testxy.sac")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/testxy.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 374, in test_not_used_but_given_headers
tr1 = read(self.file)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 271, in test_default_values
tr = read(self.file)[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/test.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 386, in _read_from_plugin
is_format = is_format(filename)
File "/usr/lib/python3/dist-packages/obspy/io/arclink/inventory.py", line 66, in _is_inventory_xml
xmldoc = etree.parse(path_or_file_object)
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/path/to/IU_ANMO_BH.xml': failed to load external entity "/path/to/IU_ANMO_BH.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/sac/tests/test_core.py", line 864, in test_not_ascii
tr = read(self.file_notascii, format='SAC')[0]
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/non_ascii.sac'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3.4/unittest/case.py", line 704, in assertRaises
return context.handle('assertRaises', callableObj, args, kwargs)
File "/usr/lib/python3.4/unittest/case.py", line 162, in handle
callable_obj(*args, **kwargs)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/sac/tests/data/seism-longer.sac'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.sac.core._is_sac
File "/usr/lib/python3/dist-packages/obspy/io/sac/core.py", line 25, in _is_sac
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/scardec/tests/data/test.scardec'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/scardec/tests/test_core.py", line 183, in test_is_scardec
self.assertTrue(_is_scardec(filename))
AssertionError: False is not true
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/scardec/tests/data/test.scardec'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/scardec/tests/data/test.scardec'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seg2/tests/test_seg2.py", line 84, in test_read_data_format_2
st = read(basename + ".seg2.gz")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/seg2/tests/data/20130107_103041000.CET.3c.cont.0.seg2.gz'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/numpy/lib/npyio.py", line 370, in load
fid = open(file, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/planes.segy_first_trace.npy'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.__init__
File "/usr/lib/python3/dist-packages/obspy/io/segy/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.segy.__init__[2]>", line 1, in <module>
filename = get_example_file("00001034.sgy_first_trace")
File "/usr/lib/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.segy.__init__[15]>", line 1, in <module>
print(segy)
NameError: name 'segy' is not defined
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/dist-packages/obspy/io/segy/segy.py", line 1314, in _read_su
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/segy/core.py", line 410, in _is_su
with open(filename, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/planes.segy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/planes.segy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_segy.py", line 450, in test_unpack_trace_header
segy = _read_segy(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 396, in test_writing_new_sampling_rate
segy = _read_segy(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 597, in test_issue_377
st = _read_segy(filename)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/one_trace_year_11.sgy'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_segy.py", line 599, in test_iterative_reading
st = obspy.read(filename, unpack_trace_headers=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/example.y_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_segy.py", line 405, in test_unpack_binary_file_header
segy = _read_segy(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_su.py", line 61, in test_enforcing_byteorders_while_reading
su = _read_su(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 1314, in _read_su
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 219, in test_invalid_data_encoding_raises
st = _read_segy(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/planes.segy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.segy.iread_segy
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 991, in iread_segy
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 519, in test_writing_starttime_timestamp_0
with open(file, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.segy.iread_su
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 1077, in iread_su
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 499, in test_writing_modified_date
segy = _read_segy(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/example.y_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_segy.py", line 564, in test_read_bytes_io
with open(file, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/example.y_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.core._read_segy
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 131, in _read_segy
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.segy.core._read_segy[1]>", line 1, in <module>
st = read("/path/to/00001034.sgy_first_trace")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/00001034.sgy_first_trace'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 585, in test_two_digit_years_su
st = _read_su(filename)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 458, in _read_su
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 1314, in _read_su
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/one_trace_year_11.su'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_su.py", line 109, in test_unpacking_su_data
su = _read_su(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 1314, in _read_su
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_su.py", line 133, in test_iterative_reading
st = obspy.read(filename, unpack_trace_headers=True)
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/planes.segy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 148, in test_setting_data_encoding_works
st = _read_segy(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_su.py", line 39, in test_read_and_write_su
with open(file, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 289, in test_enforcing_endianness_while_reading
st1 = _read_segy(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.segy.core._read_su
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 419, in _read_su
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.segy.core._read_su[1]>", line 1, in <module>
st = read("/path/to/1.su_first_trace")
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/1.su_first_trace'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3/dist-packages/obspy/io/segy/tests/test_segy.py", line 358, in test_read_and_write_segy
with open(file, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/planes.segy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 573, in test_two_digit_years_segy
st = _read_segy(filename)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/one_trace_year_11.sgy'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_segy.py", line 52, in test_unpack_segy_data
with open(file, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/planes.segy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/segy/tests/test_segy.py", line 336, in test_read_and_write_trace_header
with open(file, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/planes.segy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3.4/unittest/case.py", line 704, in assertRaises
return context.handle('assertRaises', callableObj, args, kwargs)
File "/usr/lib/python3.4/unittest/case.py", line 162, in handle
callable_obj(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_su.py", line 122, in test_read_bytes_io
with open(filename, 'rb') as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.su_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 417, in test_reading_date
segy = _read_segy(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/1.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_core.py", line 125, in test_enforcing_endianness_while_writing
st1 = _read_segy(file)
File "/usr/lib/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/segy/core.py", line 176, in _read_segy
unpack_headers=unpack_trace_headers)
File "/usr/lib/python3/dist-packages/obspy/io/segy/segy.py", line 949, in _read_segy
with open(file, 'rb') as open_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/ld0042_file_00018.sgy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/segy/tests/test_segy.py", line 358, in test_read_and_write_segy
with open(file, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/planes.segy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/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:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/segy/tests/data/planes.segy_first_trace'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seisan/tests/test_core.py", line 72, in test_read_seisan
st = _read_seisan(fn)
File "/usr/lib/python3/dist-packages/obspy/io/seisan/core.py", line 144, in _read_seisan
fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/seisan/tests/data/9701-30-1048-54S.MVO_21_1'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seisan/tests/test_core.py", line 197, in test_read_obspy
'2011-09-06-1311-36S.A1032_001BH_Z'))
File "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 235, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/seisan/tests/data/2011-09-06-1311-36S.A1032_001BH_Z'
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seisan.core._read_seisan
File "/usr/lib/python3/dist-packages/obspy/io/seisan/core.py", line 117, in _read_seisan
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/2001-01-13-1742-24S.KONO__004'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/seisan/tests/test_core.py", line 34, in test_get_version
with open(fn, 'rb') as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/seisan/tests/data/1996-06-03-1917-52S.TEST__002'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/seisan/core.py", line 144, in _read_seisan
fh = open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/obspy/io/seisan/tests/data/9701-30-1048-54S.MVO_21_1'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seisan.__init__
File "/usr/lib/python3/dist-packages/obspy/io/seisan/__init__.py", line 1, in __init__
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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 "<string>", line 2, in read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/stream.py", line 241, in read
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/2001-01-13-1742-24S.KONO__004'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 222, in test_write_xslt_origin
path=self.quakeml_path)
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_origin.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_origin.xml"
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 217, in test_write_xslt_event
path=self.quakeml_path)
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_event.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_event.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 300, in test_write_remove_events
catalog = _read_quakeml(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 251, in test_write_xslt_pick
'quakeml_1.2_pick.sc3ml')
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_pick.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_pick.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitude.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitude.xml"
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 266, in test_write_xslt_neries_events
catalog = _read_quakeml(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 1801, in _read_quakeml
return Unpickler().load(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 149, in load
self.xml_doc = _xml_doc_from_anything(file)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/neries_events.xml' to an etree element.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 227, in test_write_xslt_magnitude
'quakeml_1.2_magnitude.sc3ml')
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_magnitude.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_magnitude.xml"
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_focalmechanism.sc3ml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_focalmechanism.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/iris_events.sc3ml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/iris_events.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 209, in test_read_quakeml
read_events(filename, format='SC3ML')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.xml'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 118, in test_read_xslt_magnitude
'quakeml_1.2_magnitude.xml')
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_magnitude.sc3ml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_magnitude.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 311, in test_read_and_write
catalog = read_events(filename)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3_write.sc3ml'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_origin.sc3ml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_origin.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 72, in _xml_doc_from_anything
xml_doc = etree.parse(source).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.sc3ml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/qml-example-1.2-RC3.sc3ml"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 75, in _xml_doc_from_anything
xml_doc = etree.fromstring(source)
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1666, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101214)
File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:96124)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 78, in _xml_doc_from_anything
xml_doc = etree.fromstring(source.encode())
File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
File "parser.pxi", line 1785, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102455)
File "parser.pxi", line 1673, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101284)
File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96466)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91757)
File "<string>", line None
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 155, in test_read_example
catalog = _read_sc3ml(filename)
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/event.py", line 63, in _read_sc3ml
sc3ml_doc = _xml_doc_from_anything(filename)
File "/usr/lib/python3/dist-packages/obspy/io/quakeml/core.py", line 81, in _xml_doc_from_anything
source)
ValueError: Could not parse '/usr/lib/python3/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/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitude.sc3ml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitude.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 2187, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for obspy.io.seiscomp.event._read_sc3ml
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/event.py", line 31, in _read_sc3ml
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.seiscomp.event._read_sc3ml[1]>", line 1, in <module>
cat = read_events('/path/to/iris_events.sc3ml')
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 842, in read_events
raise IOError(2, "No such file or directory", pathname)
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/iris_events.sc3ml'
----------------------------------------------------------------------
File "/usr/lib/python3/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/python3.4/doctest.py", line 1318, in __run
compileflags, 1), 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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 247, in test_write_xslt_arrival
path=self.quakeml_path)
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_arrival.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_arrival.xml"
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_event.sc3ml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_event.sc3ml"
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitudecontributions.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_stationmagnitudecontributions.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_inventory.py", line 41, in setUp
format="STATIONXML")
File "<string>", line 2, in read_inventory
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/inventory/inventory.py", line 98, in read_inventory
format=format, *args, **kwargs)[0]
File "/usr/lib/python3/dist-packages/obspy/core/util/base.py", line 412, in _read_from_plugin
list_obj = read_format(filename, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/io/stationxml/core.py", line 134, in _read_stationxml
root = etree.parse(path_or_file_object).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/EB_response_stationXML"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 261, in test_write_xslt_iris_events
path=self.quakeml_path)
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/iris_events.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/iris_events.xml"
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_data_used.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/quakeml_1.2_data_used.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 256, in test_write_xslt_focalmechanism
path=self.quakeml_path)
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 75, in cmp_write_xslt_file
sc3ml_doc = transform(etree.parse(filename))
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69955)
File "parser.pxi", line 1748, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102066)
File "parser.pxi", line 1774, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102330)
File "parser.pxi", line 1678, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101365)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96817)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91275)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92461)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91722)
OSError: Error reading file '/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_focalmechanism.xml': failed to load external entity "/usr/lib/python3/dist-packages/obspy/io/quakeml/tests/data/quakeml_1.2_focalmechanism.xml"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 90, in test_sc3ml_versions
read_events(filename)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 334, in _locked_f
return func(*args, **kwargs)
File "<string>", line 2, in read_events
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/obspy/core/event/catalog.py", line 844, in read_events
catalog = _read(pathnames[0], format, **kwargs)
File "<string>", line 2, in _read
File "/usr/lib/python3/dist-packages/obspy/core/util/decorator.py", line 154, in uncompress_file
raise IOError(msg)
OSError: File not found '/usr/lib/python3/dist-packages/obspy/io/seiscomp/tests/data/version0.5'
Traceback (most recent call last):
File "/usr/lib/python3/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/python3/dist-packages/obspy/io/seiscomp/tests/test_event.py", line 55, in cmp_read_xslt_file
quakeml_doc = transform(etree.parse(filename