Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
Other
167.51k stars 44.24k forks source link

import error related to update_running_summary in the summary_memory module. #3924

Closed DMTarmey closed 1 year ago

DMTarmey commented 1 year ago

⚠️ Search for existing issues first ⚠️

Which Operating System are you using?

Windows

Which version of Auto-GPT are you using?

Stable (branch)

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\Dell User\Auto-GPT\autogpt__main.py", line 4, in cli.main() File "C:\Users\Dell User\AppData\Roaming\Python\Python311\site-packages\click\core.py", line 1130, in call__ return self.main(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dell User\AppData\Roaming\Python\Python311\site-packages\click\decorators.py", line 26, in new_func return f(get_current_context(), args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dell User\Auto-GPT\autogpt\cli.py", line 87, in main from autogpt.main import run_auto_gpt File "C:\Users\Dell User\Auto-GPT\autogpt\main.py", line 8, in from autogpt.agent.agent import Agent File "C:\Users\Dell User\Auto-GPT\autogpt\agent__init.py", line 1, in from autogpt.agent.agent import Agent File "C:\Users\Dell User\Auto-GPT\autogpt\agent\agent.py", line 3, in from autogpt.app import execute_command, get_command File "C:\Users\Dell User\Auto-GPT\autogpt\app.py", line 5, in from autogpt.agent.agent_manager import AgentManager File "C:\Users\Dell User\Auto-GPT\autogpt\agent\agent_manager.py", line 7, in from autogpt.llm import Message, create_chat_completion File "C:\Users\Dell User\Auto-GPT\autogpt\llm\init__.py", line 11, in from autogpt.llm.chat import chat_with_ai, create_chat_message, generate_context File "C:\Users\Dell User\Auto-GPT\autogpt\llm\chat.py", line 15, in from autogpt.memory_management.summary_memory import ( ImportError: cannot import name 'update_running_summary' from 'autogpt.memory_management.summary_memory' (C:\Users\Dell User\Auto-GPT\autogpt\memory_management\summary_memory.py) PS C:\Users\Dell User\Auto-GPT>

Current behavior 😯

errors above

Expected behavior 🤔

run without errors

Your prompt 📝

# Paste your prompt here

ai_goals:

Your Logs 📒

<insert your logs here>

2023-05-05 13:31:00,138 ERROR logs:_log:136 Error: The following AI output couldn't be converted to a JSON: I'm not familiar with the "langchain" package. Could you please provide more information on what you would like me to do with it? 2023-05-05 13:31:47,372 ERROR logs:_log:136 Error: The following AI output couldn't be converted to a JSON: It seems like you would like me to analyze the code in the "langchain" package. Please provide the full code string for me to analyze using the "analyze_code" command. 2023-05-05 13:42:00,706 ERROR logs:_log:136 Error: The following AI output couldn't be converted to a JSON: I'm sorry, but I am not familiar with the "longchain" library. Could you please provide more information about what you would like me to do with it? 2023-05-05 17:36:13,562 ERROR logs:_log:136 Error: The following AI output couldn't be converted to a JSON: I'm sorry, but I need more information to determine what the issue is and what command to use next. Can you please provide more context and details about the error message and what you are trying to accomplish? 2023-05-05 17:38:32,930 ERROR logs:_log:136 Error: The following AI output couldn't be converted to a JSON: I apologize, but I need more information to determine what the issue is and what command to use next. Can you please provide more context and details about the error message and what you are trying to accomplish? 2023-05-05 17:51:43,744 ERROR logs:_log:136 Error: Attempted to access path 'C:\usr\local\lib\python3.7\site-packages' outside of workspace 'C:\Users\Dell User\Auto-GPT\autogpt\auto_gpt_workspace'. 2023-05-06 16:56:14,958 ERROR logs:_log:136 Error: The following AI output couldn't be converted to a JSON: { "thoughts": { "text": "I will use the 'write_to_file' command to save the search results to a file named 'social_media_content_search_results.txt'.", "reasoning": "This will allow me to easily access the search results in the future and provide users with relevant information on how to write effective content for social media.", "plan": "- Use the 'write_to_file' command to save the search results to a file named 'social_media_content_search_results.txt'.", "criticism": "I need to make sure that the file is saved in the correct directory and that the search results are accurate and relevant.", "speak": "I will use the 'write_to_file' command to save the search results to a file named 'social_media_content_search_results.txt'." }, "command": { "name": "write_to_file", "args": { "filename": "social_media_content_search_results.txt", "text": "[{'title': 'Your 2023 Guide to Social Media Content Creation', 'href': 'https://blog.hootsuite.com/social-media-content-creation/', 'body': 'A simple 8-step social media content creation process 1. Do your research 2. Set goals 3. Have a creative brainstorm 4. Assign roles 5. Build a content calendar 6. Schedule your content 7. Build your content library 8. Analyze your results'}, {'title': 'Writing for Social Media in 2023: Tips and Tools', 'href': 'https://blog.hootsuite.com/writing-for-social-media/', 'body': 'Writing for social media: 7 tips for 2022 1. Just start writing (you\'ll edit later) 2. Speak the language of social media 3. Make your posts accessible 4. Keep it simple 5. Write to the reader 6. Have a clear purpose 7. Use (the right) pictures to enhance your words'}, {'title': 'Create engaging and effective social media content', 'href': 'https://help.hootsuite.com/hc/en-us/articles/4403597090459-Create-engaging-and-effective-social-media-content', 'body': 'Visuals. Social media is inherently visual, and visual content provides a critical engagement boost. Statistically, visual posts get consistently more clicks, shares, and comments than posts with text only. Try using a mixture of photos, images with text overlay, and videos to enhance the value and visual appeal of your posts.'}, {'title': 'Best Practice And Tips For Writing For Social Media - Agorapulse', 'href': 'https://www.agorapulse.com/blog/social-media-writing-tips/', 'body': 'Does Great Social Media Writing Increase ROI? 1. Know Your Brand Voice—and Use It! 2. Keep Your Writing Short and Sweet 3. Keep Your Social Media Writing Accessible 4. Craft Great Replies for Social Media Content 5. Credit People and Engage Your Audience Want to receive the best of our blog every single month? Yes, I\'m in!'}, {'title': 'Writing for Social Media: Tips & Best Practices | CSP Global', 'href': 'https://online.csp.edu/resources/article/writing-for-social-media/', 'body': 'An often-overlooked element in writing for social media is maintaining consistency across content. Your social media posts and destination pages should follow the same branding. CoSchedule says, \"If your post is linking to an external page, then your post messaging needs to match your landing page messaging.'}, {'title': 'How to Write the Most Engaging Social Media Posts - Express Writers', 'href': 'https://expresswriters.com/how-to-write-social-media-posts/', 'body': 'As a general rule, short posts on social media perform better than long ones. End with a question. People are more likely to engage when you reach out to them for their opinions or feedback. Post interesting content, even if it doesn\'t pertain directly to your brand.'}, {'title': 'How to Craft a Social Media Content Strategy | Sprout Social', 'href': 'https://sproutsocial.com/insights/social-media-content-strategy/', 'body': 'Identify and set goals. The first step towards a long-term social media strategy is to set your content goals. Having goals in mind will help you start planning out the type of content to create. This process involves digging deep into your brand values as well as researching your audience. Start by getting clear on your overall marketing goals ...'}, {'title': 'How to Write a Great Social Media Post - Content Creation Advice', 'href': 'https://www.crowdcontent.com/blog/social-media/how-to-write-a-great-social-media-post/', 'body': 'To effectively incorporate hashtags in your social media posts, remember: Hashtags don\'t use spaces, symbols or punctuation marks, so if you need to include more than one word, just mash them together. Hashtags should be simple and easy to remember. A blend of trending, branded, popular or industry-relevant hashtags can have more impact.'}]" } } } 2023-05-06 18:00:15,844 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:00:37,864 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:00:55,836 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:01:14,186 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:01:33,309 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:01:53,053 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:02:10,016 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:02:29,158 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:02:47,706 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:03:04,646 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:03:28,749 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:03:50,450 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:04:07,709 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:04:27,229 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:04:45,813 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:05:03,738 ERROR logs:_log:136 The JSON object is invalid. 2023-05-06 18:06:20,633 ERROR logs:_log:136 The JSON object is invalid.

DMTarmey commented 1 year ago

fixed