Giter Site home page Giter Site logo

lhcxautofishingpro's People

Contributors

sixone-jiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lhcxautofishingpro's Issues

这是怎么回事?

(lhcx) D:\LHCX>python main.py
ADB PATH >>>> D:/LHCX/adb/adb.exe
检测设备连接状态 >>> 127.0.0.1:7555 ...

设备列表:
127.0.0.1:7555 device

设备已连接

屏幕分辨率: Physical size: 1280x720
像素密度: Physical density: 240
系统类型: x86_64
系统版本: 6.0.1

第{0}轮钓鱼开始
WARNING:root:[Errno PIL.Image.open IOError] cannot identify image file <_io.BytesIO object at 0x0000012D7D893CE0>, retrying in 0.5 seconds...
WARNING:root:[Errno PIL.Image.open IOError] cannot identify image file <_io.BytesIO object at 0x0000012D7D893CE0>, retrying in 0.6 seconds...
WARNING:root:[Errno PIL.Image.open IOError] cannot identify image file <_io.BytesIO object at 0x0000012D0F2C5DF0>, retrying in 0.7 seconds...
WARNING:root:[Errno PIL.Image.open IOError] cannot identify image file <io.BytesIO object at 0x0000012D0F2C5DF0>, retrying in 0.7999999999999999 seconds...
Traceback (most recent call last):
File "D:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\uiautomator2_init
.py", line 946, in screenshot
return Image.open(buff).convert("RGB")
File "D:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\PIL\Image.py", line 3298, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x0000012D0F2C5DF0>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\LHCX\main.py", line 20, in
RunApi.run_fish(adb, d, baits_list)
File "D:\LHCX\bin\RunApi.py", line 33, in run_fish
StartFish.window_capture(d=d,filename=work_dir+'/temp_images/screen_fish.jpg',mumu_left=mumu_left,mumu_top=mumu_top) File "D:\LHCX\bin\StartFish.py", line 55, in window_capture
img = d.screenshot() # x,y,w,h
File "D:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "D:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\retry\api.py", line 73, in retry_decorator
return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
File "D:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\retry\api.py", line 33, in _retry_internal
return f()
File "D:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\uiautomator2_init
.py", line 952, in screenshot
raise IOError("PIL.Image.open IOError", ex)
OSError: [Errno PIL.Image.open IOError] cannot identify image file <_io.BytesIO object at 0x0000012D0F2C5DF0>

分辨率问题反馈

大佬你好,十分感谢你制作了这款自动化工具。我在使用过程中产生了一些问题,希望你能给我一些建议解决问题。
我在昨天开始使用你的程序。在第一次初始化时,我发现执行!~ conda activate lhcx 命令报错<系统无法找到路径>。我在D盘创造temp文件并修改了环境变量中temp和tmp的路径,指向D盘的temp文件。再次执行指令 conda activate lhcx ~及后续指令成功运行。运行开始钓鱼后出现<uiautomator可能出问题了,强制重启一下>。我重启了ATX中uiautomator,程序运行顺利。
但是,在我关闭一次电脑后,出现了钓鱼中出现让鱼跑掉的情况。附件中压缩的是我录制的bug复现录屏。我调整了代码中分辨率选项,调成720x1280。使代码可以在最新版本的mumu上运行。为了使问题更加明显,我删除了StartFish.py中注释:#print('向右运动')和#print('向左运动')中“#”,使可以清楚看到bug。
最后,由衷感谢大佬的贡献,希望能得到解决方案。
2024-02-07_10-56-20.zip

大佬这该怎么解决?

(lhcx) D:\LHCX\adb>python -m uiautomator2 init
Traceback (most recent call last):
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\packages_init_.py", line 27, in
from . import urllib3
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\packages\urllib3_init_.py", line 8, in
from .connectionpool import (
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 29, in
from .connection import (
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\packages\urllib3\connection.py", line 39, in
from .util.ssl_ import (
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\packages\urllib3\util_init_.py", line 3, in
from .connection import is_connection_dropped
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\packages\urllib3\util\connection.py", line 3, in
from .wait import wait_for_read
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\packages\urllib3\util\wait.py", line 1, in
from .selectors import (
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\packages\urllib3\util\selectors.py", line 14, in
from collections import namedtuple, Mapping
ImportError: cannot import name 'Mapping' from 'collections' (C:\Users\dell\miniconda3\envs\lhcx\lib\collections_init_.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\dell\miniconda3\envs\lhcx\lib\runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Users\dell\miniconda3\envs\lhcx\lib\runpy.py", line 146, in _get_module_details
return get_module_details(pkg_main_name, error)
File "C:\Users\dell\miniconda3\envs\lhcx\lib\runpy.py", line 110, in get_module_details
import(pkg_name)
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\uiautomator2_init
.py", line 40, in
import adbutils
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\adbutils_init
.py", line 14, in
from .device import AdbDevice, Sync
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\adbutils_device.py", line 31, in
import requests
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests_init
.py", line 60, in
from . import utils
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\utils.py", line 26, in
from .internal_utils import to_native_string
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests_internal_utils.py", line 11, in
from .compat import is_py2, builtin_str, str
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\compat.py", line 11, in
from .packages import chardet
File "C:\Users\dell\miniconda3\envs\lhcx\lib\site-packages\requests\packages_init
.py", line 29, in
import urllib3
ModuleNotFoundError: No module named 'urllib3'

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.