Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH with python script failed #705

Open
elvizlai opened this issue Jan 15, 2025 · 0 comments
Open

GH with python script failed #705

elvizlai opened this issue Jan 15, 2025 · 0 comments

Comments

@elvizlai
Copy link

elvizlai commented Jan 15, 2025

CG  [13:16:38 ERR] An exception occurred while processing request
System.MissingMemberException: 'NoneType' object has no attribute 'Redraw'
   at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at IronPython.Compiler.Ast.DynamicGetMemberExpression.GetMemberInstruction.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
   at IronPython.Compiler.PythonCallTargets.OriginalCallTarget3(PythonFunction function, Object arg0, Object arg1, Object arg2)
   at IronPython.Runtime.FunctionCaller`3.Call3(CallSite site, CodeContext context, Object func, T0 arg0, T1 arg1, T2 arg2)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
   at Microsoft.Scripting.Interpreter.DynamicInstruction`6.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
   at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
   at IronPython.Compiler.PythonScriptCode.Run(Scope scope)
   at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
   at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)
   at Microsoft.Scripting.Hosting.CompiledCode.Execute(ScriptScope scope)
   at RhinoPython.PyCompiledCode.Execute(PythonScript scope) in D:\BuildAgent\work\dujour\src4\rhino4\Plug-ins\ironpython\core\Runtime.cs:line 166
   at GhPython.Component.ScriptingAncestorComponent.SafeSolveInstance(IGH_DataAccess da)
   at GhPython.Component.SafeComponent.SolveInstance(IGH_DataAccess DA)
   at Grasshopper.Kernel.GH_Component.Solution_Compute_MixedAccess(GH_StructureIterator it)

another python simple code(just rs.AddPoint(xxxx) as output)

[13:37:31 ERR] HTTP POST /grasshopper responded 500 in 121.1635 ms
CG  [13:37:56 ERR] Error running script: 'NoneType' object has no attribute 'Redraw' [6:1]: component "Python 3 Script" (5e4e774f-c0ef-4f15-8b0b-b1613f447b6d)

change py3 to ironpy

CG  [14:44:37 ERR] Error running script: 'NoneType' object has no attribute 'Redraw' [5:1]: component "IronPython 2 Script" (7da95c3d-3b71-43a1-aa75-a49c7fc92eb2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant