kevinjqliu commented on PR #2125:
URL: https://github.com/apache/iceberg-python/pull/2125#issuecomment-2989066334
```
________________________ test_fsspec_new_input_file_gcs
________________________
fsspec_fileio_gcs = <pyiceberg.io.fsspec.FsspecFileIO object at
0x7f3934871ba0>
@pytest.mark.gcs
def test_fsspec_new_input_file_gcs(fsspec_fileio_gcs: FsspecFileIO) ->
None:
"""Test creating a new input file from a fsspec file-io"""
location = f"gs://warehouse/{uuid.uuid4()}.txt"
> input_file = fsspec_fileio_gcs.new_input(location=location)
tests/io/test_fsspec.py:484:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
pyiceberg/io/fsspec.py:354: in new_input
fs = self.get_fs(uri.scheme)
pyiceberg/io/fsspec.py:391: in _get_fs
return self._scheme_to_fs[scheme](self.properties)
pyiceberg/io/fsspec.py:177: in _gs
from gcsfs import GCSFileSystem
../../../.cache/pypoetry/virtualenvs/pyiceberg-bKWKvoA4-py3.10/lib/python3.10/site-packages/gcsfs/__init__.py:5:
in <module>
from .core import GCSFileSystem
../../../.cache/pypoetry/virtualenvs/pyiceberg-bKWKvoA4-py3.10/lib/python3.10/site-packages/gcsfs/core.py:29:
in <module>
from .credentials import GoogleCredentials
../../../.cache/pypoetry/virtualenvs/pyiceberg-bKWKvoA4-py3.10/lib/python3.10/site-packages/gcsfs/credentials.py:11:
in <module>
import google.auth.compute_engine
../../../.cache/pypoetry/virtualenvs/pyiceberg-bKWKvoA4-py3.10/lib/python3.10/site-packages/google/auth/compute_engine/__init__.py:17:
in <module>
from google.auth.compute_engine.credentials import Credentials
../../../.cache/pypoetry/virtualenvs/pyiceberg-bKWKvoA4-py3.10/lib/python3.10/site-packages/google/auth/compute_engine/credentials.py:29:
in <module>
from google.auth import iam
../../../.cache/pypoetry/virtualenvs/pyiceberg-bKWKvoA4-py3.10/lib/python3.10/site-packages/google/auth/iam.py:28:
in <module>
from google.auth import crypt
../../../.cache/pypoetry/virtualenvs/pyiceberg-bKWKvoA4-py3.10/lib/python3.10/site-packages/google/auth/crypt/__init__.py:39:
in <module>
from google.auth.crypt import rsa
../../../.cache/pypoetry/virtualenvs/pyiceberg-bKWKvoA4-py3.10/lib/python3.10/site-packages/google/auth/crypt/rsa.py:20:
in <module>
from google.auth.crypt import _cryptography_rsa
../../../.cache/pypoetry/virtualenvs/pyiceberg-bKWKvoA4-py3.10/lib/python3.10/site-packages/google/auth/crypt/_cryptography_rsa.py:28:
in <module>
import pkg_resources
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
import zipfile
import zipimport
from collections.abc import Iterable, Iterator, Mapping, MutableSequence
from pkgutil import get_importer
from typing import (
TYPE_CHECKING,
Any,
BinaryIO,
Callable,
Literal,
NamedTuple,
NoReturn,
Protocol,
TypeVar,
Union,
overload,
)
sys.path.extend(((vendor_path :=
os.path.join(os.path.dirname(os.path.dirname(__file__)), 'setuptools',
'_vendor')) not in sys.path) * [vendor_path]) # fmt: skip
# workaround for
#4[476](https://github.com/apache/iceberg-python/actions/runs/15764189458/job/44437233302?pr=2125#step:5:477)
sys.modules.pop('backports', None)
# capture these to bypass sandboxing
from os import open as os_open, utime # isort: skip
from os.path import isdir, split # isort: skip
try:
from os import mkdir, rename, unlink
WRITE_SUPPORT = True
except ImportError:
# no write support, probably under GAE
WRITE_SUPPORT = False
import packaging.markers
import packaging.requirements
import packaging.specifiers
import packaging.utils
import packaging.version
from jaraco.text import drop_comment, join_continuation, yield_lines
from platformdirs import user_cache_dir as _user_cache_dir
if TYPE_CHECKING:
from _typeshed import BytesPath, StrOrBytesPath, StrPath
from _typeshed.importlib import LoaderProtocol
from typing_extensions import Self, TypeAlias
> warnings.warn(
"pkg_resources is deprecated as an API. "
"See https://setuptools.pypa.io/en/latest/pkg_resources.html. "
"The pkg_resources package is slated for removal as early as "
"2025-11-30. Refrain from using this package or pin to "
"Setuptools<81.",
UserWarning,
stacklevel=2,
)
E UserWarning: pkg_resources is deprecated as an API. See
https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources
package is slated for removal as early as 2025-11-30. Refrain from using this
package or pin to Setuptools<81.
../../../.cache/pypoetry/virtualenvs/pyiceberg-bKWKvoA4-py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py:98:
UserWarning
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]