pypy import clr在Windows上失败 [英] pypy import clr fails on Windows
本文介绍了pypy import clr在Windows上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Win10上使用 pypy
尝试了pythonnet.它构建良好,但随后无法 import clr
.崩溃发生在屏幕快照中的此调用之后.
I tried pythonnet with pypy
on Win10. It builds fine, but then fails to import clr
. The crash happens after this call in the screenshot.
有任何调试技巧/工具吗?
Any tips/tools for debugging this?
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.
推荐答案
这似乎是
This seems to be a known critical issue with pypy
.
我建议更新为 Python2.7
,因为 Python2.7
成为
I would suggest updating to Python3
as Python2.7
became unsupported from the beginning of 2020, even if this doesn't fix your issue.
这篇关于pypy import clr在Windows上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文