Traceback (most recent call last):


 "calibre_plugins.dedrm.kindlekey", line 1540, in getDBfrom


cleartext = UnprotectHeaderData(encryptedValue)


 "calibre_plugins.dedrm.kindlekey", line 1408, in UnprotectHeaderData

crp = LibCrypto()
TypeError: 'NoneType' object is not callable

Traceback (most recent call last):


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/app.py", line 2309, in __call__

return self.wsgi_app(environ, start_response)


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/app.py", line 2295, in wsgi_app

response = self.handle_exception(e)


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/app.py", line 1741, in handle_exception

reraise(exc_type, exc_value, tb)


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise

raise value


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app

response = self.full_dispatch_request()


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/app.py", line 1815, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/app.py", line 1718, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise

raise value


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request

rv = self.dispatch_request()


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/Users/adam/test/app/app.py", line 25, in files

return render_template('files.html', my_bucket=my_bucket, files=summaries)


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/templating.py", line 135, in render_template

context, ctx.app)


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask/templating.py", line 117, in _render

rv = template.render(context)


 "/Users/adam/test/venv/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render

return original_render(self, *args, **kwargs)


 "/Users/adam/test/venv/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render

return self.environment.handle_exception(exc_info, True)


 "/Users/adam/test/venv/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception

reraise(exc_type, exc_value, tb)


 "/Users/adam/test/venv/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise

raise value.with_traceback(tb)


 "/Users/adam/test/app/templates/files.html", line 1, in top-level template code

{% extends "layout.html" %}


 "/Users/adam/test/app/templates/layout.html", line 1, in top-level template code

{% extends "bootstrap/base.html" %}


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask_bootstrap/templates/bootstrap/base.html", line 1, in top-level template code

{% block doc -%}


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask_bootstrap/templates/bootstrap/base.html", line 4, in block "doc"

{%- block html %}


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask_bootstrap/templates/bootstrap/base.html", line 20, in block "html"

{% block body -%}


 "/Users/adam/test/venv/lib/python3.7/site-packages/flask_bootstrap/templates/bootstrap/base.html", line 23, in block "body"

{% block content -%}


 "/Users/adam/test/app/templates/files.html", line 24, in block "content"

<p>Created: {{my_bucket.creation_date | datetimeformat }}</p>


 "/Users/adam/test/venv/lib/python3.7/site-packages/jinja2/environment.py", line 430, in getattr

return getattr(obj, attribute)


 "/Users/adam/test/venv/lib/python3.7/site-packages/boto3/resources/factory.py", line 339, in property_loader

self.load()


 "/Users/adam/test/venv/lib/python3.7/site-packages/boto3/s3/inject.py", line 72, in bucket_load

response = self.meta.client.list_buckets()


 "/Users/adam/Library/Python/3.7/lib/python/site-packages/botocore/client.py", line 314, in _api_call

return self._make_api_call(operation_name, kwargs)


 "/Users/adam/Library/Python/3.7/lib/python/site-packages/botocore/client.py", line 612, in _make_api_call

raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AuthorizationHeaderMalformed) when calling the ListBuckets operation: The authorization header is malformed; the Credential is mal-formed; expecting "<YOUR-AKID>/YYYYMMDD/REGION/SERVICE/aws4_request".