Package: python3-boto3
Version: 1.4.2-1
Severity: important
Tags: stretch
Dear Maintainer,
Calling client.upload_file with the python3-boto3 version in Stretch crashes.
In sid it works fine.
:
Traceback (most recent call last):
File "./upload.py", line 23, in <module>
tofile) # Name for remote file
File "/usr/lib/python3/dist-packages/boto3/s3/inject.py", line 105, in
upload_file
extra_args=ExtraArgs, callback=Callback)
File "/usr/lib/python3/dist-packages/boto3/s3/transfer.py", line 245, in
upload_file
future.result()
File "/usr/lib/python3/dist-packages/s3transfer/futures.py", line 71, in
result
return self._coordinator.result()
File "/usr/lib/python3/dist-packages/s3transfer/futures.py", line 231, in
result
raise self._exception
File "/usr/lib/python3/dist-packages/s3transfer/tasks.py", line 126, in
__call__
return self._execute_main(kwargs)
File "/usr/lib/python3/dist-packages/s3transfer/tasks.py", line 150, in
_execute_main
return_value = self._main(**kwargs)
File "/usr/lib/python3/dist-packages/s3transfer/upload.py", line 679, in
_main
client.put_object(Bucket=bucket, Key=key, Body=body, **extra_args)
File "/usr/lib/python3/dist-packages/botocore/client.py", line 251, in
_api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/lib/python3/dist-packages/botocore/client.py", line 526, in
_make_api_call
operation_model, request_dict)
File "/usr/lib/python3/dist-packages/botocore/endpoint.py", line 141, in
make_request
return self._send_request(request_dict, operation_model)
File "/usr/lib/python3/dist-packages/botocore/endpoint.py", line 170, in
_send_request
success_response, exception):
File "/usr/lib/python3/dist-packages/botocore/endpoint.py", line 249, in
_needs_retry
caught_exception=caught_exception, request_dict=request_dict)
File "/usr/lib/python3/dist-packages/botocore/hooks.py", line 227, in emit
return self._emit(event_name, kwargs)
File "/usr/lib/python3/dist-packages/botocore/hooks.py", line 210, in _emit
response = handler(**kwargs)
File "/usr/lib/python3/dist-packages/botocore/retryhandler.py", line 183,
in __call__
if self._checker(attempts, response, caught_exception):
File "/usr/lib/python3/dist-packages/botocore/retryhandler.py", line 251,
in __call__
caught_exception)
File "/usr/lib/python3/dist-packages/botocore/retryhandler.py", line 269,
in _should_retry
return self._checker(attempt_number, response, caught_exception)
File "/usr/lib/python3/dist-packages/botocore/retryhandler.py", line 317,
in __call__
caught_exception)
File "/usr/lib/python3/dist-packages/botocore/retryhandler.py", line 223,
in __call__
attempt_number, caught_exception)
File "/usr/lib/python3/dist-packages/botocore/retryhandler.py", line 359,
in _check_caught_exception
raise caught_exception
File "/usr/lib/python3/dist-packages/botocore/endpoint.py", line 204, in
_get_response
proxies=self.proxies, timeout=self.timeout)
File "/home/ruben/.local/lib/python3.5/site-packages/requests/sessions.py",
line 618, in send
r = adapter.send(request, **kwargs)
File "/home/ruben/.local/lib/python3.5/site-packages/requests/adapters.py",
line 440, in send
timeout=timeout
File
"/home/ruben/.local/lib/python3.5/site-packages/urllib3/connectionpool.py",
line 601, in urlopen
chunked=chunked)
File
"/home/ruben/.local/lib/python3.5/site-packages/urllib3/connectionpool.py",
line 346, in _make_request
self._validate_conn(conn)
File
"/home/ruben/.local/lib/python3.5/site-packages/urllib3/connectionpool.py",
line 850, in _validate_conn
conn.connect()
File
"/home/ruben/.local/lib/python3.5/site-packages/urllib3/connection.py", line
311, in connect
if self.ssl_context is None:
AttributeError: 'AWSHTTPSConnection' object has no attribute 'ssl_context'
Probably related to #854382
Best regards
Ruben
-- System Information:
Debian Release: 9.5
APT prefers stable
APT policy: (1000, 'stable'), (500, 'stable-updates'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-8-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python3-boto3 depends on:
ii python3 3.5.3-1
ii python3-botocore 1.4.70-1
ii python3-jmespath 0.9.0-2
ii python3-requests 2.12.4-1
ii python3-s3transfer 0.1.9-1
ii python3-six 1.10.0-3
python3-boto3 recommends no packages.
python3-boto3 suggests no packages.
-- debconf-show failed