Source: fsspec
Version: 2024.9.0-1
Severity: serious
User: debian-pyt...@lists.debian.org
Usertags: python3.13

Hi Maintainer

The autopkgtests of this package fail with Python 3.13 [1].  I've
copied what I hope is the relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/f/fsspec/testing/amd64/


81s =================================== FAILURES
===================================
81s ________________ test_find_returns_expected_result_detail_false
________________
81s
81s zip_file = 
PosixPath('/tmp/pytest-of-root/pytest-1/test_find_returns_expected_res0/test.zip')
81s
81s def test_find_returns_expected_result_detail_false(zip_file):
81s > zip_file_system = ZipFileSystem(zip_file)
81s
81s implementations_tests/test_zip.py:271:
81s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
81s /usr/lib/python3/dist-packages/fsspec/spec.py:81: in __call__
81s obj = super().__call__(*args, **kwargs)
81s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
81s
81s self = <Archive-like object ZipFileSystem at 140057631557584>
81s fo = 
PosixPath('/tmp/pytest-of-root/pytest-1/test_find_returns_expected_res0/test.zip')
81s mode = 'r', target_protocol = None, target_options = None, compression = 0
81s allowZip64 = True, compresslevel = None, kwargs = {}
81s
81s def __init__(
81s self,
81s fo="",
81s mode="r",
81s target_protocol=None,
81s target_options=None,
81s compression=zipfile.ZIP_STORED,
81s allowZip64=True,
81s compresslevel=None,
81s **kwargs,
81s ):
81s """
81s Parameters
81s ----------
81s fo: str or file-like
81s Contains ZIP, and must exist. If a str, will fetch file using
81s :meth:`~fsspec.open_files`, which must return one file exactly.
81s mode: str
81s Accept: "r", "w", "a"
81s target_protocol: str (optional)
81s If ``fo`` is a string, this value can be used to override the
81s FS protocol inferred from a URL
81s target_options: dict (optional)
81s Kwargs passed when instantiating the target FS, if ``fo`` is
81s a string.
81s compression, allowZip64, compresslevel: passed to ZipFile
81s Only relevant when creating a ZIP
81s """
81s super().__init__(self, **kwargs)
81s if mode not in set("rwa"):
81s raise ValueError(f"mode '{mode}' no understood")
81s self.mode = mode
81s if isinstance(fo, str):
81s if mode == "a":
81s m = "r+b"
81s else:
81s m = mode + "b"
81s fo = fsspec.open(
81s fo, mode=m, protocol=target_protocol, **(target_options or {})
81s )
81s self.force_zip_64 = allowZip64
81s self.of = fo
81s > self.fo = fo.__enter__() # the whole instance is a context
81s E AttributeError: 'PosixPath' object has no attribute '__enter__'.
Did you mean: '__bytes__'?
81s
81s /usr/lib/python3/dist-packages/fsspec/implementations/zip.py:61:
AttributeError

Reply via email to