Comments (10)
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:
-
First, make sure you have installed the required dependencies:
libxml2
andlibxslt
: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 installlibxml2
andlibxslt
. -
Make sure you have
lxml
version that match your python versionYou 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.
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.
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.
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:
- upgraded from python 3.8.9 to 3.11 (
brew update && brew install [email protected]
) - with that version of python I was able to install lxml without issue
- 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.
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.
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.
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.
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.
- upgraded from python 3.8.9 to 3.11 (
brew update && brew install [email protected]
)
Worked for me;)
from auto-gpt.
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)
- We are bubbling up the full response. Revisit this.
- Evaluate against the SWE-bench benchmark HOT 2
- Security advisory link broken
- github ConnectTimeoutError HOT 1
- the deletion of $ENV_PATH in autogpts/forge/setup script might fail the launching of an agent HOT 1
- use proxy for selenium
- using different duckduckgo backend
- Auto
- Multidict dependency does nor compile on MacOS Sonoma 14.4.1 after "./run agent start [AGENTNAME] HOT 7
- Image slider
- Sign in with Google error (" 400: redirect_uri_mismatch".) (also with Github sign in)
- Keyboard shortcut for 'Send a single message'
- Unable to install on mac (Poetry Issue, Old Bug Fixes did not work) HOT 4
- how to change the port and the localhost to other HOT 1
- Can Anyone help to run this project in docker HOT 1
- [SSL: CERTIFICATE_VERIFY_FAILED]
- AutoGPT fails with new OpenAI Project Keys HOT 1
- Allow for Azure Blob Storage file storage backend HOT 1
- Support GitHub Fine-grained Access Token or Add Description to Document
- Apple Silicone Neural Engine: Core ML model package format support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-gpt.