-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: When running sam deploy in github ci/cd, got error Unable to export., TypeError: sequence item 0: expected str instance, bytes found #6629
Comments
The same thing happens with the Mac Homebrew package, as well. It looks like they recently orphaned that install mechanism as the instructions now say you have to use the .pkg files provided on https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html. |
thanks a lot checking the document now. |
We recommend using our native installers which won't have any dependency on the system python version and libraries. https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html Can you update your installation with the ones that is provided in the documentation to see if it is going to resolve your problem? Thanks |
The first party installer does not have said problem. My environment:
|
This saved my day |
Will this be fixed in the Homebrew managed package? |
Thank you very much, the issue is solved, which is caused by Homebrew, after we use the native installer, the issue is gone. |
|
Description:
Our github CI/CD pipeline running
sam deploy
command in ubuntu environment to deploy our lambda function, we found the it failed and report error: Unable to export.Observed result:
Expected result:
We expect the lambda function could be deployed successfully.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.108Unable to export
File "/home/linuxbrew/.linuxbrew/opt/cfn-lint/libexec/lib/python3.12/site-packages/botocore/httpsession.py", line 464, in send
urllib_response = conn.urlopen(
^^^^^^^^^^^^^
File "/home/linuxbrew/.linuxbrew/opt/python-urllib3/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/home/linuxbrew/.linuxbrew/opt/python-urllib3/lib/python3.12/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/home/linuxbrew/.linuxbrew/opt/cfn-lint/libexec/lib/python3.12/site-packages/botocore/awsrequest.py", line 91, in request
if headers.get('Expect', b'') == b'100-continue':
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 807, in get
File "/home/linuxbrew/.linuxbrew/opt/python-urllib3/lib/python3.12/site-packages/urllib3/_collections.py", line 261, in getitem
return ", ".join(val[1:])
^^^^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, bytes found
The text was updated successfully, but these errors were encountered: