Skip to content

ImportException: No module named _______ #2

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

Open
brollsroyce opened this issue Aug 31, 2020 · 0 comments
Open

ImportException: No module named _______ #2

brollsroyce opened this issue Aug 31, 2020 · 0 comments

Comments

@brollsroyce
Copy link

Hello,

Your method works very well to use Python in Unity. But since my python script requires several module imports, I get an ImportException when I hit Play on Unity. For example:
ImportException: No module named serial
Microsoft.Scripting.Runtime.LightExceptions.ThrowException (Microsoft.Scripting.Runtime.LightExceptions+LightException lightEx) (at :0)
Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow (System.Object value) (at :0)
Microsoft.Scripting.Interpreter.FuncCallInstruction2[T0,TRet].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) (at <bdde1939ff4d4d6b828ba549cdd24694>:0) Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) (at <bdde1939ff4d4d6b828ba549cdd24694>:0) Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet] (T0 arg0, T1 arg1) (at <bdde1939ff4d4d6b828ba549cdd24694>:0) IronPython.Compiler.PythonCallTargets.OriginalCallTarget1 (IronPython.Runtime.PythonFunction function, System.Object arg0) (at <0569a20e5dd94f74a766cc11c6214b7c>:0) IronPython.Runtime.FunctionCaller1[T0].Call1 (System.Runtime.CompilerServices.CallSite site, IronPython.Runtime.CodeContext context, System.Object func, T0 arg0) (at <0569a20e5dd94f74a766cc11c6214b

Any ideas?

Thanks.

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