Comments (8)
#86
this one is working well !
from autogpt.
Duplicate of #30
The problem is not tiktoken, but googlesearch-python. I've just created a PR containing a workaround, using tomviner's PR on googlesearch which loosened its requirements
Try if this fixes your problem: #86
from autogpt.
Currently, the latest master branch no longer has this problem. git pull
or re git clone
the repo and pip install --user -r requirements.txt
.
from autogpt.
Yeah some version pining would be great too... I see a lot of unpinned versions
I'm getting the same error
from autogpt.
Someone on Discord suggested this that worked for me:
git+https://github.com/tomviner/googlesearch@loosen-requirements#googlesearch-python
from autogpt.
To resolve this dependency conflict, you can try the following steps:
1)Use a virtual environment to isolate the project dependencies from other Python installations on your system.
2)Uninstall the conflicting packages that are not needed for your project.
3)Install the required versions of requests and googlesearch-python packages in your virtual environment using pip.
Here are the steps in more detail:
1)Create a virtual environment:
Copy code
python -m venv myenv
2)Activate the virtual environment:
bash
Copy code
source myenv/bin/activate # on Linux or macOS
myenv\Scripts\activate.bat # on Windows
3)Uninstall the conflicting packages:
Copy code
pip uninstall tiktoken docker
4)Install the required versions of requests and googlesearch-python packages:
Copy code
pip install requests==2.25.1 googlesearch-python
If you still need tiktoken and docker packages, you can try installing them with the same version of requests as googlesearch-python:
Copy code
pip install tiktoken docker requests==2.25.1
Alternatively, you can try updating the dependencies of the conflicting packages to use a compatible version of requests. However, this may not always be possible or practical, especially if the conflicting packages have strict dependency requirements.
from autogpt.
To resolve this dependency conflict, you can try the following steps:
1)Use a virtual environment to isolate the project dependencies from other Python installations on your system.
2)Uninstall the conflicting packages that are not needed for your project.
3)Install the required versions of requests and googlesearch-python packages in your virtual environment using pip.
Here are the steps in more detail:
1)Create a virtual environment: Copy code
python -m venv myenv
2)Activate the virtual environment: bash Copy codesource myenv/bin/activate # on Linux or macOS
myenv\Scripts\activate.bat # on Windows
3)Uninstall the conflicting packages: Copy codepip uninstall tiktoken docker
4)Install the required versions of requests and googlesearch-python packages: Copy codepip install requests==2.25.1 googlesearch-python
If you still need tiktoken and docker packages, you can try installing them with the same version of requests as googlesearch-python:Copy code
pip install tiktoken docker requests==2.25.1
Alternatively, you can try updating the dependencies of the conflicting packages to use a compatible version of requests. However, this may not always be possible or practical, especially if the conflicting packages have strict dependency requirements.
Still Getting the following error on Mac
Collecting requests==2.25.1
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting googlesearch-python
Using cached googlesearch-python-1.2.0.tar.gz (7.4 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/0x/1gmts4910vs5kjmbz0shlj3h0000gn/T/pip-install-gcq2yqik/googlesearch-python_1e337451113649e48921cb002ccd8c43/setup.py", line 6, in
with open("requirements.txt") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
from autogpt.
To pin or not to pin
Still not sure what's best here
I'm going with: only pin when we need to
We're now using poetry which should sort this out for us.
from autogpt.
Related Issues (20)
- 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 5
- Autogpt
- ./run agent start autogpt error HOT 1
- Security issue - Docker-compose persisted volumes HOT 1
- Tried to install AutoGPT since 5 days
- agent have started ,but the website is empty,and in the gitpod env, it can not be installed and can not
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 autogpt.