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

no module name win32gui #159

Open
itbsashi opened this issue Jun 4, 2024 · 18 comments
Open

no module name win32gui #159

itbsashi opened this issue Jun 4, 2024 · 18 comments
Labels
bug 错误 Something isn't working

Comments

@itbsashi
Copy link

itbsashi commented Jun 4, 2024

Getting the following error:
no module name win32gui

Tried restarting the GIA Launcher as mentioned in the FAQs but I'm still getting this error.

@hllshiro
Copy link

hllshiro commented Jun 10, 2024

+1,我也遇到了这个问题,并且根据说明重启了GIA,重启了电脑,都没能成功。

初步插排了一下:

  1. 检查lib,发现存在有pywin32模块。
  2. 根据CSDN的说明,说是需要手动安装,但是安装时因为本机没有python环境又安装不了(套娃呢)。
  3. GenshinImpactAssistant\toolkit\python\3.7.6_GIA_Launcher_Download_Lib\Scripts目录下执行pip install pywin32,重新启动后报错改变为psutil,重复之前的操作,然后又变成numpy

基于此,我怀疑是运行脚本的路径配置可能出了问题,因此检查了run.bat,然后没有发现问题😂。

个人对python开发确实不了解,等各位大佬来看吧。

@hllshiro
Copy link

试了下最新的v2.4.0-beta-1,问题依然存在;另外换了两台电脑测试,也遇到同样的问题🫤。

目前测试的三台机器全部都是win11系统,抽空再换个win10试试。

@hllshiro
Copy link

经测试,win10系统下确实可以正常启动🤣

@CourantEnCourant
Copy link

先放结论:我猜no module name win32gui的报错原因是在windows11下GIA launcher安装requirements.txt失败了。

以下是推理过程(描述得有点乱):

(以及新版本原神懒得更新,没法放截图,所以凭记忆描述...)
其实我在win11下有些类似的问题。然后我的电脑有一些奇怪的behavior:当我用非普通身份打开GIA launcher时会弹出一个terminal显示安装进度的log(就是用pip install xxx的那种log),但管理员身份就不会。然后我看了一看log发现全是error...但是在GIA launcher的log里不会显示某个package是否成功安装,安装无论成功与否进度条都会跑。我看了一眼terminal log猜是因为requirements.txt没有安装成功,这也解释了为什么win32gui的报错。

@infstellar
Copy link
Owner

先放结论:我猜no module name win32gui的报错原因是在windows11下GIA launcher安装requirements.txt失败了。

以下是推理过程(描述得有点乱):

(以及新版本原神懒得更新,没法放截图,所以凭记忆描述...) 其实我在win11下有些类似的问题。然后我的电脑有一些奇怪的behavior:当我用非普通身份打开GIA launcher时会弹出一个terminal显示安装进度的log(就是用pip install xxx的那种log),但管理员身份就不会。然后我看了一看log发现全是error...但是在GIA launcher的log里不会显示某个package是否成功安装,安装无论成功与否进度条都会跑。我看了一眼terminal log猜是因为requirements.txt没有安装成功,这也解释了为什么win32gui的报错。

能发一下win11下的日志吗,好新奇的报错

@infstellar infstellar added the bug 错误 Something isn't working label Jul 4, 2024
@TomIsFat
Copy link

windows10也有此问题,才使用PGPL-2.3装的最新版

@TomIsFat
Copy link

安装完报错win32gui未安装,看看存储占用情况
image

@infstellar
Copy link
Owner

安装完报错win32gui未安装,看看存储占用情况 image

发一下日志看看

@TomIsFat
Copy link

安装完报错win32gui未安装,看看存储占用情况 image

发一下日志看看

2024-07-16.log

@TomIsFat
Copy link

安装完报错win32gui未安装,看看存储占用情况 image

发一下日志看看

日志的前面是我没关代理,有一点报错;后面是成功装上了并启动了

@TomIsFat
Copy link

安装完报错win32gui未安装,看看存储占用情况 image

发一下日志看看

我自己看了日志,很可能是这个原因:

2024-07-16 18:01:47.258 | TRACE    | pgpl.utils:run_command:228 - Building wheel for PyQt5-sip (pyproject.toml): started
2024-07-16 18:01:47.553 | INFO     | pgpl.utils:run_command:219 - output: b"  Building wheel for PyQt5-sip (pyproject.toml): finished with status 'error'\r\n"
2024-07-16 18:01:47.556 | TRACE    | pgpl.utils:run_command:228 - Building wheel for PyQt5-sip (pyproject.toml): finished with status 'error'
2024-07-16 18:01:47.560 | INFO     | pgpl.utils:run_command:219 - output: b'Failed to build PyQt5-sip\r\n'
2024-07-16 18:01:47.563 | TRACE    | pgpl.utils:run_command:228 - Failed to build PyQt5-sip
2024-07-16 18:01:48.277 | INFO     | pgpl.utils:run_command:219 - output: b''
2024-07-16 18:01:48.279 | INFO     | pgpl.utils:run_command:219 - output: b''
2024-07-16 18:01:48.281 | INFO     | pgpl.utils:run_command:219 - output: b''
2024-07-16 18:01:48.283 | INFO     | pgpl.utils:execute:330 - [ failure ], error_code: 1 stdout:  stderr:   error: subprocess-exited-with-error

  

  Building wheel for PyQt5-sip (pyproject.toml) did not run successfully.

  exit code: 1

  

  [5 lines of output]

  running bdist_wheel

  running build

  running build_ext

  building 'PyQt5.sip' extension

  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

  [end of output]

  

  note: This error originates from a subprocess, and is likely not a problem with pip.

  ERROR: Failed building wheel for PyQt5-sip

ERROR: Could not build wheels for PyQt5-sip, which is required to install pyproject.toml-based projects

@1049731887
Copy link

怎么解决

@1049731887
Copy link

安装完报错win32gui未安装,看看存储占用情况 image

发一下日志看看

我自己看了日志,很可能是这个原因:

2024-07-16 18:01:47.258 | TRACE    | pgpl.utils:run_command:228 - Building wheel for PyQt5-sip (pyproject.toml): started
2024-07-16 18:01:47.553 | INFO     | pgpl.utils:run_command:219 - output: b"  Building wheel for PyQt5-sip (pyproject.toml): finished with status 'error'\r\n"
2024-07-16 18:01:47.556 | TRACE    | pgpl.utils:run_command:228 - Building wheel for PyQt5-sip (pyproject.toml): finished with status 'error'
2024-07-16 18:01:47.560 | INFO     | pgpl.utils:run_command:219 - output: b'Failed to build PyQt5-sip\r\n'
2024-07-16 18:01:47.563 | TRACE    | pgpl.utils:run_command:228 - Failed to build PyQt5-sip
2024-07-16 18:01:48.277 | INFO     | pgpl.utils:run_command:219 - output: b''
2024-07-16 18:01:48.279 | INFO     | pgpl.utils:run_command:219 - output: b''
2024-07-16 18:01:48.281 | INFO     | pgpl.utils:run_command:219 - output: b''
2024-07-16 18:01:48.283 | INFO     | pgpl.utils:execute:330 - [ failure ], error_code: 1 stdout:  stderr:   error: subprocess-exited-with-error

  

  Building wheel for PyQt5-sip (pyproject.toml) did not run successfully.

  exit code: 1

  

  [5 lines of output]

  running bdist_wheel

  running build

  running build_ext

  building 'PyQt5.sip' extension

  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

  [end of output]

  

  note: This error originates from a subprocess, and is likely not a problem with pip.

  ERROR: Failed building wheel for PyQt5-sip

ERROR: Could not build wheels for PyQt5-sip, which is required to install pyproject.toml-based projects

但是这个文件下不动,不知道是不是没魔法的问题

@infstellar
Copy link
Owner

infstellar commented Jul 16, 2024

@Inighty
Copy link

Inighty commented Jul 16, 2024

试一下用这个版本安装 @TomIsFat https://github.com/infstellar/python-git-program-launcher/releases/tag/v2.4.0.beta-2

我新旧都试过了
旧的报win32gui找不到
新的报FileNotFoundError: D:\PGPLC-0.2.0\python-git-program-launcher\repositories\GIA_Launcher_Download_Lib\assets/POI_JSON_API/LANGUAGE\en_US.json

新的本来报imgs_index.json找不到的 我自己手动放进去了 然后又报en_US.json找不到 这是全要手动放吗。。。

@TomIsFat
Copy link

试一下用这个版本安装 @TomIsFat https://github.com/infstellar/python-git-program-launcher/releases/tag/v2.4.0.beta-2

这个我也试过了,也不行
使用源码构建终于能够成功运行了

就是不知道是不是画面设置的有问题,人老是跑到别的地方去
比如刷秘境,一次都没成功过

@TomIsFat
Copy link

试一下用这个版本安装 @TomIsFat https://github.com/infstellar/python-git-program-launcher/releases/tag/v2.4.0.beta-2

这个我也试过了,也不行 使用源码构建终于能够成功运行了

就是不知道是不是画面设置的有问题,人老是跑到别的地方去 比如刷秘境,一次都没成功过

具体体现就是走路的时候镜头晃得太厉害了,完全无法走到目的地

@infstellar
Copy link
Owner

有日志吗 @TomIsFat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 错误 Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants