The Python Wrapper don't work in dynamo 2.3

Hi Guy!
I had updated my Revit to 2020.2 and the dynamo to 2.3.0.7661.
When I’m trying to debug any code in dynamo I receive a message of error. In the picture above, you can see the error, for a simples test, I’m using the example of this link:
https://revitpythonwrapper.readthedocs.io/en/latest/installation.html#dynamo

code:

>>> # USe RPW_GetFilePath to find Rpw's path and plugged it into IN[0]
>>> # or append path manually
>>> import sys
>>> rpw_path = IN[0]  # IN[0] is a path to rpw.zip or the parent folder where rpw is located
>>> sys.path.append(rpw_path)
>>> from rpw import db, ui
>>> walls = db.Collector(of_class='Wall').elements
>>> ui.forms.Alert('Found {} walls'.format(len(walls)))

error:

Aviso: IronPythonEvaluator. Falha na operação EvaluateIronPythonScript.
Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "C:\Users\jocaz\AppData\Roaming\Dynamo\Dynamo Revit\2.3\packages\RevitPythonWrapper\extra\rpw.zip\rpw\__init__.py", line 36, in <module>
  File "C:\Users\jocaz\AppData\Roaming\Dynamo\Dynamo Revit\2.3\packages\RevitPythonWrapper\extra\rpw.zip\rpw\db\__init__.py", line 19, in <module>
  File "C:\Users\jocaz\AppData\Roaming\Dynamo\Dynamo Revit\2.3\packages\RevitPythonWrapper\extra\rpw.zip\rpw\db\view.py", line 10, in <module>
  File "C:\Users\jocaz\AppData\Roaming\Dynamo\Dynamo Revit\2.3\packages\RevitPythonWrapper\extra\rpw.zip\rpw\db\collector.py", line 35, in <module>
  File "C:\Users\jocaz\AppData\Roaming\Dynamo\Dynamo Revit\2.3\packages\RevitPythonWrapper\extra\rpw.zip\rpw\ui\__init__.py", line 1, in <module>
  File "C:\Users\jocaz\AppData\Roaming\Dynamo\Dynamo Revit\2.3\packages\RevitPythonWrapper\extra\rpw.zip\rpw\ui\forms\__init__.py", line 12, in <module>
  File "C:\Users\jocaz\AppData\Roaming\Dynamo\Dynamo Revit\2.3\packages\RevitPythonWrapper\extra\rpw.zip\rpw\ui\forms\flexform.py", line 6, in <module>
  File "C:\Users\jocaz\AppData\Roaming\Dynamo\Dynamo Revit\2.3\packages\RevitPythonWrapper\extra\rpw.zip\rpw\ui\forms\resources.py", line 40, in <module>
IOError: System.IO.IOException: file does not exist: C:\Program Files (x86)\IronPython 2.7\Platforms\Net40\IronPython.Wpf.dll
   em IronPython.Runtime.ClrModule.AddReferenceToFileAndPath(CodeContext context, String file)
   em IronPython.Runtime.ClrModule.AddReferenceToFileAndPath(CodeContext context, String[] files)
   em Microsoft.Scripting.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em IronPython.Compiler.Ast.CallExpression.Invoke1Instruction.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   em IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   em IronPython.Runtime.ZipImportModule.zipimporter.load_module(CodeContext context, String fullname)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em IronPython.Runtime.PythonContext.Call(CodeContext context, Object func, Object arg0)
   em IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)
   em IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)
   em IronPython.Runtime.Importer.ImportNestedModule(CodeContext context, PythonModule module, String[] parts, Int32 current, List path)
   em IronPython.Runtime.Importer.ImportModuleFrom(CodeContext context, Object from, String[] parts, Int32 current)
   em IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)
   em IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)
   em IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)
   em IronPython.Runtime.Operations.PythonOps.ImportStar(CodeContext context, String fullName, Int32 level)
   em Microsoft.Scripting.Interpreter.ActionCallInstruction`3.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   em IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   em IronPython.Runtime.ZipImportModule.zipimporter.load_module(CodeContext context, String fullname)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em IronPython.Runtime.PythonContext.Call(CodeContext context, Object func, Object arg0)
   em IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)
   em IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)
   em IronPython.Runtime.Importer.ImportNestedModule(CodeContext context, PythonModule module, String[] parts, Int32 current, List path)
   em IronPython.Runtime.Importer.ImportModuleFrom(CodeContext context, Object from, String[] parts, Int32 current)
   em IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)
   em IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)
   em IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   em IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   em IronPython.Runtime.ZipImportModule.zipimporter.load_module(CodeContext context, String fullname)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em IronPython.Runtime.PythonContext.Call(CodeContext context, Object func, Object arg0)
   em IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)
   em IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)
   em IronPython.Runtime.Importer.ImportNestedModule(CodeContext context, PythonModule module, String[] parts, Int32 current, List path)
   em IronPython.Runtime.Importer.ImportFrom(CodeContext context, Object from, String name)
   em IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)
   em IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   em IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   em IronPython.Runtime.ZipImportModule.zipimporter.load_module(CodeContext context, String fullname)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em IronPython.Runtime.PythonContext.Call(CodeContext context, Object func, Object arg0)
   em IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)
   em IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)
   em IronPython.Runtime.Importer.ImportNestedModule(CodeContext context, PythonModule module, String[] parts, Int32 current, List path)
   em IronPython.Runtime.Importer.ImportModuleFrom(CodeContext context, Object from, String[] parts, Int32 current)
   em IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)
   em IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)
   em IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   em IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   em IronPython.Runtime.ZipImportModule.zipimporter.load_module(CodeContext context, String fullname)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em IronPython.Runtime.PythonContext.Call(CodeContext context, Object func, Object arg0)
   em IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)
   em IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)
   em IronPython.Runtime.Importer.ImportNestedModule(CodeContext context, PythonModule module, String[] parts, Int32 current, List path)
   em IronPython.Runtime.Importer.ImportModuleFrom(CodeContext context, Object from, String[] parts, Int32 current)
   em IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)
   em IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)
   em IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   em IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   em IronPython.Runtime.ZipImportModule.zipimporter.load_module(CodeContext context, String fullname)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em IronPython.Runtime.PythonContext.Call(CodeContext context, Object func, Object arg0)
   em IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)
   em IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)
   em IronPython.Runtime.Importer.ImportNestedModule(CodeContext context, PythonModule module, String[] parts, Int32 current, List path)
   em IronPython.Runtime.Importer.ImportModuleFrom(CodeContext context, Object from, String[] parts, Int32 current)
   em IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)
   em IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)
   em IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   em IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   em IronPython.Runtime.ZipImportModule.zipimporter.load_module(CodeContext context, String fullname)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em IronPython.Runtime.PythonContext.Call(CodeContext context, Object func, Object arg0)
   em IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)
   em IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)
   em IronPython.Runtime.Importer.ImportNestedModule(CodeContext context, PythonModule module, String[] parts, Int32 current, List path)
   em IronPython.Runtime.Importer.ImportModuleFrom(CodeContext context, Object from, String[] parts, Int32 current)
   em IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)
   em IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)
   em IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   em IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   em IronPython.Runtime.ZipImportModule.zipimporter.load_module(CodeContext context, String fullname)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   em IronPython.Runtime.PythonContext.Call(CodeContext context, Object func, Object arg0)
   em IronPython.Runtime.Importer.ImportFromPathHook(CodeContext context, String name, String fullName, List path, Func`5 defaultLoader)
   em IronPython.Runtime.Importer.ImportFromPath(CodeContext context, String name, String fullName, List path)
   em IronPython.Runtime.Importer.ImportTopAbsolute(CodeContext context, String name)
   em IronPython.Runtime.Importer.ImportModule(CodeContext context, Object globals, String modName, Boolean bottom, Int32 level)
   em IronPython.Modules.Builtin.__import__(CodeContext context, String name, Object globals, Object locals, Object fromlist, Int32 level)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`7.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run7[T0,T1,T2,T3,T4,T5,T6,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
   em IronPython.Runtime.Importer.ImportLightThrow(CodeContext context, String fullName, PythonTuple from, Int32 level)
   em Microsoft.Scripting.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   em Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
   em IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
   em Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
   em DSIronPython.IronPythonEvaluator.EvaluateIronPythonScript(String code, IList bindingNames, IList bindingValues)

Can someone help me?

2 Likes