rudolfix commented on issue #2008:
URL: 
https://github.com/apache/iceberg-python/issues/2008#issuecomment-2889147119

   > [@rudolfix](https://github.com/rudolfix) what's the implication of how it 
currently works? because I am seeing some weird iam errors when writing data in 
sometimes w/lambda, not sure if related.
   
   I can't easily configure S3 Table access credentials - I have to provide 
default AWS profile in `.aws` or AWS env variables. If that is not done then I 
get this:
   ```sh
     File 
"/home/rudolfix/src/dlt-plus/playground/demo_aws_catalogs/error_catalog_credentials.py",
 line 24, in <module>
       raise e
     File 
"/home/rudolfix/src/dlt-plus/playground/demo_aws_catalogs/error_catalog_credentials.py",
 line 22, in <module>
       rest_catalog = RestCatalog(name="s3tables", uri=uri, **properties)
     File 
"/home/rudolfix/src/iceberg-python/pyiceberg/catalog/rest/__init__.py", line 
265, in __init__
       self._fetch_config()
     File 
"/home/rudolfix/src/iceberg-python/pyiceberg/catalog/rest/__init__.py", line 
382, in _fetch_config
       response = session.get(self.url(Endpoints.get_config, prefixed=False), 
params=params)
     File 
"/home/rudolfix/src/dlt-plus/.venv/lib/python3.10/site-packages/requests/sessions.py",
 line 602, in get
       return self.request("GET", url, **kwargs)
     File 
"/home/rudolfix/src/dlt-plus/.venv/lib/python3.10/site-packages/requests/sessions.py",
 line 589, in request
       resp = self.send(prep, **send_kwargs)
     File 
"/home/rudolfix/src/dlt-plus/.venv/lib/python3.10/site-packages/requests/sessions.py",
 line 703, in send
       r = adapter.send(request, **kwargs)
     File 
"/home/rudolfix/src/dlt-plus/.venv/lib/python3.10/site-packages/requests/adapters.py",
 line 641, in send
       self.add_headers(
     File 
"/home/rudolfix/src/iceberg-python/pyiceberg/catalog/rest/__init__.py", line 
484, in add_headers
       credentials = boto_session.get_credentials().get_frozen_credentials()
   AttributeError: 'NoneType' object has no attribute 'get_frozen_credentials'
   ```
   we use `pyiceberg` from our library (`dlt`) where many configurations should 
coexist as the same time and such "hardcoded" session makes that harder
   


-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to