-
Notifications
You must be signed in to change notification settings - Fork 137
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
window下无法启动成功 #60
Comments
不打包的时候能启动么 |
使用开发模式可以正常启动而且使用本地打包运行也是ok的。 |
开发模式能启动打包后也正常运行的话,那你上面的报错是在啥情况下出现的? |
使用0.2.7的release直接启动出现的。 |
发了一个新版:v0.2.8,看看还有没有报错。 |
看起来 和这两个 issue 都一样的: 你看看在你的 PowerShell 运行下面指令,看看你的 .net 是多少的版本
|
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full |
实在解决不了,还是和 pythonnet 和 .net 有关,太难搞了 |
对比了正常启动的机器, 里面对应的python版本与.net framework版本都是一样的。 |
孩子们,你们无法想象这是为什么,原因就是windows发觉这个dll文件来源于另外一个计算机,安全起见不让你用,所以事实上只需要右键dll文件属性解除锁定就行了 |
这个文件的位置就在 |
但同样的文件有些机器可以,有些不行,是因为window设置么?是什么设置? |
我说怎么老是复现不了,必须得换个电脑,估计还有安全策略不同也会有影响吧 |
问题我解决了 |
可能会考虑用安装包的方式提供给用户 |
不必了,看我最新的留言。。。。 |
我在 README 里加一下 |
Traceback (most recent call last):
File "main.py", line 210, in
File "main.py", line 206, in main
File "webview_init_.py", line 166, in start
File "webview\guilib.py", line 134, in initialize
File "webview\guilib.py", line 83, in try_import
File "webview\guilib.py", line 72, in import_winforms
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "webview\platforms\winforms.py", line 12, in
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "clr.py", line 6, in
File "pythonnet_init.py", line 143, in load
File "clr_loader\types.py", line 94, in get_function
File "clr_loader\types.py", line 58, in init
File "clr_loader\netfx.py", line 47, in _get_callable
RuntimeError: Failed to resolve Python.Runtime.Loader.Initialize from D:\vector-vein_internal\pythonnet\runtime\Python.Runtime.dll
本地的python 环境为3.11.9
The text was updated successfully, but these errors were encountered: