Comments (5)
提示没有安装openai,需要安装一下:
pip3 install openai==0.25.0
注意要安装在启动这个项目的Python下
from chatgpt-on-wechat.
我记得装了openai,重新装了一下,个人聊天正常了,微信群里怎么使用这个ai?加bot前缀使用不了。。。还有就是报错。不知道是哪的问题,看样子是python的问题,这个是依赖没装还是版本有问题。
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 710, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.7/http/client.py", line 1352, in getresponse
response.begin()
File "/usr/lib/python3.7/http/client.py", line 310, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 279, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 499, in send
timeout=timeout,
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 788, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.7/dist-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 710, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.7/http/client.py", line 1352, in getresponse
response.begin()
File "/usr/lib/python3.7/http/client.py", line 310, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 279, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/itchat/components/login.py", line 294, in maintain_loop
msgList, contactList = self.get_msg()
File "/usr/local/lib/python3.7/dist-packages/itchat/components/login.py", line 382, in get_msg
headers=headers, timeout=config.TIMEOUT)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 547, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
from chatgpt-on-wechat.
我记得装了openai,重新装了一下,个人聊天正常了,微信群里怎么使用这个ai?加bot前缀使用不了。。。还有就是报错。不知道是哪的问题,看样子是python的问题,这个是依赖没装还是版本有问题。 Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 710, in urlopen chunked=chunked, File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.7/http/client.py", line 1352, in getresponse response.begin() File "/usr/lib/python3.7/http/client.py", line 310, in begin version, status, reason = self._read_status() File "/usr/lib/python3.7/http/client.py", line 279, in _read_status raise RemoteDisconnected("Remote end closed connection without" http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 499, in send timeout=timeout, File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 788, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/usr/local/lib/python3.7/dist-packages/urllib3/util/retry.py", line 550, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.7/dist-packages/urllib3/packages/six.py", line 769, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 710, in urlopen chunked=chunked, File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 449, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 444, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.7/http/client.py", line 1352, in getresponse response.begin() File "/usr/lib/python3.7/http/client.py", line 310, in begin version, status, reason = self._read_status() File "/usr/lib/python3.7/http/client.py", line 279, in _read_status raise RemoteDisconnected("Remote end closed connection without" urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/itchat/components/login.py", line 294, in maintain_loop msgList, contactList = self.get_msg() File "/usr/local/lib/python3.7/dist-packages/itchat/components/login.py", line 382, in get_msg headers=headers, timeout=config.TIMEOUT) File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 635, in post return self.request("POST", url, data=data, json=json, **kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 547, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
群聊天只要被艾特就会自动回复;另外加@bot前缀也能触发,对应的配置是group_chat_prefix, 可以修改。
这个报错应该是网络通信有些不稳定,如果不影响正常运行的话可以不用管
from chatgpt-on-wechat.
用后台运行,用一会就用不了了,看了一下nohup.out提示
IndexError: tuple index out of range
LOG OUT!
这个怎么解决。。。。怎么守护一下进程。
from chatgpt-on-wechat.
用后台运行,用一会就用不了了,看了一下nohup.out提示 IndexError: tuple index out of range
LOG OUT! 这个怎么解决。。。。怎么守护一下进程。
see #21
from chatgpt-on-wechat.
Related Issues (20)
- 无法调用智谱ai
- 自动通过好友之后怎么设置固定消息 HOT 2
- 飞书无法识别图片的类别
- 最新版Docker无法正常运行 HOT 4
- gpt-4o提示不存在 HOT 6
- 可以支持百川大模型吗? HOT 1
- 群聊场景下机器人无法识别聊天主体 HOT 1
- 语音回复 HOT 1
- GPT-4o返回的图片是webp格式,微信端无法正确显示,需要进行格式转化优化。 HOT 2
- 项目的docker方式存在一个必定卡死的BUG HOT 1
- 开发大佬们,项目有没有办法获取本地时间并能与提示词提交给大模型 HOT 2
- 服务时间限制代码的逻辑问题 HOT 1
- COW 是否有支持的英文插件,回复英文信息的,如果有是否可以提供一下,感谢。 HOT 1
- 微信扫码登录错误 HOT 6
- tag:1.6.5,model填: gpt-4o,无法使用 HOT 1
- 目前gpt返回的内容有可能出现markdown标签,是否能做个插件过滤处理掉这些markdown格式呢 HOT 1
- ollama做api后端 HOT 4
- 大佬,请问我在调用 fastgpt的时候,在回复的内容里面是含有图片的,请问如何在 cow 里面修改微信回复的时候,首先发送文本处理内容,然后发送相关的图片,谢谢 HOT 1
- [finish.py:23] - [Finish] inited 然后就一直卡在这里,不动了。 HOT 3
- 可以支持WhatsApp吗 HOT 1
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 chatgpt-on-wechat.