Closed mlemainque closed 10 months ago
I think the code to blame is here in
petl
as it simply cannot deal with a non-emptyfsspec.registry
which is supposed to contain classes and not dicts.
It's 2018 code. Probably fsspec evolved since that.
I guess one possible fix would be to delete the L103 or to skip the L109 when the
spec
is not adict
but aclass
.
A check for dict may be enough.
Wdyt? I can submit a PR if you wish
Yes, of course.
Fixed in #647.
Summary
Importing
petl
fails whenever a third-party filesystem has been previously declared intofsspec.registry
.Steps to reproduce
...using for example the library
datasets
which is known to (rightfully) declare some custom file systems (here):This script will raise the following error:
Root cause analysis
I think the code to blame is here in
petl
as it simply cannot deal with a non-emptyfsspec.registry
which is supposed to contain classes and not dicts. I guess one possible fix would be to delete the L103 or to skip the L109 when thespec
is not adict
but aclass
.Wdyt? I can submit a PR if you wish
Thanks for your help 🙏🏻