-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
cannot import name 'Document' from 'llama_index.core' (unknown location) #1078
Comments
getting same in linux (debian) pip install pymemgpt -U |
I have just installed the package using the command |
same here. I install with pip -e. then I update llama-index to 0.1-14, same error before and after the update |
Had to make following changes and install from source i.e diff --git a/memgpt/data_sources/connectors.py b/memgpt/data_sources/connectors.py from typing import List, Iterator, Dict, Tuple, Optional class DataConnector:
- from llama_index.core import SimpleDirectoryReader
diff --git a/memgpt/embeddings.py b/memgpt/embeddings.py # from llama_index.core.base.embeddings import BaseEmbedding # from llama_index.core.base.embeddings import BaseEmbedding |
Is this still an issue on the latest version? |
I am still facing this. Just updated from version 0.3.0 to 0.3.14 |
I can confirm that this is still an issue on latest via pypy.
Fixed by installing |
This issue has been automatically closed due to 60 days of inactivity. |
Describe the bug
When I want to run "memgpt run" or "memgpt configure" on my Windows 10 X64 machine, using python 3.11.7 I get the following error:
memgpt run Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Program Files\Python311\Scripts\memgpt.exe\__main__.py", line 4, in <module> File "C:\Program Files\Python311\Lib\site-packages\memgpt\__init__.py", line 3, in <module> from memgpt.client.client import create_client File "C:\Program Files\Python311\Lib\site-packages\memgpt\client\client.py", line 8, in <module> from memgpt.cli.cli import QuickstartChoice File "C:\Program Files\Python311\Lib\site-packages\memgpt\cli\cli.py", line 26, in <module> from memgpt.agent import Agent, save_agent File "C:\Program Files\Python311\Lib\site-packages\memgpt\agent.py", line 15, in <module> from memgpt.persistence_manager import LocalStateManager File "C:\Program Files\Python311\Lib\site-packages\memgpt\persistence_manager.py", line 5, in <module> from memgpt.memory import ( File "C:\Program Files\Python311\Lib\site-packages\memgpt\memory.py", line 10, in <module> from memgpt.embeddings import embedding_model, query_embedding, parse_and_chunk_text File "C:\Program Files\Python311\Lib\site-packages\memgpt\embeddings.py", line 14, in <module> from llama_index.core import Document as LlamaIndexDocument ImportError: cannot import name 'Document' from 'llama_index.core' (unknown location)
Please describe your setup
pip install pymemgpt
andpip install pymemgpt[postgres]
memgpt
?cmd.exe
MemGPT Config
Please attach your
~/.memgpt/config
file or copy past it below.I am using OpenAI
The text was updated successfully, but these errors were encountered: