Coder Social home page Coder Social logo

Comments (3)

rmartine-ias avatar rmartine-ias commented on June 5, 2024

This is because of yaml/pyyaml#601 and can be resolved with:

pip install wheel
pip install dependencies/awscli-1.27.162-py3-none-any.whl --no-build-isolation

A newer awscli might fix it as well.

from amazon-bedrock-workshop.

athewsey avatar athewsey commented on June 5, 2024

Same error observed in SageMaker Studio Data Science 3.0 kernel (Python 3.10.6), blocking #12

In that environment, upgrading wheel (default is already 0.40.0, newest available is 0.41.0) does not solve the issue - maybe there's a downgrade that might? Either way it's a bit of a fundamental package that I prefer to avoid messing with when possible 🫤

As far as i can tell, nothing in the workshop actually uses the preview AWS CLI today: The only CLI commands I see are aws s3 cp ...

So another option (aside from waiting for new CLI) could be to just remove the custom awscli install from the workshop notebooks altogether? Pros: Python 3.10+ environments including DataSci3.0 should work; Cons: If anybody did want to explore/demonstrate the Bedrock CLI (or expand the workshop examples to show it in action), they couldn't.

from amazon-bedrock-workshop.

athewsey avatar athewsey commented on June 5, 2024

@rmartine-ias In Studio I'm seeing that instead of installing wheel (which doesn't work on DataSci 3.0), running the awscli/boto installs with --no-build-isolation as shown below fixes it:

%pip install --no-build-isolation --force-reinstall \
    ../dependencies/awscli-1.27.162-py3-none-any.whl \
    ../dependencies/boto3-1.26.162-py3-none-any.whl \
    ../dependencies/botocore-1.29.162-py3-none-any.whl

I'd appreciate feedback whether that approach works for other people facing this issue in non-Studio environments too? (Or if anybody deeper on Python packaging than I am has reason to believe it's a bad idea!)

from amazon-bedrock-workshop.

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.