Closed hagenw closed 1 year ago
Hello,
Is there any update regarding this issue ? @allburov do you have any highlights ?
I'm having a similar issue with ArtifactoryPath.glob
which works well on 3.7 to 3.10. But on Python3.11 also raising a FileNotFoundError
.
File /usr/lib/python3.11/pathlib.py:953, in Path.glob(self, pattern)
951 pattern_parts.append('')
952 selector = _make_selector(tuple(pattern_parts), self._flavour)
--> 953 for p in selector.select_from(self):
954 yield p
File /usr/lib/python3.11/pathlib.py:408, in _RecursiveWildcardSelector._select_from(self, parent_path, is_dir, exists, scandir)
406 successor_select = self.successor._select_from
407 for starting_point in self._iterate_directories(parent_path, is_dir, scandir):
--> 408 for p in successor_select(starting_point, is_dir, exists, scandir):
409 if p not in yielded:
410 yield p
File /usr/lib/python3.11/pathlib.py:355, in _WildcardSelector._select_from(self, parent_path, is_dir, exists, scandir)
353 def _select_from(self, parent_path, is_dir, exists, scandir):
354 try:
--> 355 with scandir(parent_path) as scandir_it:
356 entries = list(scandir_it)
357 for entry in entries:
File /usr/lib/python3.11/pathlib.py:938, in Path._scandir(self)
934 def _scandir(self):
935 # bpo-24132: a future version of pathlib will support subclassing of
936 # pathlib.Path to customize how the filesystem is accessed. This
937 # includes scandir(), which is used to implement glob().
--> 938 return os.scandir(self)
Thanks for your help and your time !
The glob method is tracked at https://github.com/devopshq/artifactory/issues/396, but it might indeed be that both issues have the same underlying cause.
Oh indeed you are right, I've missed this issue sorry for the duplicate.
This is still an issue in release 0.9.0. PR #376 says it added support, but this was incomplete. PR #424 looks to be the actual fix, hopefully this can be released soon?
@RichardTea thank you for noticing it, published new version with the fix! https://github.com/devopshq/artifactory/releases/tag/0.9.1
Thank you very much for implementing a fix. I can confirm that the issue is solved with release 0.9.1.
I start with an empty repository called
unittests-public
under https://audeering.jfrog.io/artifactory when I execute the following code it works under Python 3.8, 3.9, 3.10:under Python 3.11 I get instead