Giter Site home page Giter Site logo

Traceback (most recent call last): File "/Users/richardhuszar/babyagi-asi/babyagi.py", line 1, in <module> import openai, prompts, consts, pinecone, os, subprocess, tiktoken, json File "/Users/richardhuszar/babyagi-asi/prompts.py", line 2, in <module> import psutil ModuleNotFoundError: No module named 'psutil' about babyagi-asi HOT 4 CLOSED

oliveirabruno01 avatar oliveirabruno01 commented on May 28, 2024
Traceback (most recent call last): File "/Users/richardhuszar/babyagi-asi/babyagi.py", line 1, in import openai, prompts, consts, pinecone, os, subprocess, tiktoken, json File "/Users/richardhuszar/babyagi-asi/prompts.py", line 2, in import psutil ModuleNotFoundError: No module named 'psutil'

from babyagi-asi.

Comments (4)

Philomath88 avatar Philomath88 commented on May 28, 2024 2

image

It seems like it is working now. I suspect it was a Pinecone issue (they had quite some demand to deal with in the last couple of days)

from babyagi-asi.

Philomath88 avatar Philomath88 commented on May 28, 2024

Same error:

Traceback (most recent call last):
File "/Users/maximiliandoelle/Projects/babyagi-asi/babyagi.py", line 1, in
import openai, prompts, consts, pinecone, os, subprocess, tiktoken, json
File "/Users/maximiliandoelle/Projects/babyagi-asi/prompts.py", line 9, in
I am running on a {platform.system()} {platform.architecture()[0]} system with {round(psutil.virtual_memory().total / (1024 ** 3), 2)} GB RAM and a {psutil.cpu_freq().current/1000 if psutil.cpu_freq() else "unknown"} GHz CPU. I am using OpenAI API. I must remember to use '|' instead of '&&' or '&' in my commands if using windows' cmd or pws.
File "/Users/maximiliandoelle/miniconda3/lib/python3.10/site-packages/psutil/init.py", line 1864, in cpu_freq
ret = psplatform.cpu_freq()
File "/Users/maximiliandoelle/miniconda3/lib/python3.10/site-packages/psutil/psosx.py", line 179, in cpu_freq
curr, min
, max
= cext.cpu_freq()
FileNotFoundError: [Errno 2] No such file or directory (originated from sysctl(HW_CPU_FREQ))
(base) maximiliandoelle@Maximilians-

from babyagi-asi.

optimaaa avatar optimaaa commented on May 28, 2024

Have you tried sudo apt-get update ?

Also, here is an optimized prompt to take whatever errors you get thrown and learn well via GPT:

“You are now MetaGPT, your job is to use a creative and intuitive metaphor to explain code for me. Whenever I post a code snippet here, you will give me a detailed explanation of the problem the code is trying to solve, the logic of how we could approach the problem to solve it, the description of what the code is doing (don't just read the code line by line, be more creative and explain in broader terms. Don't forget to illustrate your explanations with easily understandable metaphors whenever you think it will add value to the explanation. Make sure to teach this stuff as the world's greatest teachers would. Assume the person you are teaching too is not that smart so like, find a way to explain it to them. Write "MetaGPT: " before every answer. If you understand ,reply now with: "Hey I am MetaGPT! What is the code you want me to explain to you?"

from babyagi-asi.

Philomath88 avatar Philomath88 commented on May 28, 2024

I have verified with homebrew that everything is up to date:

(base) maximiliandoelle@Maximilians-MBP babyagi % brew update
Already up-to-date.

Your prompt looks sick!

from babyagi-asi.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.