ûnyr no min
- A common university student
- Anime
- Python/C#/C++/Java
- Conlanger: Nihila
Plugin for Arknights gacha, support multi platform
License: GNU Affero General Public License v3.0
Linux
3.10.0
2.00
OneBot V11
05-18 11:13:28 [ERROR] nonebot | Failed to import "nonebot_plugin_arkgacha"
Traceback (most recent call last):
File "/home/fazer/NB2/my-bot/Pallas-Bot/bot.py", line 26, in
nonebot.load_from_toml("pyproject.toml")
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/load.py", line 125, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/load.py", line 62, in load_all_plugins
return manager.load_all_plugins()
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 175, in load_all_plugins
return set(
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 176, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
module = importlib.import_module(name)
File "/root/anaconda3/envs/NB2/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 240, in exec_module
super().exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot_plugin_arkgacha/init.py", line 42, in
gacha = ArknightsGacha(config.arkgacha_pool_file or get_data_file("arkgacha", "pool.json"))
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/arknights_toolkit/gacha/main.py", line 43, in init
asyncio.run(generate(self.file))
File "/root/anaconda3/envs/NB2/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/root/anaconda3/envs/NB2/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/arknights_toolkit/update/gacha.py", line 215, in generate
await fetch(table)
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/arknights_toolkit/update/gacha.py", line 122, in fetch
data = root1.xpath("//script[@id='data_operator']")[0].text.splitlines()
IndexError: list index out of range
启动时出现问题
No response
05-18 11:13:28 [ERROR] nonebot | Failed to import "nonebot_plugin_arkgacha"
Traceback (most recent call last):
File "/home/fazer/NB2/my-bot/Pallas-Bot/bot.py", line 26, in
nonebot.load_from_toml("pyproject.toml")
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/load.py", line 125, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/load.py", line 62, in load_all_plugins
return manager.load_all_plugins()
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 175, in load_all_plugins
return set(
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 176, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 141, in load_plugin
module = importlib.import_module(name)
File "/root/anaconda3/envs/NB2/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot/plugin/manager.py", line 240, in exec_module
super().exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/nonebot_plugin_arkgacha/init.py", line 42, in
gacha = ArknightsGacha(config.arkgacha_pool_file or get_data_file("arkgacha", "pool.json"))
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/arknights_toolkit/gacha/main.py", line 43, in init
asyncio.run(generate(self.file))
File "/root/anaconda3/envs/NB2/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/root/anaconda3/envs/NB2/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/arknights_toolkit/update/gacha.py", line 215, in generate
await fetch(table)
File "/root/anaconda3/envs/NB2/lib/python3.10/site-packages/arknights_toolkit/update/gacha.py", line 122, in fetch
data = root1.xpath("//script[@id='data_operator']")[0].text.splitlines()
IndexError: list index out of range
E:\nbsf\ww>nb plugin install nonebot-plugin-arkgacha
使用虚拟环境: E:\nbsf\ww.venv\Scripts\python.exe
WARNING: Ignoring invalid distribution -illow (e:\nbsf\ww.venv\lib\site-packages)
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement nonebot-plugin-arkgacha (from versions: none)
ERROR: No matching distribution found for nonebot-plugin-arkgacha
def need_init():
file = Path(__file__) / "resource" / "ops_initialized"
return not file.exists() or file.open('r', encoding='utf-8').read() != __version__
file应该是file = Path(__file__).parent / "resource" / "ops_initialized"
不然即使下载资源了也会因为need_init()检测没过而出来个critical导致nonebot2shutdown(另外是不是不该用critical
看了文档了(萌新)在windows系统下面不会使用初始化,启动出现错误
用cmd说找不到arkkit 这个命令
使用python提示语法错误
应该用什么命令行来初始化呢
希望加个自动初始化,对萌新非常友好qwq
有的时候群友同时发方舟十连
以至于结果混淆了
建议输出抽卡结果时回复发出指令者
建议输出抽卡结果时回复发出指令者
Linux
3.11.3
2.0.0rc4
Oebot v11 (版本不清楚)
FileNotFoundError: [Errno 2] No such file or directory: '/home/Neko/.cache/pypoetry/virtualenvs/zhenxun-bot-uIXH1-31-py3.11/lib/python3.11/site-packages/arknights_toolkit/resource/ops_initialized'
1.git clone https://github.com/RF-Tar-Railt/nonebot-plugin-arkgacha.git
2.pip install nonebot-plugin-arkgacha -U
3.启动Bot
希望能找到问题所在,多有劳烦,望见谅
例如
@driver.on_startup
async def _():
os.system("arkkit init")
比较懒所以不想手打指令
2023-05-13 19:49:09.975 | DEBUG | arknights_toolkit.update.main:fetch_image:144 - handle image of 阿米娅(近卫) ...
2023-05-13 19:49:09.999 | ERROR | arknights_toolkit.update.main:fetch_image:169 - failed to get image of 阿米娅(近卫): list index out of range
2023-05-13 19:49:09.999 | DEBUG | arknights_toolkit.update.main:fetch_image:144 - handle image of 阿米娅(近卫) ...
2023-05-13 19:49:10.020 | ERROR | arknights_toolkit.update.main:fetch_image:169 - failed to get image of 阿米娅(近卫): list index out of range
2023-05-13 19:49:10.021 | DEBUG | arknights_toolkit.update.main:fetch_image:144 - handle image of 阿米娅(近卫) ...
2023-05-13 19:49:10.041 | ERROR | arknights_toolkit.update.main:fetch_image:169 - failed to get image of 阿米娅(近卫): list index out of range
2023-05-13 19:49:10.041 | DEBUG | arknights_toolkit.update.main:fetch_image:144 - handle image of 阿米娅(近卫) ...
2023-05-13 19:49:10.063 | ERROR | arknights_toolkit.update.main:fetch_image:169 - failed to get image of 阿米娅(近卫): list index out of range
2023-05-13 19:49:10.063 | DEBUG | arknights_toolkit.update.main:fetch_image:144 - handle image of 阿米娅(近卫) ...
2023-05-13 19:49:10.084 | ERROR | arknights_toolkit.update.main:fetch_image:169 - failed to get image of 阿米娅(近卫): list index out of range
2023-05-13 19:49:10.084 | ERROR | arknights_toolkit.update.main:fetch_image:172 - failed to get image of 阿米娅(近卫) after 5 retries
2023-05-13 19:49:10.095 | SUCCESS | arknights_toolkit.update.main:fetch:274 - operator resources updated
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.