IrnPython 调用python 程序 执行到  daima.Execute()  红色地方就出现错误,请求解决问题。

.NET IrnPython 调用python 程序 执行到 daima.Execute() 红色地方就出现 :“'module' object has no attribute 'WSTOPSIG'” 的错误,请求解决办法,谢谢大家了。

Python2.7程序:

from selenium import webdriver
b = webdriver.Chrome()
b.get('http://www.baidu.com')
VB.NET程序:

Imports IronPython.Hosting
Imports Microsoft.Scripting.Hosting

Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    Dim engine = Python.CreateEngine()
    Dim searchPaths = engine.GetSearchPaths()

    searchPaths.Add("C:\Python27\Lib")
    searchPaths.Add("C:\Python27\Lib\site-packages")
    engine.SetSearchPaths(searchPaths)
    Dim source As ScriptSource = engine.CreateScriptSourceFromFile("C:\hellopywin\hahapywin\pywin.py")
    Dim daima As CompiledCode = source.Compile()
    daima.Execute()             (执行到这行就出错了)

    Dim scope As ScriptScope = daima.DefaultScope.NET IrnPython 调用python 程序 执行到  daima.Execute()  红色地方就出现 :“'module' object has no attribute 'WSTOPSIG'” 的错误,请求解决办法,谢谢大家了。