Code Monkey home page Code Monkey logo

Comments (5)

H-K-Y avatar H-K-Y commented on May 30, 2024

发一下下载时的报错日志

from genshin_impact_bot.

joshefi avatar joshefi commented on May 30, 2024

[2021-10-04 11:34:45,200 nonebot] ERROR: Failed to import "hoshino.modules.Genshin_Impact_bot.gacha", error: No module named 'loguru'
[2021-10-04 11:34:45,200 nonebot] ERROR: No module named 'loguru'

[2021-10-04 11:34:45,204 nonebot] INFO: Succeeded to import "hoshino.modules.Genshin_Impact_bot.almanac"
[2021-10-04 11:34:45,205 nonebot] ERROR: Failed to import "hoshino.modules.Genshin_Impact_bot.query_resource_points", error: No module named 'loguru'
[2021-10-04 11:34:45,205 nonebot] ERROR: No module named 'loguru'

from genshin_impact_bot.

joshefi avatar joshefi commented on May 30, 2024

[2021-10-04 11:41:20,556 nonebot] ERROR: Failed to import "hoshino.modules.shebot.conhead", error: No module named 'cv2'
[2021-10-04 11:41:20,556 nonebot] ERROR: No module named 'cv2'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/nonebot/plugin.py", line 263, in load_plugin
module = importlib.import_module(module_path)
File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/yuanshenbot/hoshino/modules/shebot/conhead/init.py", line 17, in
from .opencv import add
File "/root/yuanshenbot/hoshino/modules/shebot/conhead/opencv.py", line 4, in
import cv2
ModuleNotFoundError: No module named 'cv2'
[2021-10-04 11:41:20,635 hoshino] ERROR: 缺少图片资源:/root/yuanshenbot/res/img/priconne/gadget/equip.png
[2021-10-04 11:41:20,635 chara] ERROR: [Errno 2] No such file or directory: '/root/yuanshenbot/res/img/priconne/gadget/equip.png'
Traceback (most recent call last):
File "/root/yuanshenbot/hoshino/modules/priconne/chara.py", line 28, in
gadget_equip = R.img('priconne/gadget/equip.png').open()
File "/root/yuanshenbot/hoshino/R.py", line 50, in open
return Image.open(self.path)
File "/usr/local/lib/python3.8/site-packages/PIL/Image.py", line 2968, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/root/yuanshenbot/res/img/priconne/gadget/equip.png'
[2021-10-04 11:41:20,661 hoshino] ERROR: 缺少图片资源:/root/yuanshenbot/res/img/priconne/gadget/thumb-up-i.png
[2021-10-04 11:41:20,661 pcr-arena] ERROR: [Errno 2] No such file or directory: '/root/yuanshenbot/res/img/priconne/gadget/thumb-up-i.png'
Traceback (most recent call last):
File "/root/yuanshenbot/hoshino/modules/priconne/arena/init.py", line 31, in
thumb_up_i = R.img('priconne/gadget/thumb-up-i.png').open().resize((16, 16), Image.LANCZOS)
File "/root/yuanshenbot/hoshino/R.py", line 50, in open
return Image.open(self.path)
File "/usr/local/lib/python3.8/site-packages/PIL/Image.py", line 2968, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/root/yuanshenbot/res/img/priconne/gadget/thumb-up-i.png'
[2021-10-04 11:41:20,677 nonebot] ERROR: Failed to import "hoshino.modules.Genshin_Impact_bot.gacha", error: No module named 'loguru'
[2021-10-04 11:41:20,677 nonebot] ERROR: No module named 'loguru'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/nonebot/plugin.py", line 263, in load_plugin
module = importlib.import_module(module_path)
File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/yuanshenbot/hoshino/modules/Genshin_Impact_bot/gacha/init.py", line 2, in
from .gacha import gacha_info , FILE_PATH , Gacha , POOL
File "/root/yuanshenbot/hoshino/modules/Genshin_Impact_bot/gacha/gacha.py", line 3, in
from .pool_data import POOL ,UP_PROBABILITY,POOL_PROBABILITY,DISTANCE_FREQUENCY
File "/root/yuanshenbot/hoshino/modules/Genshin_Impact_bot/gacha/pool_data.py", line 3, in
from loguru import logger
ModuleNotFoundError: No module named 'loguru'
[2021-10-04 11:41:20,682 nonebot] ERROR: Failed to import "hoshino.modules.Genshin_Impact_bot.query_resource_points", error: No module named 'loguru'
[2021-10-04 11:41:20,682 nonebot] ERROR: No module named 'loguru'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/nonebot/plugin.py", line 263, in load_plugin
module = importlib.import_module(module_path)
File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/root/yuanshenbot/hoshino/modules/Genshin_Impact_bot/query_resource_points/init.py", line 3, in
from .query_resource_points import get_resource_map_mes,get_resource_list_mes,init_point_list_and_map
File "/root/yuanshenbot/hoshino/modules/Genshin_Impact_bot/query_resource_points/query_resource_points.py", line 4, in
from loguru import logger
ModuleNotFoundError: No module named 'loguru'

from genshin_impact_bot.

1shin-7 avatar 1shin-7 commented on May 30, 2024

[2021-10-04 11:41:20,635 hoshino] ERROR: 缺少图片资源:/root/yuanshenbot/res/img/priconne/gadget/equip.png
[2021-10-04 11:41:20,635 chara] ERROR: [Errno 2] No such file or directory: '/root/yuanshenbot/res/img/priconne/gadget/equip.png'

这个报错,你看路径/root/yuanshenbot/res/img/priconne/gadget/equip.png和本项目路径/root/yuanshenbot/hoshino/modules/Genshin_Impact_bot/并非同一个....

从以上报错信息建议您运行此命令:

pip install loguru opencv-python

from genshin_impact_bot.

joshefi avatar joshefi commented on May 30, 2024

Thanks a lot.我成功解决了此问题

from genshin_impact_bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.