pypy在Windows上导入clr失败

34

我尝试在Win10上使用pypy运行pythonnet。它能够成功生成,但是在尝试import clr时崩溃了。根据截图,这个崩溃发生在这个调用后面。

有没有任何调试工具或者技巧可以解决这个问题呢?

enter image description here

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.

这里是有关此问题的详细讨论主题


我认为这是一个错误。 - bob marti
这个链接 https://bitbucket.org/pypy/pypy/issues/3117/fatal-rpython-error-when-importing-opencv 有帮助吗? - hongsy
看起来 https://bitbucket.org/pypy/pypy/issues/2486/ 在这里也是完全相同的事情! - hongsy
1个回答

2

这似乎是与 pypy 相关的一个已知的重要问题

我建议更新到 Python3,因为从 2020 年初开始 Python2.7 已经不受支持,即使这不能解决你的问题。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接