You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running an agent built using crewAI on AWS Lambda using a container image. CrewAI (version 0.51.1) depends on the embedchain package (embedchain = "^0.1.114"). The embedchain package depends on the mem0ai package (mem0ai = "^0.0.20") that attempts to create its current working directory in the user's home directory, which is not allowed in AWS Lambda environment. AWS Lambda only allows writing to the /tmp directory.
This issue has been resolved in the mem0ai package recently (#1726) with version 0.1.3 and upwards. However, embedchain has not been updated to use the version of mem0ai that fixed this.
To resolve this issue, embedchain has to be updated to use mem0ai version 0.1.3 or above.
Here is the error trace
{
"errorMessage": "[Errno 30] Read-only file system: '/home/sbx_user1051'",
"errorType": "OSError",
"requestId": "",
"stackTrace": [
" File \"/var/lang/lib/python3.11/importlib/__init__.py\", line 126, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n",
" File \"<frozen importlib._bootstrap>\", line 1204, in _gcd_import\n",
" File \"<frozen importlib._bootstrap>\", line 1176, in _find_and_load\n",
" File \"<frozen importlib._bootstrap>\", line 1147, in _find_and_load_unlocked\n",
" File \"<frozen importlib._bootstrap>\", line 690, in _load_unlocked\n",
" File \"<frozen importlib._bootstrap_external>\", line 940, in exec_module\n",
" File \"<frozen importlib._bootstrap>\", line 241, in _call_with_frames_removed\n",
" File \"/var/task/main.py\", line 3, in <module>\n from config.agents import BusinessAgent\n",
" File \"/var/task/config/agents.py\", line 3, in <module>\n from crewai import Agent\n",
" File \"/var/lang/lib/python3.11/site-packages/crewai/__init__.py\", line 1, in <module>\n from crewai.agent import Agent\n",
" File \"/var/lang/lib/python3.11/site-packages/crewai/agent.py\", line 13, in <module>\n from crewai.agents import CacheHandler, CrewAgentExecutor, CrewAgentParser\n",
" File \"/var/lang/lib/python3.11/site-packages/crewai/agents/__init__.py\", line 2, in <module>\n from .executor import CrewAgentExecutor\n",
" File \"/var/lang/lib/python3.11/site-packages/crewai/agents/executor.py\", line 19, in <module>\n from crewai.agents.agent_builder.base_agent_executor_mixin import CrewAgentExecutorMixin\n",
" File \"/var/lang/lib/python3.11/site-packages/crewai/agents/agent_builder/base_agent_executor_mixin.py\", line 4, in <module>\n from crewai.memory.entity.entity_memory_item import EntityMemoryItem\n",
" File \"/var/lang/lib/python3.11/site-packages/crewai/memory/__init__.py\", line 1, in <module>\n from .entity.entity_memory import EntityMemory\n",
" File \"/var/lang/lib/python3.11/site-packages/crewai/memory/entity/entity_memory.py\", line 3, in <module>\n from crewai.memory.storage.rag_storage import RAGStorage\n",
" File \"/var/lang/lib/python3.11/site-packages/crewai/memory/storage/rag_storage.py\", line 10, in <module>\n from embedchain import App\n",
" File \"/var/lang/lib/python3.11/site-packages/embedchain/__init__.py\", line 5, in <module>\n from embedchain.app import App # noqa: F401\n",
" File \"/var/lang/lib/python3.11/site-packages/embedchain/app.py\", line 12, in <module>\n from mem0 import Memory\n",
" File \"/var/lang/lib/python3.11/site-packages/mem0/__init__.py\", line 5, in <module>\n from mem0.memory.main import Memory # noqa\n",
" File \"/var/lang/lib/python3.11/site-packages/mem0/memory/main.py\", line 17, in <module>\n from mem0.memory.setup import setup_config\n",
" File \"/var/lang/lib/python3.11/site-packages/mem0/memory/setup.py\", line 8, in <module>\n os.makedirs(mem0_dir, exist_ok=True)\n",
" File \"<frozen os>\", line 215, in makedirs\n",
" File \"<frozen os>\", line 225, in makedirs\n"
]
}
The text was updated successfully, but these errors were encountered:
🐛 Describe the bug
I am running an agent built using crewAI on AWS Lambda using a container image. CrewAI (
version 0.51.1
) depends on the embedchain package (embedchain = "^0.1.114"
). The embedchain package depends on the mem0ai package (mem0ai = "^0.0.20"
) that attempts to create its current working directory in the user's home directory, which is not allowed in AWS Lambda environment. AWS Lambda only allows writing to the/tmp
directory.This issue has been resolved in the
mem0ai
package recently (#1726) with version 0.1.3 and upwards. However,embedchain
has not been updated to use the version ofmem0ai
that fixed this.To resolve this issue,
embedchain
has to be updated to usemem0ai
version 0.1.3 or above.Here is the error trace
The text was updated successfully, but these errors were encountered: