davlee1972 opened a new issue, #36223:
URL: https://github.com/apache/arrow/issues/36223
### Describe the bug, including details regarding any error messages,
version, and platform.
I can't get S3FileSystem to work on Windows.. The same code works fine on
Linux..
The AWS boto3 python library works fine on windows, but pyarrow is returning
the following error:
```
>>> s3.get_file_info("my_bucket/model-portfolios.json")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyarrow\_fs.pyx", line 571, in pyarrow._fs.FileSystem.get_file_info
File "pyarrow\error.pxi", line 144, in
pyarrow.lib.pyarrow_internal_check_status
File "pyarrow\error.pxi", line 115, in pyarrow.lib.check_status
OSError: When getting information for key 'model-portfolios.json' in bucket
'my_bucket': AWS Error NETWORK_CONNECTION during HeadObject operation:
Encountered network error when sending http request
```
On linux this runs just fine.
```
>>> s3.get_file_info("my_bucket/model-portfolios.json")
<FileInfo for 'my_bucket/model-portfolios.json': type=FileType.File,
size=138144>
```
boto3 on the same windows machine works fine.
```
>>> s3_config = Config(connect_timeout=30, retries={"max_attempts": 1})
>>> s3 = boto3.client(
... "s3",
... aws_access_key_id="....",
... aws_secret_access_key="....",
... endpoint_url="....",
... verify=True,
... config=s3_config,
... )
>>>
>>> resp_obj = s3.get_object(
... Bucket="my_bucket",
... Key="model-portfolios.json"
... )
>>>
>>> resp_obj
{'ResponseMetadata': {'RequestId': '1687381629753325', 'HostId': '12527701',
'HTTPStatusCode': 200, 'HTTPHeaders': {'date': 'Wed, 21 Jun 2023 21:07:09 GMT',
'connection': 'KEEP-ALIVE', 'server': 'StorageGRID/11.6.0.7',
'x-amz-request-id': '1687381629753325', 'x-amz-id-2': '12527701',
'content-length': '138144', 'x-ntap-sg-trace-id': '9b8092e31d357aa4', 'etag':
'"67356b777d74c255b2ec58b7d1e810f9"', 'x-amz-server-side-encryption': 'AES256',
'content-type': 'application/json', 'last-modified': 'Mon, 01 Jul 2019 21:12:53
GMT', 'accept-ranges': 'bytes'}, 'RetryAttempts': 0}, 'AcceptRanges': 'bytes',
'LastModified': datetime.datetime(2019, 7, 1, 21, 12, 53, tzinfo=tzutc()),
'ContentLength': 138144, 'ETag': '"67356b777d74c255b2ec58b7d1e810f9"',
'ContentType': 'application/json', 'ServerSideEncryption': 'AES256',
'Metadata': {}, 'Body': <botocore.response.StreamingBody object at
0x000001CE17DD0880>}
```
### Component(s)
Python
--
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]