模块如下:
from tkinter import *
import tkinter
import datetime
import time
import win32clipboard
import tkinter.messagebox
在 xp 下 提示 无法定位程序输入点 Getfinalpathnamebyhandlew 于动态链接库 kernel32.dll
1
jeremaihloo 2016 年 8 月 4 日
这意思是说 XP 的 kernel32.dll 没有这个函数之类的?不懂,只知道 kernel32.dll 是 win32 的核心 dll ,帮顶
|
2
iVanilla 2016 年 8 月 4 日
用 Google 搜索 Getfinalpathnamebyhandlew 即可。
https://msdn.microsoft.com/en-us/library/windows/desktop/aa364962%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 https://mail.python.org/pipermail/python-dev/2015-July/140823.html Minimum supported client Windows Vista [desktop apps only] 所以说 XP 是不支持这个函数的,也就运行不了。 |
3
alittletrain OP @iVanilla 不支持哪个函数??在我的源码里吗?
|
4
iVanilla 2016 年 8 月 4 日
@alittletrain 就是 Getfinalpathnamebyhandlew 啊,这个是 Vista 加入的 API 。
|
5
alittletrain OP @iVanilla 那我的源代码怎么修改呢?
|
6
devzero 2016 年 8 月 4 日 via Android
同遇到这个情况,那么如何用 py2exe 打包才能在 xp 下运行?
|
7
alittletrain OP @devzero 我猜可以需要用 py2
|
8
iVanilla 2016 年 8 月 4 日
@alittletrain @devzero 你们用的最新版? Python3.5 不支持 XP ,需要 VIsta 以上系统。
|
9
alittletrain OP @iVanilla 我在 xp 下 用 2.7 打包后 提示 failed to execute script xxx
|
10
dowern 2016 年 8 月 4 日
前天遇上同样的问题, 最好的办法是开 XP 虚拟机, 安装 xp 对应 32 位或 64 位 python 和依赖包(和开发环境一致), 然后运行正常再打包, 基本就不会再出现这问题.
需要 Python3.4, 3.5 不支持 XP |
11
alittletrain OP @dowern 我用 xp python 2.7 32 位 但是打包后 提示 failed to execute script xxx
|
12
shanpower 2018 年 4 月 8 日 via Android
你解决了没
@alittletrain |
13
Manito 2019 年 8 月 14 日
单位办公电脑几乎都是 xp 系统,因为资料太多也不好升级,自己开发的程序无法运行,也是提示 无法定位程序输入点 Getfinalpathnamebyhandlew 于动态链接库 kernel32.dll ,求除了升级操作系统之外的解决办法。
|