2017-02-10 21 views
14

पर विफल रहता है मैंने Win10 पर pythonnet के साथ pythonnet की कोशिश की। यह ठीक बनाता है, लेकिन फिर clr आयात करने में विफल रहता है। स्क्रीनशॉट में इस कॉल के बाद दुर्घटना होती है।pypy आयात 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. 

यहाँ मुद्दे के बारे में विस्तृत धागा है:

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

+0

तब आपका प्रश्न क्या है? – void

+0

इसे डीबग करने के लिए कोई सुझाव/उपकरण? – denfromufa

+0

मुझे लगता है कि यह एक बग –

उत्तर

0

मैं PyCharm साथ परीक्षण करने के लिए कोशिश करते हैं और स्थापित करने का परिणाम अच्छी तरह से काम कर रहा है। हो सकता है कि आपको अपने स्क्रीनशॉट द्वारा आईडीई शो के साथ समस्या हो।

Miniconda3\Scripts>pip install clr 
Collecting clr 
    Downloading clr-1.0.3-py2.py3-none-any.whl 
Installing collected packages: clr 
Successfully installed clr-1.0.3 

Miniconda3>python 
Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)] on win32 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import clr 
>>> dir(clr) 
['StyleBuilder', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__module__', '__name__', '__package__', '__path__', '__spec__', '_styles', 'black', 'blue', 'bold', 'cyan', 'dim', 'green', 'hidden', 'inverse', 'italic', 'key', 'light_black', 'light_blue', 'light_cyan', 'light_green', 'light_magenta', 'light_red', 'light_white', 'light_yellow', 'magenta', 'on_black', 'on_blue', 'on_cyan', 'on_green', 'on_light_black', 'on_light_blue', 'on_light_cyan', 'on_light_green', 'on_light_magenta', 'on_light_red', 'on_light_white', 'on_light_yellow', 'on_magenta', 'on_red', 'on_white', 'on_yellow', 'red', 'strikethrough', 'style_builder', 'sys', 'underline', 'value', 'white', 'yellow'] 
+0

क्या लगता है यह सीपीथन है, पीईपी – denfromufa

+0

क्षमा करें। मुझे यह नहीं दिख रहा है, क्लियर पायथन मॉड्यूल के साथ कोई समस्या नहीं है। –

संबंधित मुद्दे