question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"ValueError: missing object_codec for object array"

See original GitHub issue

Seeing the same VLEN string issue noted in https://github.com/fsspec/kerchunk/issues/102 when attempting to use SingleHdf5ToZarr with a single GEDI HDF5 file.

See this notebook https://nbviewer.org/gist/sharkinsspatial/b5938e2e3e0c96a1f1cef768d1b4da7e

I attempted testing against https://github.com/fsspec/kerchunk/pull/40 but did not see the reported segfault but the same originally reported “ValueError: missing object_codec for object array” exception.

predict_stratum appears to be the offending variable in this case as tests with a new intermediate HDF5 for a selected BEAM group with this variable dropped work as expected.

For more details on the GEDI data structure see https://github.com/ornldaac/gedi_tutorials/blob/main/3_gedi_l4a_exploring_data.ipynb

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
sharkinsspatialcommented, May 27, 2022

@martindurant I would suggest that in the short term we include a parameter which allows users to select inlining or skipping for compound dtypes and VLEN strings. Once #40 is completed we can change the underlying storage mechanism without altering the use of the option parameter.

1reaction
martindurantcommented, May 26, 2022

@joshmoore , this is not actually related to VLEN: we have a complex dtype here that includes some object type fields, which are encoded using HDF5-specific pointers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to save object arrays · Issue #691 - GitHub
Saving object arrays (as defined in the tutorial) results in the "ValueError: missing object_codec for object array" error.
Read more >
Object arrays - Jupyter Notebooks Gallery
Creation of an object array requires providing new object_codec argument: ... If no object_codec is provided, a ValueError is raised:.
Read more >
Source code for zarr.storage
"""This module contains storage classes for use with Zarr arrays and groups. ... no object codec raise ValueError('missing object_codec for object array') ...
Read more >
How to cut down/delete a zarr array - Stack Overflow
I have a simple array (say length 1000) of objects in zarr. ... then I get the error ValueError: missing object_codec for object...
Read more >
ObjectCodec (Jackson-core 2.8.0 API) - FasterXML
Method for construct root level Array nodes for Tree Model instances. abstract TreeNode · createObjectNode(). Method for construct root level Object nodes for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found