Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOError "Bad Request: invalid linkname, '/' not allowed" for create_dataset #9

Closed
ahalota opened this issue Jul 14, 2016 · 4 comments
Closed

Comments

@ahalota
Copy link

ahalota commented Jul 14, 2016

My input dataset does not yet have a group called 2015. I am not able to create a dataset inside of it. In h5py, I was able to do so without first creating the dataset.

fileOut.create_dataset('2015/newdset',data=newdata,compression='gzip')

  File "...\h5pyd\_hl\group.py", line 148, in create_dataset
    self[name] = dset
  File "...\h5pyd\_hl\group.py", line 420, in __setitem__
    self.PUT(req, body=body)
  File "...\h5pyd\_hl\base.py", line 418, in PUT
    raise IOError(rsp.reason)
IOError: Bad Request: invalid linkname, '/' not allowed
@ahalota
Copy link
Author

ahalota commented Jul 14, 2016

Hm. I checked again after creating the dataset individually first, and am still experiencing this issue. The issue was NOT the nonexistent group, but something else.
Below the exact name I used:

c_fore = fileOut.create_dataset("2015/C_FORE",data=FORE_emissions, compression="gzip")

@ahalota ahalota changed the title IOError "Bad Request: invalid linkname, '/' not allowed" for create_dataset when parent group doesn't exists yet. IOError "Bad Request: invalid linkname, '/' not allowed" for create_dataset Jul 14, 2016
@jreadey
Copy link
Member

jreadey commented Jul 14, 2016

Ok, that's a bug. As a work-around use the handler of the group you created for the create_dataset call. i.e. 2015_grp.create_dataset(...)

@ahalota
Copy link
Author

ahalota commented Jul 14, 2016

Works with the workaround.

jreadey added a commit that referenced this issue Aug 25, 2016
@jreadey
Copy link
Member

jreadey commented Aug 25, 2016

This should be fixed with the checkin above.

@jreadey jreadey closed this as completed Aug 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants