Skip to content

PlatformNotSupportedException at runtime #34

Closed
@tufeixp

Description

@tufeixp

paths.Add(Application.streamingAssetsPath + "/Lib");
with the python lib moved to:
Assets\StreamingAssets\Lib
Unity2019.4, .net backend.

PlatformNotSupportedException: Operation is not supported on this platform.
at System.Reflection.Emit.DynamicMethod..ctor (System.String name, System.Type returnType, System.Type[] parameterTypes, System.Type owner, System.Boolean skipVisibility) [0x00006] in <1a63397e003c468ca748f87c92b15e72>:0
at Microsoft.Scripting.Interpreter.LightLambda.MakeRunDelegateCtor (System.Type delegateType) [0x001f4] in :0
at Microsoft.Scripting.Interpreter.LightLambda.GetRunDelegateCtor (System.Type delegateType) [0x00023] in :0
at Microsoft.Scripting.Interpreter.LightLambda.MakeDelegate (System.Type delegateType) [0x00000] in :0
at Microsoft.Scripting.Interpreter.LightDelegateCreator.CreateDelegate (System.Runtime.CompilerServices.StrongBox1[System.Object][] closure) [0x00047] in <adbce494b74f4c8787535955fc342591>:0 at Microsoft.Scripting.Interpreter.LightDelegateCreator.CreateDelegate () [0x00000] in <adbce494b74f4c8787535955fc342591>:0 at Microsoft.Scripting.Ast.LightExpression1[T].Compile (System.Int32 compilationThreshold) [0x0000c] in :0
at IronPython.Compiler.PythonScriptCode.CompileBody (Microsoft.Scripting.Ast.LightExpression`1[T] lambda) [0x00057] in <264a665625104e3c9b8ba1905cf1b515>:0
at IronPython.Compiler.PythonScriptCode.EnsureTarget (System.Boolean register) [0x00015] in <264a665625104e3c9b8ba1905cf1b515>:0
at IronPython.Compiler.PythonScriptCode.GetTarget (System.Boolean register) [0x00021] in <264a665625104e3c9b8ba1905cf1b515>:0
at IronPython.Compiler.PythonScriptCode.RunWorker (IronPython.Runtime.CodeContext ctx) [0x00000] in <264a665625104e3c9b8ba1905cf1b515>:0
at IronPython.Compiler.PythonScriptCode.Run (Microsoft.Scripting.Runtime.Scope scope) [0x00023] in <264a665625104e3c9b8ba1905cf1b515>:0
at IronPython.Compiler.RuntimeScriptCode.InvokeTarget (Microsoft.Scripting.Runtime.Scope scope) [0x000c6] in <264a665625104e3c9b8ba1905cf1b515>:0
at IronPython.Compiler.RuntimeScriptCode.Run (Microsoft.Scripting.Runtime.Scope scope) [0x00000] in <264a665625104e3c9b8ba1905cf1b515>:0
at Microsoft.Scripting.SourceUnit.Execute (Microsoft.Scripting.Runtime.Scope scope, Microsoft.Scripting.ErrorSink errorSink) [0x00026] in <96bae61c64314af5927380c0b6bd16cf>:0
at Microsoft.Scripting.SourceUnit.Execute (Microsoft.Scripting.Runtime.Scope scope) [0x00000] in <96bae61c64314af5927380c0b6bd16cf>:0
at Microsoft.Scripting.Hosting.ScriptSource.Execute (Microsoft.Scripting.Hosting.ScriptScope scope) [0x00017] in <96bae61c64314af5927380c0b6bd16cf>:0
at Exodrifter.UnityPython.Examples.PythonLibrary.Start () [0x00038] in E:\Study\UnityPython\Assets\Examples\PythonLibrary.cs:26

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions