okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.
MIT License
755 stars 94 forks source link

Fix attempted relative import in non-package #73

Closed borlafu closed 4 years ago

borlafu commented 4 years ago

The Dockerfile is not launching the script as a package, so relative imports added in https://github.com/okigan/awscurl/commit/09d80035ac35383766a382db3718361cfa8536c7 are failing:

Traceback (most recent call last):
  File "/awscurl/awscurl.py", line 19, in <module>
    from .utils import sha256_hash, sha256_hash_for_binary_data, sign
ValueError: Attempted relative import in non-package
okigan commented 4 years ago

Thanks