infstellar/genshin_impact_assistant

PR #154 删除了 `installer_setup.py`, 导致源码安装失败

Closed this issue · 4 comments

如题 PR #154

此外, requirements.txt 里缺少了 cached-property 这个 package

在哪里使用了cached-property
(O_O;)

这里: source/map/detection/minimap.py。 我在启动的时候会报错,安装了 cached-property 就解决了

cached-property好像是uiautomator2的依赖?应该会自动安装的鸭

我用 johnnydep 跑了一下,不是 uiautomator2 或者 uiautomator2cache 的依赖:

$ johnnydep uiautomator2
name                                  summary
------------------------------------  -------------------------------------------------------------------------------------------------------
uiautomator2                          uiautomator for android device
├── Deprecated                        Python @deprecated decorator to deprecate old python classes, functions or methods.  
│   └── wrapt<2,>=1.10                Module for decorators, wrappers and monkey patching.
├── Pillow                            Python Imaging Library (Fork)
├── adbutils<3.0.0,>=2.5.0            Pure Python Adb Library
│   ├── Pillow                        Python Imaging Library (Fork)
│   ├── apkutils2<2.0,>=1.0.0         Utils for parsing apk.
│   │   ├── cigam                     magic
│   │   ├── pyelftools                Library for analyzing ELF files and DWARF debugging information
│   │   └── xmltodict                 Makes working with XML feel like you are working with JSON
│   ├── deprecation<3.0,>=2.0.6       A library to handle automated deprecations
│   │   ├── charset-normalizer<4,>=2  The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.
│   │   ├── idna<4,>=2.5              Internationalized Domain Names in Applications (IDNA)
│   │   └── urllib3<3,>=1.21.1        HTTP library with thread-safe connection pooling, file post, and more.
│   └── retry>=0.9                    Easy to use retry decorator.
│       ├── decorator>=3.4.2          Decorators for Humans
│       └── py<2.0.0,>=1.4.26         library with cross-python path, ini-parsing, io, code, log facilities
├── lxml                              Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
├── requests                          Python HTTP for Humans.
│   ├── certifi>=2017.4.17            Python package for providing Mozilla's CA Bundle.
│   ├── charset-normalizer<4,>=2      The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.
│   ├── idna<4,>=2.5                  Internationalized Domain Names in Applications (IDNA)
│   └── urllib3<3,>=1.21.1            HTTP library with thread-safe connection pooling, file post, and more.
└── retry<1,>=0                       Easy to use retry decorator.
    ├── decorator>=3.4.2              Decorators for Humans
    └── py<2.0.0,>=1.4.26             library with cross-python path, ini-parsing, io, code, log facilities

有可能是因为 python 版本的问题, 我用的是 python3.10. 我之前用 3.12 就因为奇奇怪怪的依赖问题安装失败了. 不过这种事情对于其他愿意源码安装的人来说不是问题,我就不在这个话题上耗费大佬的时间了orz