Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

源码运行后ModuleNotFoundError: No module named 'cached_property'怎么解决 #168

Open
qwe3123s opened this issue Jul 24, 2024 · 10 comments
Assignees

Comments

@qwe3123s
Copy link

D:\tools\genshin_pgpl\genshin_impact_assistant>python genshin_assistant.py
zh_CN
python "D:\tools\genshin_pgpl\genshin_impact_assistant/source/msgfmt.py" -o "D:\tools\genshin_pgpl\genshin_impact_assistant\translation/locale\zh_CN\LC_MESSAGES\zh_CN.mo" "D:\tools\genshin_pgpl\genshin_impact_assistant\translation/locale\zh_CN\LC_MESSAGES\zh_CN.po"
sha-1 verify cost: 0.3352377414703369
2024-07-24 20:35:23.798 | INFO | source.interaction.interaction_core:init:78 - InteractionBGD created
Traceback (most recent call last):
File "D:\tools\genshin_pgpl\genshin_impact_assistant\genshin_assistant.py", line 20, in
from source.webio import webio
File "D:\tools\genshin_pgpl\genshin_impact_assistant\source\webio\webio.py", line 12, in
from source.webio.webpages.collector_settings import CollectorSettingPage
File "D:\tools\genshin_pgpl\genshin_impact_assistant\source\webio\webpages\collector_settings.py", line 6, in
from source.funclib import collector_lib
File "D:\tools\genshin_pgpl\genshin_impact_assistant\source\funclib\collector_lib.py", line 160, in
from source.map.extractor.reader import PoiJsonApi, PointInfoModel
File "D:\tools\genshin_pgpl\genshin_impact_assistant\source\map\extractor\reader.py", line 4, in
from cached_property import cached_property
ModuleNotFoundError: No module named 'cached_property'

D:\tools\genshin_pgpl\genshin_impact_assistant>

@qwe3123s
Copy link
Author

我用快速启动是
Traceback (most recent call last):
File "genshin_assistant.py", line 6, in
import source.util
File "D:\tools\genshin_pgpl\PGPL-2.4.0\repositories\GIA_Launcher_Download_Lib\source\util.py", line 3, in
import win32gui, win32process, psutil, ctypes, pickle, traceback
ModuleNotFoundError: No module named 'win32gui'
请按任意键继续. . .

@infstellar
Copy link
Owner

快速启动的PGPL版本是多少?发一下日志康康
源码安装的话,python版本是多少?

@infstellar infstellar self-assigned this Jul 24, 2024
@qwe3123s
Copy link
Author

快速启动的PGPL版本是多少?发一下日志康康 源码安装的话,python版本是多少?
2024-07-24.log

PGPL版本是2.4.0
py我最开始没有安装3.7.6,电脑里面有3.10的版本。后面我又安装的3.7.6,前后都是上面那个情况

@qwe3123s
Copy link
Author

快速启动的PGPL版本是多少?发一下日志康康 源码安装的话,python版本是多少?
2024-07-24.log

PGPL版本是2.4.0 py我最开始没有安装3.7.6,电脑里面有3.10的版本。后面我又安装的3.7.6,前后都是上面那个情况
2024-07-24.log

源码的log

@infstellar
Copy link
Owner

是不是开代理了

@infstellar
Copy link
Owner

然后python版本要3.7.6,不然requirements会装不上,还要记得克隆子模块

@Pevernow
Copy link

Pevernow commented Aug 5, 2024

同一个问题。。。

@Pevernow
Copy link

Pevernow commented Aug 6, 2024

D:\tools\genshin_pgpl\genshin_impact_assistant>python genshin_assistant.py zh_CN python "D:\tools\genshin_pgpl\genshin_impact_assistant/source/msgfmt.py" -o "D:\tools\genshin_pgpl\genshin_impact_assistant\translation/locale\zh_CN\LC_MESSAGES\zh_CN.mo" "D:\tools\genshin_pgpl\genshin_impact_assistant\translation/locale\zh_CN\LC_MESSAGES\zh_CN.po" sha-1 verify cost: 0.3352377414703369 2024-07-24 20:35:23.798 | INFO | source.interaction.interaction_core:init:78 - InteractionBGD created Traceback (most recent call last): File "D:\tools\genshin_pgpl\genshin_impact_assistant\genshin_assistant.py", line 20, in from source.webio import webio File "D:\tools\genshin_pgpl\genshin_impact_assistant\source\webio\webio.py", line 12, in from source.webio.webpages.collector_settings import CollectorSettingPage File "D:\tools\genshin_pgpl\genshin_impact_assistant\source\webio\webpages\collector_settings.py", line 6, in from source.funclib import collector_lib File "D:\tools\genshin_pgpl\genshin_impact_assistant\source\funclib\collector_lib.py", line 160, in from source.map.extractor.reader import PoiJsonApi, PointInfoModel File "D:\tools\genshin_pgpl\genshin_impact_assistant\source\map\extractor\reader.py", line 4, in from cached_property import cached_property ModuleNotFoundError: No module named 'cached_property'

D:\tools\genshin_pgpl\genshin_impact_assistant>

缺两个依赖给我自己试出来了
pip install numpy==1.22.4
pip install cached-property

@infstellar
Copy link
Owner

你的Python版本是多少 @Pevernow

@Pevernow
Copy link

Pevernow commented Aug 6, 2024

你的Python版本是多少 @Pevernow

3.10.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants