in .env file i stored all the variable ; RASA_PRO_LICENSE = “LICENSE” OPENAI_API_KEY = “AZURE_API” OPENAI_API_TYPE = “azure” OPENAI_API_BASE = “AZURE_API_BASE” OPENAI_API_VERSION = “VERSION”
(.venv) 192:Rasa Pro aamerkhan$ rasa init --template tutorial
Welcome to Rasa!
By installing and using this software, you agree to be bound by the terms and conditions of the End-User License Agreement (EULA) available at https://rasa.com/eula. Please review the EULA carefully before proceeding.
To get started quickly, an initial project will be created.
If you need some help, check out the documentation at Introduction to Rasa Pro.
Now let’s start!
? Please enter a path where the project will be created [default: current directory]
? Directory ‘/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro’ is not empty. Continue? Yes
2024-07-09 15:47:31 INFO root - copying /Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/cli/project_templates/tutorial/actions.py → .
2024-07-09 15:47:31 INFO root - copying /Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/cli/project_templates/tutorial/endpoints.yml → .
2024-07-09 15:47:31 INFO root - copying /Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/cli/project_templates/tutorial/credentials.yml → .
2024-07-09 15:47:31 INFO root - copying /Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/cli/project_templates/tutorial/config.yml → .
2024-07-09 15:47:31 INFO root - copying /Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/cli/project_templates/tutorial/domain.yml → .
2024-07-09 15:47:31 INFO root - creating data
2024-07-09 15:47:31 INFO root - copying /Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/cli/project_templates/tutorial/data/flows.yml → ./data
Created project directory at ‘/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro’.
Finished creating project structure.
? ? Do you want to train an initial model? Yes
Training an initial model…
2024-07-09 15:47:43 WARNING rasa.engine.validation - [warning ]
pattern_chitchat
has an action step with action_trigger_chitchat
, but IntentlessPolicy
is not configured. event_key=flow_component_dependencies.pattern_chitchat.intentless_policy_not_configured
2024-07-09 15:47:49 INFO rasa.engine.training.hooks - Starting to train component ‘FlowPolicy’.
2024-07-09 15:47:49 INFO rasa.engine.training.hooks - Finished training component ‘FlowPolicy’.
2024-07-09 15:47:49 INFO rasa.engine.training.hooks - Starting to train component ‘SingleStepLLMCommandGenerator’.
2024-07-09 15:47:49 INFO rasa.dialogue_understanding.generator.llm_based_command_generator - [info ] llm_based_command_generator.flow_retrieval.enabled
2024-07-09 15:47:51 INFO openai - error_code=DeploymentNotFound error_message=‘The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.’ error_param=None error_type=None message=‘OpenAI API error received’ stream_error=False
2024-07-09 15:47:51 ERROR rasa.dialogue_understanding.generator.flow_retrieval - [error ] Failed to populate the FAISS store with the provided flows. error=InvalidRequestError(message=‘The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.’, param=None, code=‘DeploymentNotFound’, http_status=404, request_id=None) error_type=InvalidRequestError event_key=flow_retrieval.populate_vector_store.not_populated
2024-07-09 15:47:51 ERROR rasa.dialogue_understanding.generator.llm_based_command_generator - [error ] Flow retrieval store isinaccessible. error=InvalidRequestError(message=‘The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.’, param=None, code=‘DeploymentNotFound’, http_status=404, request_id=None) event_key=llm_based_command_generator.train.failed
Traceback (most recent call last):
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/engine/graph.py”, line 538, in call
output = self._fn(self._component, **run_kwargs)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/dialogue_understanding/generator/llm_based_command_generator.py”, line 171, in train
self.flow_retrieval.populate(flows.user_flows, domain)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/dialogue_understanding/generator/flow_retrieval.py”, line 204, in populate
self.vector_store = FAISS.from_documents(
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/langchain/schema/vectorstore.py”, line 510, in from_documents
return cls.from_texts(texts, embedding, metadatas=metadatas, **kwargs)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/langchain/vectorstores/faiss.py”, line 911, in from_texts
embeddings = embedding.embed_documents(texts)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/langchain/embeddings/openai.py”, line 488, in embed_documents
return self._get_len_safe_embeddings(texts, engine=self.deployment)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/langchain/embeddings/openai.py”, line 374, in _get_len_safe_embeddings
response = embed_with_retry(
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/langchain/embeddings/openai.py”, line 107, in embed_with_retry
return _embed_with_retry(**kwargs)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/tenacity/init.py”, line 336, in wrapped_f
return copy(f, *args, **kw)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/tenacity/init.py”, line 475, in call
do = self.iter(retry_state=retry_state)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/tenacity/init.py”, line 376, in iter
result = action(retry_state)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/tenacity/init.py”, line 398, in
self._add_action_func(lambda rs: rs.outcome.result())
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py”, line 438, in result
return self.__get_result()
File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py”, line 390, in __get_result
raise self._exception
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/tenacity/init.py”, line 478, in call
result = fn(*args, **kwargs)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/langchain/embeddings/openai.py”, line 104, in _embed_with_retry
response = embeddings.client.create(**kwargs)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/openai/api_resources/embedding.py”, line 33, in create
response = super().create(*args, **kwargs)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/openai/api_resources/abstract/engine_api_resource.py”, line 155, in create
response, _, api_key = requestor.request(
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/openai/api_requestor.py”, line 299, in request
resp, got_stream = self._interpret_response(result, stream)
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/openai/api_requestor.py”, line 710, in _interpret_response
self._interpret_response_line(
File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/openai/api_requestor.py”, line 775, in _interpret_response_line
raise self.handle_error_response(
openai.error.InvalidRequestError: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/bin/rasa”, line 10, in sys.exit(main()) File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/main.py”, line 133, in main cmdline_arguments.func(cmdline_arguments) File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/cli/scaffold.py”, line 268, in run init_project(args, path) File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/cli/scaffold.py”, line 153, in init_project print_train_or_instructions(args) File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/cli/scaffold.py”, line 87, in print_train_or_instructions training_result = rasa.train( File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/api.py”, line 105, in train return asyncio.run( File “/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py”, line 44, in run return loop.run_until_complete(main) File “uvloop/loop.pyx”, line 1517, in uvloop.loop.Loop.run_until_complete File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/model_training.py”, line 246, in train return await _train_graph( File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/model_training.py”, line 337, in _train_graph await trainer.train( File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/engine/training/graph_trainer.py”, line 106, in train await graph_runner.run(inputs={PLACEHOLDER_IMPORTER: importer}) File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/engine/runner/dask.py”, line 103, in run dask_result = await execute_dask_graph(run_graph, run_targets) File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/engine/runner/dask.py”, line 248, in execute_dask_graph await fire_task() File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/engine/runner/dask.py”, line 242, in fire_task task_result = await _execute_task(dsk[key], data) File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/engine/runner/dask.py”, line 176, in _execute_task return await func(*awaited_args) File “/Users/aamerkhan/Library/CloudStorage/OneDrive-SoftpathSystemLLC/Desktop/Rasa Pro/.venv/lib/python3.9/site-packages/rasa/engine/graph.py”, line 545, in call raise GraphComponentException( rasa.engine.exceptions.GraphComponentException: Error running graph component for node train_SingleStepLLMCommandGenerator0.
Can someone please guide me to install rasa pro in my local?