lgc-nb2dev / nonebot-plugin-cnrail Goto Github PK
View Code? Open in Web Editor NEW12306 列车时刻表查询插件
License: MIT License
12306 列车时刻表查询插件
License: MIT License
输入/列车信息 -h 会出现使用帮助
希望在直接输入/列车信息 后就可以输出帮助
这样能更容易了解插件用法
cnrail-data -> train.moefactory.com
由于时间紧缺,需要一定时间来完成
05-11 20:58:40 [ERROR] nonebot | Failed to import "nonebot_plugin_cnrail"
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\load.py", line 131, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\load.py", line 65, in load_all_plugins return manager.load_all_plugins()
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\manager.py", line 203, in load_all_plugins
return set(
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\manager.py", line 204, in <genexpr>
filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\manager.py", line 169, in load_plugin
module = importlib.import_module(self._searched_plugin_ids[name])
File "C:\Users\liuzj\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\plugin\manager.py", line 255, in exec_module
super().exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\liuzj\Documents\PaimonBot\src\plugins\nonebot_plugin_cnrail\__init__.py", line 6, in <module>
from . import __main__ as __main__ # noqa: E402
File "C:\Users\liuzj\Documents\PaimonBot\src\plugins\nonebot_plugin_cnrail\__main__.py", line 70, in <module>
async def _(matcher: AlconnaMatcher, res: CommandResult):
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot_plugin_alconna\matcher.py", line 432, in _decorator
cls.append_handler(func, parameterless=parameterless)
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 433, in append_handler
handler_ = Dependent[Any].parse(
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 157, in parse params = cls.parse_params(call, allow_types)
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 113, in parse_params
if field_info := allow_type._check_param(param, allow_types):
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot_plugin_orm\param.py", line 152, in _check_param
if models := generic_issubclass(pattern, type_annotation):
File "C:\Users\liuzj\Documents\PaimonBot\.venv\lib\site-packages\nonebot_plugin_orm\utils.py", line 151, in generic_issubclass
return issubclass(scls, cls)
File "C:\Users\liuzj\AppData\Local\Programs\Python\Python310\lib\abc.py", line 123, in __subclasscheck__
return _abc_subclasscheck(cls, subclass)
TypeError: issubclass() arg 1 must be a class
为什么安装不了
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.