sympy error Object reference #40
Unanswered
Electrowolf2
asked this question in
Q&A
Replies: 1 comment
-
Hello again I was playing with the codes of the files that I mentioned in the previous post and it seems that the problem is generated when I try to import sympy. In the file that runs without any problem, I put the line to import sympy and I get the same problem as the code that doesn't run, so I think that's where the detail goes but I still can't find the answers, I hope to find it soon, in advance I appreciate your help again. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Exodrifter
Before starting this thread I would like to thank you for the work you have done with this because I really liked it a lot. my problem is the following: use the following code and it runs perfectly without any problem.
making another script that has the same structure (in fact the idea of doing it that way is that I can put any program made in python and run it)
but it gives me an error on line 28, which is when it is executed
ther error is:
NullReferenceException: Object reference not set to an instance of an object
Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow (System.Object value) (at :0)
the large version of this error is here (if it helps):
NullReferenceException: Object reference not set to an instance of an object
Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow (System.Object value) (at :0)
Microsoft.Scripting.Interpreter.FuncCallInstruction
2[T0,TRet].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) (at <adbce494b74f4c8787535955fc342591>:0) Microsoft.Scripting.Interpreter.Interpreter.HandleException (Microsoft.Scripting.Interpreter.InterpretedFrame frame, System.Exception exception) (at <adbce494b74f4c8787535955fc342591>:0) Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) (at <adbce494b74f4c8787535955fc342591>:0) Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet] (T0 arg0) (at <adbce494b74f4c8787535955fc342591>:0) IronPython.Compiler.RuntimeScriptCode.InvokeTarget (Microsoft.Scripting.Runtime.Scope scope) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Compiler.RuntimeScriptCode.Run (Microsoft.Scripting.Runtime.Scope scope) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Runtime.PythonContext.InitializeModule (System.String fileName, IronPython.Runtime.ModuleContext moduleContext, Microsoft.Scripting.ScriptCode scriptCode, IronPython.Runtime.ModuleOptions options) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Runtime.PythonContext.CompileModule (System.String fileName, System.String moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options, Microsoft.Scripting.ScriptCode& scriptCode) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Runtime.PythonContext.CompileModule (System.String fileName, System.String moduleName, Microsoft.Scripting.SourceUnit sourceCode, IronPython.Runtime.ModuleOptions options) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Runtime.Importer.LoadFromSourceUnit (IronPython.Runtime.CodeContext context, Microsoft.Scripting.SourceUnit sourceCode, System.String name, System.String path) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Runtime.Importer.LoadModuleFromSource (IronPython.Runtime.CodeContext context, System.String name, System.String path) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Runtime.Importer.LoadPackageFromSource (IronPython.Runtime.CodeContext context, System.String name, System.String path) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Runtime.Importer.LoadFromDisk (IronPython.Runtime.CodeContext context, System.String name, System.String fullName, System.String str) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Runtime.Importer.ImportFromPathHook (IronPython.Runtime.CodeContext context, System.String name, System.String fullName, IronPython.Runtime.List path, System.Func
5[T1,T2,T3,T4,TResult] defaultLoader) (at <264a665625104e3c9b8ba1905cf1b515>:0)IronPython.Runtime.Importer.ImportFromPath (IronPython.Runtime.CodeContext context, System.String name, System.String fullName, IronPython.Runtime.List path) (at <264a665625104e3c9b8ba1905cf1b515>:0)
IronPython.Runtime.Importer.ImportTopAbsolute (IronPython.Runtime.CodeContext context, System.String name) (at <264a665625104e3c9b8ba1905cf1b515>:0)
IronPython.Runtime.Importer.ImportModule (IronPython.Runtime.CodeContext context, System.Object globals, System.String modName, System.Boolean bottom, System.Int32 level) (at <264a665625104e3c9b8ba1905cf1b515>:0)
IronPython.Modules.Builtin.import (IronPython.Runtime.CodeContext context, System.String name, System.Object globals, System.Object locals, System.Object fromlist, System.Int32 level) (at <264a665625104e3c9b8ba1905cf1b515>:0)
Microsoft.Scripting.Interpreter.FuncCallInstruction
7[T0,T1,T2,T3,T4,T5,TRet].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) (at <adbce494b74f4c8787535955fc342591>:0) Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) (at <adbce494b74f4c8787535955fc342591>:0) 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) (at <adbce494b74f4c8787535955fc342591>:0) System.Dynamic.UpdateDelegates.UpdateAndExecute6[T0,T1,T2,T3,T4,T5,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0) IronPython.Runtime.Importer.ImportLightThrow (IronPython.Runtime.CodeContext context, System.String fullName, IronPython.Runtime.PythonTuple from, System.Int32 level) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Runtime.Importer.Import (IronPython.Runtime.CodeContext context, System.String fullName, IronPython.Runtime.PythonTuple from, System.Int32 level) (at <264a665625104e3c9b8ba1905cf1b515>:0) IronPython.Runtime.Operations.PythonOps.ImportStar (IronPython.Runtime.CodeContext context, System.String fullName, System.Int32 level) (at <264a665625104e3c9b8ba1905cf1b515>:0) Microsoft.Scripting.Interpreter.ActionCallInstruction
3[T0,T1,T2].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) (at :0)Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) (at :0)
Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet] (T0 arg0, T1 arg1) (at :0)
IronPython.Compiler.PythonScriptCode.RunWorker (IronPython.Runtime.CodeContext ctx) (at <264a665625104e3c9b8ba1905cf1b515>:0)
IronPython.Compiler.PythonScriptCode.Run (Microsoft.Scripting.Runtime.Scope scope) (at <264a665625104e3c9b8ba1905cf1b515>:0)
IronPython.Compiler.RuntimeScriptCode.InvokeTarget (Microsoft.Scripting.Runtime.Scope scope) (at <264a665625104e3c9b8ba1905cf1b515>:0)
IronPython.Compiler.RuntimeScriptCode.Run (Microsoft.Scripting.Runtime.Scope scope) (at <264a665625104e3c9b8ba1905cf1b515>:0)
Microsoft.Scripting.SourceUnit.Execute (Microsoft.Scripting.Runtime.Scope scope, Microsoft.Scripting.ErrorSink errorSink) (at <96bae61c64314af5927380c0b6bd16cf>:0)
Microsoft.Scripting.SourceUnit.Execute (Microsoft.Scripting.Runtime.Scope scope) (at <96bae61c64314af5927380c0b6bd16cf>:0)
Microsoft.Scripting.Hosting.ScriptSource.Execute (Microsoft.Scripting.Hosting.ScriptScope scope) (at <96bae61c64314af5927380c0b6bd16cf>:0)
sympy_test.sympytest () (at Assets/Scripts/sympy_test.cs:28)
UnityEngine.Events.InvokableCall.Invoke () (at :0)
UnityEngine.Events.UnityEvent.Invoke () (at :0)
UnityEngine.UI.Button.Press () (at Library/PackageCache/[email protected]/Runtime/UI/Core/Button.cs:68)
UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at Library/PackageCache/[email protected]/Runtime/UI/Core/Button.cs:110)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at Library/PackageCache/[email protected]/Runtime/EventSystem/ExecuteEvents.cs:50)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at Library/PackageCache/[email protected]/Runtime/EventSystem/ExecuteEvents.cs:262)
UnityEngine.EventSystems.EventSystem:Update() (at Library/PackageCache/[email protected]/Runtime/EventSystem/EventSystem.cs:385)
I reiterate my gratitude for the help and I would still like to know if you have any publication of this work since the objective of the development of this software is a publication and I must mention you within it.
Beta Was this translation helpful? Give feedback.
All reactions