
Error
整理代码执行过程遇到的各种Error
ChenDuBr
这个作者很懒,什么都没留下…
展开
-
ModuleNotFoundError: No module named ‘langchain.tools.python.tool‘
使用。原创 2024-03-10 11:07:03 · 1087 阅读 · 0 评论 -
TypeError: WikipediaQueryRun._run() got an unexpected keyword argument ‘search‘
Gemini api使用agent代理调用进行维基百科搜索时遇到报错:`TypeError: WikipediaQueryRun._run() got an unexpected keyword argument 'search'`原创 2024-03-07 20:17:45 · 417 阅读 · 1 评论 -
mkvirtualenv: command not found 问题
1、执行以下命令sudo pip install virtualenvsudo pip install virtualenvwrapper2、 找到virtualenvwrapper.sh所在的位置find / -name 'virtualenvwrapper.sh'3、修改bashrc文件vim .bashrc在文件末尾添加两行代码,保存退出export WORKON_HOME=~/.environmentssource /usr/share/virtualenvwrapper/v原创 2021-12-09 10:28:05 · 1870 阅读 · 0 评论 -
Failed building wheel for sentencepiece
【代码】Failed building wheel for sentencepiece。原创 2023-12-05 15:26:28 · 1069 阅读 · 0 评论 -
DefaultCredentialsError: Your default credentials were not found. To set up Application Default Cred
DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.原创 2024-03-06 09:59:11 · 2276 阅读 · 1 评论 -
Gemini api 报错 IndexError: list index out of range
经过查阅,是gemini内容过滤器将生成的内容过滤导致返回的内容为空,因此在安全设置中将过滤器禁止即可,在代码response请求时,添加 safety_settings。在使用Gemini api批量访问时报错 IndexError: list index out of range。原创 2024-03-03 20:24:27 · 436 阅读 · 0 评论 -
ValidationError: 2 validation errors for DocArrayDoc returned when try to execute the RAG Search Exa
ValidationError: 2 validation errors for DocArrayDoc原创 2024-03-06 10:19:03 · 525 阅读 · 1 评论 -
ImportError: cannot import name ‘URL’ from ‘sqlalchemy’
ImportError: cannot import name ‘URL’ from ‘sqlalchemy’原创 2024-03-06 10:25:04 · 1263 阅读 · 1 评论 -
python 使用 Crypto.PublicKey.RSA遇到的问题:from Crypto.PublicKey import RSA ModuleNotFoundError: No module
from Crypto.PublicKey import RSA ModuleNotFoundError: No module named ‘Crypto’解决方法:(1)安装pycryptodome库 pip install pycryptodome如果site-packages中存在crypto、pycrypto,在pip之前,需要pip uninstall crypto、pip uninstall pycrypto,否则无法安装成功。(2)安装完成后将site-packages中cr原创 2021-09-24 15:24:37 · 10369 阅读 · 0 评论 -
ValueError: ‘..../agent_toolkits‘ is not in the subpath of ‘/n the subpath of ‘/langchain_corre‘ OR
ValueError: '/home/dell/anaconda3/lib/python3.11/site-packages/langchain/agents/agent_toolkits' is not in the subpath of '/home/dell/anaconda3/lib/python3.11/site-packages/langchain_core' OR one path is relative and the other is absolute.原创 2024-03-07 10:23:01 · 669 阅读 · 1 评论