Comments (16)
你没加代理?得改成你的地址吧
from nonebot_plugin_picsearcher.
@出来之后选择图源 再发图就是了
from nonebot_plugin_picsearcher.
@之后打选择图源?
from nonebot_plugin_picsearcher.
@之后机器会问的
from nonebot_plugin_picsearcher.
我的咋不问呢
from nonebot_plugin_picsearcher.
有截图吗我看看
from nonebot_plugin_picsearcher.
现在有反应了,但搜图有这个报错
Traceback (most recent call last):
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_picsearcher_init_.py", line 83, in get_setu
[msg if isinstance(msg, Message) else Message(msg) async for msg in get_des(url, mod)])
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_picsearcher_init_.py", line 83, in
[msg if isinstance(msg, Message) else Message(msg) async for msg in get_des(url, mod)])
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_picsearcher_init_.py", line 35, in get_des
async for msg in get_des_ex(url):
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_picsearcher\ex.py", line 99, in get_des
image_data: List[Tuple] = await get_pic_from_url(url)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_picsearcher\ex.py", line 74, in get_pic_from_url
async with session.post(target, data=data, headers=headers, proxy=proxy) as res:
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client.py", line 1138, in aenter
self._resp = await self._coro
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client.py", line 535, in _request
conn = await self._connector.connect(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 542, in connect
proto = await self._create_connection(req, traces, timeout)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 905, in _create_connection
_, proto = await self._create_proxy_connection(req, traces, timeout)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 1221, in _create_proxy_connection
proxy_req = ClientRequest(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client_reqrep.py", line 305, in init
self.update_host(url)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client_reqrep.py", line 366, in update_host
raise InvalidURL(url)
aiohttp.client_exceptions.InvalidURL: #%20type:%20str%20e.g.
from nonebot_plugin_picsearcher.
你发的不是图吧……url错误?
from nonebot_plugin_picsearcher.
不该啊,我从相册发的
from nonebot_plugin_picsearcher.
这个大概是代理问题,没访问到超时报错了
from nonebot_plugin_picsearcher.
要不把图给我看看(
from nonebot_plugin_picsearcher.
Traceback (most recent call last):
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\aiohttp\connector.py", line 986, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "c:\users\呱子\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 1025, in create_connection
raise exceptions[0]
File "c:\users\呱子\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 1010, in create_connection
sock = await self._connect_sock(
File "c:\users\呱子\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 924, in _connect_sock
await self.sock_connect(sock, address)
File "c:\users\呱子\appdata\local\programs\python\python38\lib\asyncio\proactor_events.py", line 702, in sock_connect
return await self._proactor.connect(sock, address)
File "c:\users\呱子\appdata\local\programs\python\python38\lib\asyncio\windows_events.py", line 812, in _poll
value = callback(transferred, key, ov)
File "c:\users\呱子\appdata\local\programs\python\python38\lib\asyncio\windows_events.py", line 599, in finish_connect
ov.getresult()
ConnectionRefusedError: [WinError 1225] 远程计算机拒绝网络连接。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\nonebot_plugin_picsearcher_init_.py", line 83, in get_setu
[msg if isinstance(msg, Message) else Message(msg) async for msg in get_des(url, mod)])
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\nonebot_plugin_picsearcher_init_.py", line 83, in
[msg if isinstance(msg, Message) else Message(msg) async for msg in get_des(url, mod)])
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\nonebot_plugin_picsearcher_init_.py", line 35, in get_des
async for msg in get_des_ex(url):
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\nonebot_plugin_picsearcher\ex.py", line 99, in get_des
image_data: List[Tuple] = await get_pic_from_url(url)
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\nonebot_plugin_picsearcher\ex.py", line 74, in get_pic_from_url
async with session.post(target, data=data, headers=headers, proxy=proxy) as res:
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\aiohttp\client.py", line 1138, in aenter
self._resp = await self._coro
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\aiohttp\client.py", line 535, in _request
conn = await self._connector.connect(
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\aiohttp\connector.py", line 542, in connect
proto = await self._create_connection(req, traces, timeout)
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\aiohttp\connector.py", line 905, in _create_connection
_, proto = await self._create_proxy_connection(req, traces, timeout)
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\aiohttp\connector.py", line 1231, in _create_proxy_connection
transport, proto = await self._create_direct_connection(
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\aiohttp\connector.py", line 1206, in _create_direct_connection
raise last_exc
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\aiohttp\connector.py", line 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "c:\users\呱子\appdata\local\programs\python\python38\lib\site-packages\aiohttp\connector.py", line 992, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientProxyConnectionError: Cannot connect to host 127.0.0.1:8889 ssl:default [远程计算机拒绝网络连接。]
我是这个报错
from nonebot_plugin_picsearcher.
大佬你好,我是纯小白一个,试着自己搭了一个bot和您的插件
dev的设置如下HOST=127.0.0.1
PORT=8080
SUPERUSERS=["512019302", "778688058"]
NICKNAME=["snake", "bot"] # 配置机器人的昵称
COMMAND_START=["/", ""] # 配置命令起始字符
COMMAND_SEP=["."] # 配置命令分割字符
Custom Configs
CUSTOM_CONFIG1="config in env file"
CUSTOM_CONFIG2= # 留空则从系统环境变量读取,如不存在则为空字符串
EX_COOKIE=XXXXX
PROXY=http://127.0.0.1:4780/ # type: str e.g. PROXY=http://127.0.0.1:8080/
SEARCH_LIMIT=2 # 搜索限制 防刷屏
RISK_CONTROL=true # 风控模式 启动后会使用合并转发 只有gocq有实现
RECORD_PRIORITY=99 # 记录上一张图片matcher的优先级,与 上一张 命令有关
然后是错误参数
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 969, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1089, in create_connection
transport, protocol = await self._create_connection_transport(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1119, in _create_connection_transport
await waiter
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 397, in _loop_writing
self._write_fut = self._loop._proactor.send(self._sock, data)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 534, in send
self._register_with_iocp(conn)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 723, in _register_with_iocp
_overlapped.CreateIoCompletionPort(obj.fileno(), self._iocp, 0, 0)
OSError: [WinError 87] 参数错误。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_picsearcher_init_.py", line 83, in get_setu
[msg if isinstance(msg, Message) else Message(msg) async for msg in get_des(url, mod)])
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_picsearcher_init_.py", line 83, in
[msg if isinstance(msg, Message) else Message(msg) async for msg in get_des(url, mod)])
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_picsearcher_init_.py", line 47, in get_des
async for msg in get_des_sau(url):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_picsearcher\saucenao.py", line 84, in get_des
image_data: List[Tuple] = await get_pic_from_url(url)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_picsearcher\saucenao.py", line 77, in get_pic_from_url
async with session.post("https://saucenao.com/search.php", data=data, headers=header, proxy=proxy) as res:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client.py", line 1117, in aenter
self._resp = await self._coro
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\client.py", line 520, in _request
conn = await self._connector.connect(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 535, in connect
proto = await self._create_connection(req, traces, timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 890, in _create_connection
_, proto = await self._create_proxy_connection(req, traces, timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 1139, in _create_proxy_connection
transport, proto = await self._wrap_create_connection(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\aiohttp\connector.py", line 975, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host saucenao.com:443 ssl:default [参数错误。]
我按照您的步骤和上网查找了问题,发现不知道如何解决,麻烦请您帮看一下,谢谢
from nonebot_plugin_picsearcher.
你这个真的有设置代理吗?没代理就不用写那个proxy
from nonebot_plugin_picsearcher.
你这个真的有设置代理吗?没代理就不用写那个代理
谢谢!我好像知道问题在哪了!
from nonebot_plugin_picsearcher.
谢谢大佬,是我代理的问题
from nonebot_plugin_picsearcher.
Related Issues (20)
- 搜索报错 HOT 3
- 关于插件图源选择问题 HOT 1
- 报错 HOT 2
- 莫名其妙的触发 HOT 4
- 转换CQ码错误 HOT 1
- trace搜图报错 HOT 1
- 刚接触nonebot 有些问题想请教一下 HOT 4
- 下载picsearcher后无法处理图片 HOT 1
- 在 nonebot2 项目中设置 load_plugin() HOT 2
- 装了几个插件要怎么设置才能响应搜图命令 HOT 1
- 使用EX搜图,返回的内容没有相关信息 HOT 4
- 经常出现某个源明明有原图出处但是显示无相似度高的结果 HOT 3
- PIP安装失败 HOT 3
- 搜图报错,actionfailed HOT 3
- 转换CQ码出现错误,trace报错 HOT 4
- ASCII2D搜图只会返回"找不到高相似度的""hso" HOT 1
- AttributeError: 'NoneType' object has no attribute 'SendGroupForwardMsgResult' HOT 1
- 群聊使用时,没有@也会被这是什么关键字调用 HOT 1
- 能否考虑增加yandex平台
- Connect call failed咋处理 HOT 2
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 nonebot_plugin_picsearcher.