datalad / datalad-fuse

DataLad extension to provide FUSE file system access
Other
1 stars 4 forks source link

Inform also under what dataset path we cannot find a url for a key #97

Closed yarikoptic closed 1 year ago

yarikoptic commented 1 year ago
because otherwise it is hard to impossible to figure out when working on
a hierarchy of datasets, like now the case in dandisets-healthcheck where we
observe following errors:

        Traceback (most recent call last):
          File "/home/dandi/cronlib/dandisets-healthstatus/venv/lib/python3.8/site-packages/fuse.py", line 734, in _wrapper
                return func(*args, **kwargs) or 0
          File "/home/dandi/cronlib/dandisets-healthstatus/venv/lib/python3.8/site-packages/fuse.py", line 834, in open
                fi.fh = self.operations('open', path.decode(self.encoding),
          File "/home/dandi/cronlib/dandisets-healthstatus/venv/lib/python3.8/site-packages/datalad_fuse/fuse_.py", line 75, in __call__
                return super(DataLadFUSE, self).__call__(op, self.root + path, *args)
          File "/home/dandi/cronlib/dandisets-healthstatus/venv/lib/python3.8/site-packages/fuse.py", line 1076, in __call__
                return getattr(self, op)(*args)
          File "/home/dandi/cronlib/dandisets-healthstatus/venv/lib/python3.8/site-packages/datalad_fuse/fuse_.py", line 214, in open
                fsspec_file = self._adapter.open(path)
          File "/home/dandi/cronlib/dandisets-healthstatus/venv/lib/python3.8/site-packages/datalad_fuse/fsspec.py", line 241, in open
                return dsap.open(relpath, mode=mode, encoding=encoding, errors=errors)
          File "/home/dandi/cronlib/dandisets-healthstatus/venv/lib/python3.8/site-packages/datalad_fuse/fsspec.py", line 181, in open
                raise IOError(f"Could not find a usable URL for {relpath}")
        OSError: Could not find a usable URL for .git/annex/objects/94/qF/SHA256E-s18769644--a2bb2d0d0c5f094aef3eaa68db4087e2944c0372a015180039d98c94573216b5.nwb/SHA256E-s18769644--a2bb2d0d0c5f094aef3eaa68db4087e2944c0372a015180039d98c94573216b5.nwb

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/home/dandi/cronlib/dandisets-healthstatus/venv/lib/python3.8/site-packages/fuse.py", line 737, in _wrapper
                if e.errno > 0:
        TypeError: '>' not supported between instances of 'NoneType' and 'int'

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "_ctypes/callbacks.c", line 237, in 'calling callback function'
          File "/home/dandi/cronlib/dandisets-healthstatus/venv/lib/python3.8/site-packages/fuse.py", line 756, in _wrapper
                self.__critical_exception = e
        NameError: name 'self' is not defined
        fuse: bad error value: -659194720
codecov[bot] commented 1 year ago

Codecov Report

Base: 90.93% // Head: 90.93% // No change to project coverage :thumbsup:

Coverage data is based on head (857059d) compared to base (206ae58). Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #97 +/- ## ======================================= Coverage 90.93% 90.93% ======================================= Files 10 10 Lines 596 596 ======================================= Hits 542 542 Misses 54 54 ``` | [Impacted Files](https://codecov.io/gh/datalad/datalad-fuse/pull/97?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad) | Coverage Δ | | |---|---|---| | [datalad\_fuse/fsspec.py](https://codecov.io/gh/datalad/datalad-fuse/pull/97?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad#diff-ZGF0YWxhZF9mdXNlL2Zzc3BlYy5weQ==) | `83.62% <0.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=datalad)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.