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

Not able to load a preset persona or create a persona ; crashes regardless #1070

Closed
kit678 opened this issue Feb 29, 2024 · 0 comments · Fixed by #1058
Closed

Not able to load a preset persona or create a persona ; crashes regardless #1070

kit678 opened this issue Feb 29, 2024 · 0 comments · Fixed by #1058
Assignees

Comments

@kit678
Copy link

kit678 commented Feb 29, 2024

$ pip show pymemgpt
Name: pymemgpt
Version: 0.3.3
Summary: Teaching LLMs memory management for unbounded context
Home-page:
Author: MemGPT Team
Author-email: [email protected]
License: Apache License
Location: C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages
Requires: chromadb, demjson3, docstring-parser, docx2txt, html2text, httpx, lancedb, llama-index, numpy, prettytable, pydantic, pypdf, pytz, pyyaml, questionary, setuptools, sqlalchemy, sqlalchemy-json, tiktoken, tqdm, typer
Required-by:

Here are the steps to reproduce:

  1. conda create -n memgpt python=3.11.3 (I used this python version to circumvent 'faiss-cpu' wheel issue)

  2. conda activate memgpt

  3. $ memgpt quickstart
    📖 MemGPT configuration file unchanged.
    🧠 model -> ehartford/dolphin-2.5-mixtral-8x7b
    🖥️ endpoint -> https://api.memgpt.ai
    ⚡ Run "memgpt run" to create an agent.

  4. $ memgpt run

? Would you like to select an existing agent? No

🧬 Creating new agent...
-> 🤖 Using persona profile 'sam_pov'
-> 🧑 Using human profile 'basic'
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\Admin\miniconda3\envs\memgpt\Scripts\memgpt.exe_main
.py", line 7, in
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\typer\main.py", line 328, in call
raise e
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\typer\main.py", line 311, in call
return get_command(self)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\typer\core.py", line 778, in main
return _main(
^^^^^^
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\typer\core.py", line 216, in _main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\typer\main.py", line 683, in wrapper
return callback(**use_params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\memgpt\cli\cli.py", line 620, in run
memgpt_agent = presets.create_agent_from_preset(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\miniconda3\envs\memgpt\Lib\site-packages\memgpt\presets\presets.py", line 82, in create_agent_from_preset
assert preset_name == preset.name, f"AgentState preset '{preset_name}' does not match preset name '{preset.name}'"
^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'

@sarahwooders sarahwooders linked a pull request Feb 29, 2024 that will close this issue
6 tasks
@sarahwooders sarahwooders moved this from To triage to Ready in 🐛 MemGPT issue tracker Feb 29, 2024
@sarahwooders sarahwooders moved this from Ready to In progress in 🐛 MemGPT issue tracker Feb 29, 2024
@github-project-automation github-project-automation bot moved this from In progress to Done in 🐛 MemGPT issue tracker Mar 1, 2024
sarahwooders pushed a commit that referenced this issue Feb 20, 2025
Co-authored-by: Shubham Naik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants