Skip to content

Error messages

apeck12 edited this page Feb 11, 2023 · 6 revisions

Below is a list of various error messages that have been encountered and their suggested fixes.

  • yaml.scanner.ScannerError: mapping values are not allowed here

    Check formatting of the yaml file, ensuring that there is a space after the colon in each entry.

  • SystemError: Negative size passed to PyBytes_FromStringAndSize

    Memory error when trying to gather results from many ranks using mpi4py. The easiest fix is to reduce the number of total ranks.

  • 'RuntimeError: IData::Exception: dataset directory is missing: /cds/data/psdm//mfx/mfxx1005021/xtc [in function files at IData/src/Dataset.cpp:377]'

    The version of psana python may be outdated.

  • shutil.SameFileError: '../ap_mfxc00120_203.yaml' and '/cds/data/psdm/mfx/mfxc00120/scratch/apeck/ap_mfxc00120_203.yaml' are the same file

    Make sure that the yaml is not in the config.setup.root_dir.

  • Pattern cannot be NULL\n Invalid peak path (null)\n Failed to get peaks from HDF5 file.

    Make sure that the CrystFEL geom file has the correct header. (See modify_crystfel_header in btx/misc/metrology.py.)