Skip to content
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: Quickstart.py error: you must specify a region #38

Closed
ab94amz opened this issue Sep 6, 2024 · 2 comments
Closed

Bug: Quickstart.py error: you must specify a region #38

ab94amz opened this issue Sep 6, 2024 · 2 comments
Labels
bug Something isn't working triage

Comments

@ab94amz
Copy link

ab94amz commented Sep 6, 2024

Expected Behaviour

Running Quickstart.py example https://awslabs.github.io/multi-agent-orchestrator/general/quickstart/

Current Behaviour

Traceback (most recent call last):
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/quickstart.py", line 6, in
from multi_agent_orchestrator.orchestrator import MultiAgentOrchestrator, OrchestratorConfig
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/multi_agent_orchestrator/orchestrator.py", line 20, in
class MultiAgentOrchestrator:
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/multi_agent_orchestrator/orchestrator.py", line 24, in MultiAgentOrchestrator
classifer: Classifier = BedrockClassifier(options=BedrockClassifierOptions()),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/multi_agent_orchestrator/classifiers/bedrock_classifier.py", line 25, in init
super().init()
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/multi_agent_orchestrator/classifiers/classifier.py", line 16, in init
self.default_agent = BedrockLLMAgent(
^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/multi_agent_orchestrator/agents/bedrock_llm_agent.py", line 30, in init
self.client = boto3.client('bedrock-runtime')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/boto3/init.py", line 92, in client
return _get_default_session().client(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/boto3/session.py", line 297, in client
return self._session.create_client(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/botocore/session.py", line 997, in create_client
client = client_creator.create_client(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/botocore/client.py", line 161, in create_client
client_args = self._get_client_args(
^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/botocore/client.py", line 520, in _get_client_args
return args_creator.get_client_args(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/botocore/args.py", line 101, in get_client_args
final_args = self.compute_client_args(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/botocore/args.py", line 220, in compute_client_args
endpoint_config = self._compute_endpoint_config(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/botocore/args.py", line 370, in _compute_endpoint_config
return self._resolve_endpoint(**resolve_endpoint_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/botocore/args.py", line 475, in _resolve_endpoint
return endpoint_bridge.resolve(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/botocore/client.py", line 625, in resolve
resolved = self.endpoint_resolver.construct_endpoint(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/botocore/regions.py", line 230, in construct_endpoint
result = self._endpoint_for_partition(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Volumes/workplace/Test/Agents/multi-agent-orchestrator/env/lib/python3.12/site-packages/botocore/regions.py", line 278, in _endpoint_for_partition
raise NoRegionError()
botocore.exceptions.NoRegionError: You must specify a region.

Code snippet

https://awslabs.github.io/multi-agent-orchestrator/general/quickstart/

Possible Solution

No response

Steps to Reproduce

https://awslabs.github.io/multi-agent-orchestrator/general/quickstart/

@ab94amz ab94amz added the bug Something isn't working label Sep 6, 2024
@github-actions github-actions bot added the triage label Sep 6, 2024
@ab94amz
Copy link
Author

ab94amz commented Sep 6, 2024

solved with export AWS_DEFAULT_REGION=us-east-1

@ab94amz ab94amz closed this as completed Sep 6, 2024
@brnaba-aws
Copy link
Contributor

Thanks for picking this up, we will update the documentation with that line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants