Coder Social home page Coder Social logo

Bug: When running sam deploy in github ci/cd, got error Unable to export., TypeError: sequence item 0: expected str instance, bytes found about aws-sam-cli HOT 8 CLOSED

jf001z4084 avatar jf001z4084 commented on September 26, 2024 6
Bug: When running sam deploy in github ci/cd, got error Unable to export., TypeError: sequence item 0: expected str instance, bytes found

from aws-sam-cli.

Comments (8)

markokimpel avatar markokimpel commented on September 26, 2024 5

The first party installer does not have said problem.

My environment:

  • Ubuntu
  • The homebrew installer, version 1.108.0, showed the error @jf001z4084 reported
  • The AWS provided installer, also version 1.108.0, does not show the error

from aws-sam-cli.

gihanw avatar gihanw commented on September 26, 2024 1

The first party installer does not have said problem.

My environment:

* Ubuntu

* The homebrew installer, version 1.108.0, showed the error @jf001z4084 reported

* The AWS provided installer, also version 1.108.0, does not show the error

This saved my day

from aws-sam-cli.

jf001z4084 avatar jf001z4084 commented on September 26, 2024 1

Thank you very much, the issue is solved, which is caused by Homebrew, after we use the native installer, the issue is gone.

from aws-sam-cli.

acdha avatar acdha commented on September 26, 2024

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.

from aws-sam-cli.

jf001z avatar jf001z commented on September 26, 2024

thanks a lot checking the document now.

from aws-sam-cli.

mndeveci avatar mndeveci commented on September 26, 2024

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

from aws-sam-cli.

christoph-zero avatar christoph-zero commented on September 26, 2024

Will this be fixed in the Homebrew managed package?

from aws-sam-cli.

github-actions avatar github-actions commented on September 26, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-sam-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.