Comments (8)
#86
this one is working well !
from auto-gpt.
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 auto-gpt.
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 auto-gpt.
Yeah some version pining would be great too... I see a lot of unpinned versions
I'm getting the same error
from auto-gpt.
Someone on Discord suggested this that worked for me:
git+https://github.com/tomviner/googlesearch@loosen-requirements#googlesearch-python
from auto-gpt.
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 auto-gpt.
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 auto-gpt.
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 auto-gpt.
Related Issues (20)
- Prevent agent execution when required fields are empty - outline in red.
- Censor "Secret" fields like API keys in the Builder until clicked on
- Add Jina WebSearch
- [Builder] Add support for Agent Templates
- Add CreateMediumPost Block
- Add YouTube Transcriber Block
- Azure endpoint not configured HOT 3
- can't load credentials error HOT 1
- Where is the node? HOT 1
- [Builder] Add Pagination to Monitor Page
- Update node creation docs
- Move `renderInputField` to a React Component
- Getting 'group' was unexpected when trying to run poetry shell HOT 1
- Display type on block outputs
- [Builder] Deduplicate implementation of `AutoGPTServerAPI` client
- [Server] Move API to `/api` to prevent route collisions with frontend
- Decrease the delay before a tooltip opens
- Silent Failure when creating Block with non-unique ID
- [Builder] Speed up `GET /graphs` calls
- Add gpt-4o-mini
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.