lancercmd / nonebot_plugin_translator Goto Github PK
View Code? Open in Web Editor NEW基于 nonebot / nonebot2
License: GNU General Public License v3.0
基于 nonebot / nonebot2
License: GNU General Public License v3.0
就是对已经存在的上文消息回复翻译命令进行翻译
[ERROR]: Protocol -> panic on decoder MessageSvc.PushNotify : runtime error: index out of range [256] with length 256
goroutine 5672 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x65
github.com/Mrs4s/MiraiGo/client.(*QQClient).netLoop.func1.1()
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/client/network.go:326 +0x5d
panic({0x134d500, 0xc0006222a0})
runtime/panic.go:1038 +0x215
github.com/Mrs4s/MiraiGo/binary/jce.(*JceReader).peakHead(...)
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/binary/jce/reader.go:31
github.com/Mrs4s/MiraiGo/binary/jce.(*JceReader).readHead(...)
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/binary/jce/reader.go:25
github.com/Mrs4s/MiraiGo/binary/jce.(*JceReader).skipToStructEnd(0xc000245e00)
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/binary/jce/reader.go:162 +0xd7
github.com/Mrs4s/MiraiGo/binary/jce.(*JceReader).skipField(0xc000245e00, 0x4)
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/binary/jce/reader.go:84 +0x24d
github.com/Mrs4s/MiraiGo/binary/jce.(*JceReader).skipToStructEnd(0xc000245e00)
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/binary/jce/reader.go:161 +0x7e
github.com/Mrs4s/MiraiGo/binary/jce.(*JceReader).skipField(0xc000245e00, 0x20)
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/binary/jce/reader.go:84 +0x24d
github.com/Mrs4s/MiraiGo/binary/jce.(*JceReader).skipToTag(0xc000245e00, 0x1)
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/binary/jce/reader.go:152 +0xcb
github.com/Mrs4s/MiraiGo/binary/jce.(*JceReader).ReadInt16(0xc000245e00, 0x147)
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/binary/jce/reader.go:186 +0x25
github.com/Mrs4s/MiraiGo/binary/jce.(*RequestPacket).ReadFrom(0xc000245e80, 0x176)
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/binary/jce/structs.go:549 +0x2f
github.com/Mrs4s/MiraiGo/client.decodeSvcNotify(0xc000082800, 0x100, {0xc000082800, 0x15, 0x12})
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/client/decoders.go:388 +0xbb
github.com/Mrs4s/MiraiGo/client.(*QQClient).netLoop.func1(0xc000384780)
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/client/network.go:336 +0x1cb
created by github.com/Mrs4s/MiraiGo/client.(*QQClient).netLoop
github.com/Mrs4s/MiraiGo@v0.0.0-20211208080234-25c67a3ee1c1/client/network.go:323 +0x6c5
Error appear after:
bot 7:00:49 PM
请选择输入语种,可选值如下~
zh | zh-TW | en | ja | ko | fr | es | it | de | tr | ru | pt | vi | id | th | ms | ar | hi
me 7:00:54 PM
en
bot 7:00:54 PM
请选择目标语种,可选值如下~
zh | ja | ko | fr | es | it | de | tr | ru | pt | vi | id | th | ms | ar | hi
me 7:00:57 PM
zh
08-10 16:12:02 [ERROR] nonebot | Failed to import "nonebot_plugin_translator"
Traceback (most recent call last):
File "D:\Anaconda3\envs\py38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\Anaconda3\envs\py38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\Anaconda3\envs\py38\Scripts\nb.exe\__main__.py", line 7, in <module>
sys.exit(main())
File "D:\Anaconda3\envs\py38\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "D:\Anaconda3\envs\py38\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "D:\Anaconda3\envs\py38\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "D:\Anaconda3\envs\py38\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\Anaconda3\envs\py38\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "D:\Anaconda3\envs\py38\lib\site-packages\nb_cli\commands\main.py", line 30, in run
run_bot(file, app)
File "D:\Anaconda3\envs\py38\lib\site-packages\nb_cli\handlers\deploy.py", line 20, in run_bot
module = importlib.import_module(module_name)
File "D:\Anaconda3\envs\py38\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "E:\python-pro\NoneBot2\test1\.\bot.py", line 24, in <module>
nonebot.load_plugin("nonebot_plugin_translator")
File "D:\Anaconda3\envs\py38\lib\site-packages\nonebot\plugin\load.py", line 28, in load_plugin
return manager.load_plugin(module_path)
> File "D:\Anaconda3\envs\py38\lib\site-packages\nonebot\plugin\manager.py", line 144, in load_plugin
module = importlib.import_module(name)
File "D:\Anaconda3\envs\py38\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "D:\Anaconda3\envs\py38\lib\site-packages\nonebot\plugin\manager.py", line 237, in exec_module
super().exec_module(module)
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "D:\Anaconda3\envs\py38\lib\site-packages\nonebot_plugin_translator\__init__.py", line 21, in <module>
from nonebot.adapters.cqhttp.event import (GroupMessageEvent, MessageEvent,
ModuleNotFoundError: No module named 'nonebot.adapters.cqhttp.event'
我是前几天刚买的云服务器,安装的OpenSSL是1.1.1版本,安装完这个插件,输入要翻译的内容后就报错,如下图所示:
然后找到了这篇文章解决了问题:【Python】解决SSL certificate problem unable to get local issuer certificate,如果你在验证主机是否能成功连接到kaiheila.cn(kookapp.cn) 并认证ssl证书的时候也失败了,不用管,直接按下面的解决方法做就行了。(我就是这样的)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.