martyngigg commented on issue #2544:
URL: 
https://github.com/apache/iceberg-python/issues/2544#issuecomment-3450844130

   > does anyone have a way to reproduce this issue?
   
   @kevinjqliu Thanks for looking at this. I am able to reproduce this using 
the following steps:
   
   - Clone Lakekeeper: https://github.com/lakekeeper/lakekeeper.git
   - Spin up access control example: `cd examples/access-control-simple && 
docker compose up -d`
   - Download the test docker compose I've created from my gist: 
https://gist.github.com/martyngigg/290335a20efc4c851b1c3cc05990b4c6/raw/303d29316a1a1c9999b28da31d3b27c203fc946f/docker-compose-pyiceberg.yaml
   - Bootstrap the Lakekeeper catalog: `docker compose -f 
docker-compose-pyiceberg.yaml run lakekeeper-bootstrap`
   - Try to create a table in the catalog: `docker compose -f 
docker-compose-pyiceberg.yaml run pyiceberg-create-table`
   
   The final line fails with:
   
   ```python
     File 
"/root/.cache/uv/environments-v2/create-table-943b361a400dfadc/lib/python3.13/site-packages/pyiceberg/io/fsspec.py",
 line 118, in s3v4_rest_signer
       raise SignError(f"Failed to sign request {response.status_code}: 
{signer_body}") from e
   pyiceberg.exceptions.SignError: Failed to sign request 401: {'method': 
'PUT', 'region': 'local-01', 'uri': 
'http://minio:9000/examples/019a256a-5223-7fb2-a16a-dab9285c0f36/019a256e-22e5-7183-8899-32a1725bcfaa/metadata/snap-5075491922146417297-0-9de6aa90-64b6-4a90-a38d-c501a7defd64.avro',
 'headers': {'User-Agent': ['aiobotocore/2.25.0 md/Botocore#1.40.49 ua/2.1 
os/linux#6.6.96-0-virt md/arch#x86_64 lang/python#3.13.9 md/pyimpl#CPython 
m/N,Z,D,b cfg/retry-mode#legacy botocore/1.40.49'], 'Expect': ['100-continue'], 
'x-amz-checksum-crc32': ['1IsjCA=='], 'x-amz-sdk-checksum-algorithm': 
['CRC32']}}
   ```
   
   If you change line 80 of `docker-compose-pyiceberg.yaml` to 
`pyiceberg==0.9.1` then the write succeeds.


-- 
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]

Reply via email to