Comments (3)
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.
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.
@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)
- Add example of Image Outpaiting with Stable Diffusion HOT 1
- 'BedrockEmbeddings' object is not callable HOT 3
- missing policies for 02_qa_w_rag_claude_opensearch.ipynb
- notebook missing
- Error: AttributeError: 'Bedrock' object has no attribute 'invoke_model' encountered in chatbot session HOT 2
- 00_Intro bedrock_boto3_setup.ipynb has an error setting up dependencies. HOT 1
- Error missing numexpr dependency when running 07_Agents/00_Function_DIY_Agents.ipynb
- Cannot create pinecone index HOT 1
- "apt-get update && apt-get install g++ -y" in bedrock_boto3_setup.jpynb returned error when using latest JupyterLab app in SageMaker Studio HOT 3
- Could not import anthropic python package. This is needed in order to accurately tokenize the text for anthropic models. Please install it with `pip install anthropic`. HOT 4
- S3 bucket creation for Regions other than us-east-1
- 00_Chatbot_Claude ValueError: Error: Prompt must alternate between ' Human:' and ' Assistant:'. HOT 2
- How do I contribute javascript version of this repo? HOT 1
- pysqlite3 is not installable from osx.
- How to resolve Authorizations errors when running lab 03_QuestionAnswering/02_qa_w_rag_claude_opensearch
- Invalid LocationConstraint error in lab 03_QuestionAnswering/knowledge-bases /0_create_ingest_documents_test_kb.ipynb HOT 1
- Possible Typo in IAM Policy for 07_Agents/insurance_claims_agent/without_kb/create_and_invoke_agent.ipynb HOT 1
- aws-bedrock agent failing infrequently with failureReason': 'LLM prediction format incorrect' HOT 1
- Python 3.7 is no longer supported for for creating or updating Lambda function
- No matching distribution for packages throughout Setup script HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-bedrock-workshop.