pypy import clr在Windows上失败

den*_*ufa 22 .net python windows pypy python.net

我在Win10上尝试了pythonnet和pypy.它构建良好,但然后无法导入clr.在屏幕截图中的此调用之后发生崩溃.

调试这个的任何提示/工具?

在此输入图像描述

pypy
Python 2.7.12 (aff251e54385, Nov 09 2016, 17:54:55)
[PyPy 5.6.0 with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>> import clr
Attempting to load 'Python.Runtime' using standard binding rules.
'Python.Runtime' not found using standard binding rules.
Attempting to load Python.Runtime from: 'C:\Python\pypy2-v5.6.0-win32\site-packages\Python.Runtime.dll'.
Success loading 'Python.Runtime' from: 'C:\Python\pypy2-v5.6.0-win32\site-packages\Python.Runtime.dll'.
RPython traceback:
  File "pypy_module_cpyext_2.c", line 26114, in type_realize
  File "pypy_module_cpyext_2.c", line 31744, in _type_realize
Fatal RPython error: AssertionError

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Run Code Online (Sandbox Code Playgroud)

以下是有关该问题的详细主题:

https://github.com/pythonnet/pythonnet/issues/330

小智 2

这似乎是一个已知的关键问题pypy

我建议更新到从 2020 年初Python3Python2.7不再支持的版本,即使这不能解决您的问题。