crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
20.9k stars 2.9k forks source link

ubuntu22 crewai v0.35.3: importlib.metadata.PackageNotFoundError: No package metadata was found for embedchain #842

Closed neo896 closed 2 months ago

neo896 commented 4 months ago

os: linux(ubuntu22) python: 3.10.14 crewai version: v0.35.3 Error: importlib.metadata.PackageNotFoundError: No package metadata was found for embedchain

joaomdmoura commented 4 months ago

Yup! I just got that error as well, I think it's fixed now, do you mind trying 0.35.4?

robsonc commented 4 months ago

I receive the same error on windows.. crewai 0.35.4

steps to reproduce

pip install crewai -- upgrade crewai add project_name cd project_name poetry lock poetry install poetry run project_name

Traceback (most recent call last): File "C:\Users\MyUser\AppData\Local\Programs\Python\Python312\Lib\importlib\metadata__init__.py", line 397, in from_name return next(cls.discover(name=name)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "C:\Users\MyUser\AppData\Local\Programs\Python\Python312\Lib\importlib__init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "E:\PythonProjects\ebook_saas\src\ebook_saas\main.py", line 3, in from ebook_saas.crew import EbookSaasCrew File "E:\PythonProjects\ebook_saas\src\ebook_saas\crew.py", line 1, in from crewai import Agent, Crew, Process, Task File "E:\PythonProjects\ebook_saas.venv\Lib\site-packages\crewai__init.py", line 1, in from crewai.agent import Agent File "E:\PythonProjects\ebook_saas.venv\Lib\site-packages\crewai\agent.py", line 13, in from crewai.agents import CacheHandler, CrewAgentExecutor, CrewAgentParser File "E:\PythonProjects\ebook_saas.venv\Lib\site-packages\crewai\agents__init__.py", line 2, in from .executor import CrewAgentExecutor File "E:\PythonProjects\ebook_saas.venv\Lib\site-packages\crewai\agents\executor.py", line 14, in from crewai.agents.agent_builder.base_agent_executor_mixin import CrewAgentExecutorMixin File "E:\PythonProjects\ebook_saas.venv\Lib\site-packages\crewai\agents\agent_builder\base_agent_executor_mixin.py", line 3, in from crewai.memory.entity.entity_memory_item import EntityMemoryItem File "E:\PythonProjects\ebook_saas.venv\Lib\site-packages\crewai\memory__init__.py", line 1, in from .entity.entity_memory import EntityMemory File "E:\PythonProjects\ebook_saas.venv\Lib\site-packages\crewai\memory\entity\entity_memory.py", line 3, in from crewai.memory.storage.rag_storage import RAGStorage File "E:\PythonProjects\ebook_saas.venv\Lib\site-packages\crewai\memory\storage\rag_storage.py", line 7, in from embedchain import App File "E:\PythonProjects\ebook_saas.venv\Lib\site-packages\embedchain\init.py", line 3, in version = importlib.metadata.version(package or name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\MyUser\AppData\Local\Programs\Python\Python312\Lib\importlib\metadata\init__.py", line 889, in version return distribution(distribution_name).version ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\MyUser\AppData\Local\Programs\Python\Python312\Lib\importlib\metadata\init.py", line 862, in distribution return Distribution.from_name(distribution_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\MyUser\AppData\Local\Programs\Python\Python312\Lib\importlib\metadata\init__.py", line 399, in from_name raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: No package metadata was found for embedchain

neo896 commented 4 months ago

After upgrading to v0.35.7, it fixed the problem

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 5 days with no activity.