TypeError: Cannot recognize type <class 'NoneType'>
error when calling Datachain.from_json()
for a file produced by from_storage().to_json()
chain
#724
Labels
Description
Background
I'm following this tutorial here to produce the JSON representation of a dataset. While I'm able to generate the JSON file, I'm unable to consume it back as a dataset using
from_json
methodSetup
from_storage
method and export the dataset usingto_json
.from_json
, where the error is triggeredExpected Behavior
I expect that the the json file is correctly deserialized into a DataChain instance and I can use the chain functions on it, e.g.
export_files()
orfilter()
Error
Here's the JSON output (path is partially redacted) :
Potential Causes
The
location:null
value in the JSON might be causing the schema inference to fail, but I'm not familiar with the codebase, so I cannot confirm.Environment and Versions
python==3.10.15
datachain==0.7.11
OS : Ubuntu 24.04 LTS
Version Info
The text was updated successfully, but these errors were encountered: