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

Pythonnet Bug: Failed to resolve Python.Runtime.Loader.Initialize #41

Open
helloimcx opened this issue Oct 11, 2023 · 5 comments
Open

Comments

@helloimcx
Copy link

helloimcx commented Oct 11, 2023

打开打包好的程序报错,已安装webview2运行时
image

@AndersonBY
Copy link
Owner

你是自己打包的嘛?Python版本多少?

@helloimcx
Copy link
Author

helloimcx commented Oct 11, 2023

你是自己打包的嘛?Python版本多少?

从Release下载的,自己尝试搭建环境开发(Conda环境,3.8,3.9,3.10,3.11都试过)也会报同样的错误

@AndersonBY
Copy link
Owner

我这边都是正常的,你看看你电脑是不是没有.NET运行时?从报错信息看是和pythonnet相关的问题,应该是.NET运行时之类的问题。

@helloimcx
Copy link
Author

安装了运行时还是一样
image

@AndersonBY
Copy link
Owner

你不打包直接 pdm run dev 是否能运行?
另外你看看是不是和这个 issue 有关:r0x0r/pywebview#1215

@AndersonBY AndersonBY changed the title Bug Pythonnet Bug: Failed to resolve Python.Runtime.Loader.Initialize Oct 12, 2023
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

2 participants