Closed cspotcode closed 2 years ago
Thanks for reporting @cspotcode . We generally have dropped support for Python 2.x in LocalStack a while ago, but I think the awslocal
CLI is a special case where we can continue trying to preserve backwards-compatibility. 👍 We'll release a patched version with a fix shortly.. (will ping you here once done)
Hi again @cspotcode . We have now pushed a version 0.20
which should (hopefully) fix this issue. Please let us know if the problem persists.. Thanks!
Thanks! I likely will not be able to test the new version, since pinning to 0.18 got me unblocked and then I had to merge and close that ticket. I realize that's not a great answer, but it is what it is.
My team uses awscli-local in some automated tests, and version 0.19 failed to install where 0.18 succeeded. The error we get is:
I'll admit I'm not a python expert, but I believe I've tracked it down to this change in
setup.py
:https://github.com/localstack/awscli-local/compare/254273bce710eb69f50dcefe09e168f3d61bda60..master#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7R5
It looks like
encoding
is not accepted byopen()
on python 2.7: https://docs.python.org/2/library/functions.html#openWe have worked around the issue by pinning to version 0.18, but I wonder if our use-case is something that you are willing and able to support.