Giter Site home page Giter Site logo

Comments (10)

Torantulino avatar Torantulino commented on May 29, 2024 3

I don't personally know anything about Mac. Here's what the AI says. Follow its advice at your own risk! :

The issue seems to be caused by the installation of the lxml package, not the code you have provided. The problem is related to building the package on your system, which might be caused by a missing or incompatible version of a required dependency.

Please try the following steps:

  1. First, make sure you have installed the required dependencies: libxml2 and libxslt:

    If you are using macOS, you can install these dependencies using Homebrew with the following commands:

    brew install libxml2
    brew install libxslt
    

    If you are using a Linux distribution, use the package manager for your distribution (e.g., apt-get, yum, pacman, etc.) to install libxml2 and libxslt.

  2. Make sure you have lxml version that match your python version

    You can try installing a different version of the package, based on your Python version. For example, if you are using Python 3.8, you can try:

    pip install lxml==4.9.2
    

from auto-gpt.

transcendr avatar transcendr commented on May 29, 2024 2

Wow dude you rock. You seem super motivated. I'm really excited for where this could go. Hopefully I'll have some time to contribute sooner than later.

Cheers.

from auto-gpt.

microfx avatar microfx commented on May 29, 2024 2

oh god... I'm again in python env version hell AAAAAAAAAAHHHHHHHHHHHH ... I have like 5 python versions installed – I will never understand how to manage this ... sad day for me.

from auto-gpt.

transcendr avatar transcendr commented on May 29, 2024 1

Hi, thanks for your quick response. In the meantime I was doing some additional troubleshooting and eventually got it working. Here's the steps I took:

  1. upgraded from python 3.8.9 to 3.11 ( brew update && brew install [email protected] )
  2. with that version of python I was able to install lxml without issue
  3. However upon running -r req's again, I had errors from dependency conflicts. I resolved those by using the suggested compatible versions, where final version of req's.txt looks like:
 1 ~ │ beautifulsoup4==4.9.3
   2   │ colorama==0.4.6
   3   │ googlesearch_python==1.1.0
   4   │ openai==0.27.0
   5   │ playsound==1.2.2
   6   │ readability_lxml==0.8.1
   7 ~ │ requests==2.25.1

(excuse the formatting, I bat'd it)

An install from there worked and the system is so far running. Will report back if anything comes up. That said one thing I immediately noticed is that my AI had a step where an agent was to be created. There are two options y (to proceed) and the other to exit. Another option e to open the proposed agent creation command (or any command) and it edit in the default $EDITOR would be awesome. It would be useful to tweak instructions to the agent that are slightly wrong. Anyway, thanks again for your work on this. So far, it looks very interesting.

from auto-gpt.

Torantulino avatar Torantulino commented on May 29, 2024 1

Glad you got it working, thanks for such a detailed response, that's really helpful.
Okay, looks like I need to update the requirements.txt

Tasks from this issue:

  • Update requirements.txt
  • Suggest Python update?
  • Add troubleshooting section?

As for your suggestion, I love it! Someone has recently suggested something similar #13 , so I think I'll be able to kill two birds with one stone here. I'll get right onto implementing that after I push the big scary feature I'm currently working on...
AI CODE EXECUTION

from auto-gpt.

basit26374 avatar basit26374 commented on May 29, 2024 1

I resolved the issue by upgrading my Python version from 3.8 to 3.11.
brew update && brew install [email protected]

Thanks @transcendr

from auto-gpt.

Torantulino avatar Torantulino commented on May 29, 2024

Thank you! If you get a chance, please share outputs of the program running in discussions!
It would be great to see people other than myself executing it.

Oh wow, a code contribution would be incredible. 🙏

Thanks for the kind words. 😊

from auto-gpt.

danielraffel avatar danielraffel commented on May 29, 2024

on macOS - when I run python main.py I get these errors

Traceback (most recent call last):
File "/Users/username/Auto-GPT/scripts/main.py", line 3, in
import commands as cmd
File "/Users/username/Auto-GPT/scripts/commands.py", line 1, in
import browse
File "/Users/username/Auto-GPT/scripts/browse.py", line 1, in
from googlesearch import search
ModuleNotFoundError: No module named 'googlesearch

FWIW I do have Requirement already satisfied: googlesearch_python in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from -r requirements.txt (line 4)) (1.1.0)

would love to try this again perhaps when these are updated
#16 (comment)

from auto-gpt.

SurpriseMF3000 avatar SurpriseMF3000 commented on May 29, 2024
  1. upgraded from python 3.8.9 to 3.11 ( brew update && brew install [email protected] )

Worked for me;)

from auto-gpt.

raj-333 avatar raj-333 commented on May 29, 2024

I have done using below commands and worked well,

python 3.12,
pip3 uninstall lxml
arch -x86_64 pip3 install lxml (m1 mac and chip)

from auto-gpt.

Related Issues (20)

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.