You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happens is that it is giving a PosixPath object to json.loads. I'm using Python 3.11, which seems to be supported.
Also, unless there some backwards compatibility issue, I was taught (and I stand with this premise) to never use exceptions as flow control. Use if statements.
While this works for my case, this is just a workaround and still not suitable for a PR. This will still fail due to json.loads expecting a string and not a PosixPath object. So then I tried to run this to test:
Though I just patched so it works in these two cases and I have no clue what is the overall idea behind the read_json_object function and its use-cases.
The text was updated successfully, but these errors were encountered:
I'm trying to figure out how to use datalad catalog + metalad + extractors.
I was trying the example from the website, but I had an error when running this:
The output is as follows:
I followed it to:
datalad-metalad/datalad_metalad/utils.py
Lines 82 to 95 in 1219998
What happens is that it is giving a PosixPath object to
json.loads
. I'm using Python 3.11, which seems to be supported.Also, unless there some backwards compatibility issue, I was taught (and I stand with this premise) to never use exceptions as flow control. Use if statements.
This is how I fixed it locally:
While this works for my case, this is just a workaround and still not suitable for a PR. This will still fail due to json.loads expecting a string and not a PosixPath object. So then I tried to run this to test:
And I've got, as expected:
So my final fix (which I think will help you):
Though I just patched so it works in these two cases and I have no clue what is the overall idea behind the
read_json_object
function and its use-cases.The text was updated successfully, but these errors were encountered: