Skip to content

Error with Rust mzml library #213

@ypriverol

Description

@ypriverol

@RalfG I found this error with the rust library:

pyo3_runtime.PanicException: Expected a dateTime value conforming to ISO 8601 standard: ParseError(TooShort)
thread '<unnamed>' panicked at /opt/conda/conda-bld/ms2rescore-rs_1737374122806/_build_env/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mzdata-0.39.0/src/io/mzml/reading_shared.rs:886:74:
Expected a dateTime value conforming to ISO 8601 standard: ParseError(TooShort)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Process SpawnPoolWorker-4:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.11/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.11/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/ms2pip/core.py", line 911, in _process_spectra
    for spectrum in read_spectrum_file(spec_file):
  File "/usr/local/lib/python3.11/site-packages/ms2pip/spectrum_input.py", line 33, in read_spectrum_file
    spectra = get_ms2_spectra(str(spectrum_file))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyo3_runtime.PanicException: Expected a dateTime value conforming to ISO 8601 standard: ParseError(TooShort)
thread '<unnamed>' panicked at /opt/conda/conda-bld/ms2rescore-rs_1737374122806/_build_env/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mzdata-0.39.0/src/io/mzml/reading_shared.rs:886:74:
Expected a dateTime value conforming to ISO 8601 standard: ParseError(TooShort)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Process SpawnPoolWorker-3:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.11/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.11/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/ms2pip/core.py", line 911, in _process_spectra
    for spectrum in read_spectrum_file(spec_file):
  File "/usr/local/lib/python3.11/site-packages/ms2pip/spectrum_input.py", line 33, in read_spectrum_file
    spectra = get_ms2_spectra(str(spectrum_file))

mzml: https://ftp.pride.ebi.ac.uk/pub/databases/pride/resources/proteomes/quantms-benchmark/01321_E03_P013560_B00_N21_R1.mzML

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions