Skip to content

load_hdf5() filename issues #458

Open

Description

@kwmsmith

If Context.load_hdf5() is called with a relative path, it may fail with an:

IPython.parallel.error.CompositeError: one or more exceptions from call to method: func_wrapper
[0:apply]: IOError: Unable to open file (Mpi_err_no_such_file: no such file or directory)
[1:apply]: IOError: Unable to open file (Mpi_err_no_such_file: no such file or directory)
[2:apply]: IOError: Unable to open file (Mpi_err_no_such_file: no such file or directory)
[3:apply]: IOError: Unable to open file (Mpi_err_no_such_file: no such file or directory)

No error results if an absolute path is passed in instead.

I'd like to see Context.load_hdf5 detect relative paths client-side and resolve into absolute paths before passing to engines, which should resolve this issue.

Activity

  1. added this to the milestone on Jun 23, 2014
  2. markkness commented on Jun 23, 2014

    @markkness
    Contributor

    What if Context.load_hdf5 always called os.path.abspath() on its filename, to ensure an absolute path? Then it wouldnt have to explicitly detect anything.

  3. bgrant commented on Jul 9, 2014

    @bgrant
    Contributor

    One problem here: We've agreed that for these functions, the client might not have access to the same filesystem as the engines.

    The choice I originally made here was to pass the filename directly to h5py.File and let h5py handle filenames however it normally handles them. I can see how this is confusing though.

  4. modified the milestones: 0.7, 0.6 on Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions