Closed Walrus-Oh closed 1 year ago
Thanks for have try our repository.
Try do digit this comand pip install -U transformers jaxlib
same problem, my pip list: pip list Package Version
absl-py 1.4.0 aiohttp 3.8.4 aiosignal 1.3.1 altair 4.2.2 astunparse 1.6.3 async-generator 1.10 async-timeout 4.0.2 attrs 23.1.0 beautifulsoup4 4.12.2 blinker 1.6.2 boto3 1.24.28 botocore 1.27.59 brotlipy 0.7.0 cachetools 5.3.0 certifi 2022.12.7 cffi 1.15.1 chardet 5.1.0 charset-normalizer 2.0.4 click 8.1.3 colorama 0.4.6 contourpy 1.0.7 cryptography 39.0.1 cycler 0.11.0 dataclasses-json 0.5.7 decorator 5.1.1 diskcache 5.6.1 duckduckgo-search 2.9.2 entrypoints 0.4 exceptiongroup 1.1.1 faiss-cpu 1.7.4 filelock 3.12.0 flatbuffers 23.3.3 flax 0.3.3 fonttools 4.39.3 frozenlist 1.3.3 fsspec 2023.4.0 gast 0.4.0 gitdb 4.0.10 GitPython 3.1.31 google-auth 2.17.3 google-auth-oauthlib 1.0.0 google-pasta 0.2.0 greenlet 2.0.1 grpcio 1.54.0 h11 0.14.0 h5py 3.8.0 hugchat 0.0.5.1 huggingface-hub 0.14.1 idna 3.4 importlib-metadata 6.6.0 iniconfig 2.0.0 jax 0.4.8 Jinja2 3.1.2 jmespath 0.10.0 joblib 1.1.1 jsonschema 4.17.3 keras 2.12.0 kiwisolver 1.4.4 langchain 0.0.157 libclang 16.0.0 Markdown 3.4.3 markdown-it-py 2.2.0 markdownify 0.11.6 MarkupSafe 2.1.2 marshmallow 3.19.0 marshmallow-enum 1.5.1 matplotlib 3.7.1 mdurl 0.1.2 mkl-fft 1.3.1 mkl-random 1.2.2 mkl-service 2.4.0 ml-dtypes 0.1.0 mpmath 1.3.0 msgpack 1.0.5 multidict 6.0.4 mypy-extensions 1.0.0 nest-asyncio 1.5.6 networkx 3.1 numexpr 2.8.4 numpy 1.23.5 oauthlib 3.2.2 openapi-schema-pydantic 1.2.4 opt-einsum 3.3.0 outcome 1.2.0 packaging 23.1 pandas 2.0.1 Pillow 9.5.0 pip 23.0.1 playwright 1.32.1 pluggy 1.0.0 protobuf 3.20.3 py 1.11.0 pyarrow 12.0.0 pyasn1 0.5.0 pyasn1-modules 0.3.0 pycparser 2.21 pydantic 1.10.7 pydeck 0.8.1b0 pyee 9.0.4 Pygments 2.15.1 Pympler 1.0.1 pyOpenSSL 23.0.0 pyparsing 3.0.9 pyrsistent 0.19.3 PySocks 1.7.1 pytest 7.3.1 pytest-base-url 2.0.0 pytest-playwright 0.3.3 python-dateutil 2.8.2 python-dotenv 1.0.0 python-slugify 8.0.1 pytorch-transformers 1.2.0 pytz 2023.3 pytz-deprecation-shim 0.1.0.post0 PyYAML 6.0 regex 2022.7.9 requests 2.29.0 requests-oauthlib 1.3.1 retry 0.9.2 rich 13.3.5 rsa 4.9 s3transfer 0.6.0 sacremoses 0.0.53 sacremoses 0.0.43 sacremoses 0.0.43 scipy 1.10.1 selenium 4.9.0 semantic-version 2.10.0 sentencepiece 0.1.99 setuptools 66.0.0 setuptools-rust 1.6.0 six 1.16.0 smmap 5.0.0 sniffio 1.3.0 sortedcontainers 2.4.0 soupsieve 2.4.1 SQLAlchemy 2.0.12 streamlit 1.22.0 streamlit-chat-media 0.0.4 sympy 1.11.1 tabulate 0.9.0 tenacity 8.2.2 tensorboard 2.12.3 tensorboard-data-server 0.7.0 tensorflow 2.12.0 tensorflow-estimator 2.12.0 tensorflow-intel 2.12.0 tensorflow-io-gcs-filesystem 0.31.0 termcolor 2.3.0 text-unidecode 1.3 tokenizers 0.13.3 toml 0.10.2 toolz 0.12.0 torch 2.0.0 tornado 6.3.1 tqdm 4.65.0 transformers 4.28.1 trio 0.22.0 trio-websocket 0.10.2 typing_extensions 4.5.0 typing-inspect 0.8.0 tzdata 2023.3 tzlocal 4.3 undetected-chromedriver 3.4.6 urllib3 1.26.15 validators 0.20.0 watchdog 3.0.0 websockets 11.0.2 Werkzeug 2.3.3 wheel 0.38.4 wikipedia 1.4.0 win-inet-pton 1.1.0 wrapt 1.14.1 wsproto 1.2.0 yarl 1.9.2 zipp 3.15.0
Pls check the Doker Installation for windows
Hello, thanks for making this but I've confronted some issues when I'm trying to give AUTOGPT an objective. Since I'm not well instructed in coding, I barely figured out that it's to do with my installation problem with Jax and transformers. But stuck at the moment. I double-checked that I installed transformers but still get the message and I'm not sure which version of Jax and Jaxlib should I go with and how should I install them.
I'm using Winx64 and Anaconda Prompt as a tool. and the messages after setting an objective follows:
Traceback (most recent call last): File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\jax_src\lib__init__.py", line 24, in
import jaxlib as jaxlib
ModuleNotFoundError: No module named 'jaxlib'
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\base_language.py", line 18, in _get_num_tokens_default_method from transformers import GPT2TokenizerFast File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\transformers__init.py", line 26, in
from . import dependency_versions_check
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\transformers\dependency_versions_check.py", line 17, in
from .utils.versions import require_version, require_version_core
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\transformers\utils__init.py", line 30, in
from .generic import (
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\transformers\utils\generic.py", line 33, in
import jax.numpy as jnp
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\jax\ init__.py", line 35, in
from jax import config as _config_module
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\jax\config.py", line 17, in
from jax._src.config import config # noqa: F401
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\jax_src\config.py", line 24, in
from jax._src import lib
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\jax_src\lib\ init__.py", line 26, in
raise ModuleNotFoundError(
ModuleNotFoundError: jax requires jaxlib to be installed. See https://github.com/google/jax#installation for installation instructions.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "AUTOGPT.py", line 219, in
agent.run([input("Enter the objective of the AI system: (Be realistic!) ")])
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\experimental\autonomous_agents\autogpt\agent.py", line 91, in run
assistant_reply = self.chain.run(
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\base.py", line 241, in run
return self(kwargs, callbacks=callbacks)[self.output_keys[0]]
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\base.py", line 142, in call
raise e
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\base.py", line 136, in call
self._call(inputs, run_manager=run_manager)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\llm.py", line 69, in _call
response = self.generate([inputs], run_manager=run_manager)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\llm.py", line 78, in generate prompts, stop = self.prep_prompts(input_list, run_manager=run_manager)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\chains\llm.py", line 106, in prep_prompts
prompt = self.prompt.format_prompt(selected_inputs)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\prompts\chat.py", line 127, in format_prompt
messages = self.format_messages(kwargs)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\experimental\autonomous_agents\autogpt\prompt.py", line 46, in format_messages
used_tokens = self.token_counter(base_prompt.content) + self.token_counter(
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\base_language.py", line 56, in get_num_tokens
return _get_num_tokens_default_method(text)
File "C:\Users\Christopher\anaconda3\envs\Christopher\lib\site-packages\langchain\base_language.py", line 20, in _get_num_tokens_default_method
raise ValueError(
ValueError: Could not import transformers python package. This is needed in order to calculate get_num_tokens. Please install it with
pip install transformers
.