Something is wrong with Python.CreateEngine(); in dotnet core.
See original GitHub issueI’m trying t add this piece of code in my dotnet Core application via IronPyhon
package.
var py = Python.CreateEngine();
But the fact is that It’s complaining about Microsoft.Scripting
namespace. I’m trying to run python scripts into my C# code.
Error: The type ‘ScriptEngine’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘Microsoft.Scripting, Version=1.2.0.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1’.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Can function with IronPython dependencies be called from ...
I'm working on a simple ASP.NET Core MVC project I would like to call a function from a ...
Read more >Error with python file execution in visual studio - CodeProject
I'm adding python script in my website which i'm using it for serial communication and to do so i'm using ironpython.
Read more >[Solved]-IronPython ResourceMetaPathImporter failure-C#
Your problems are not related to IronPython 2.7.5 but your runtime setup or ... CreateEngine() instead of engineInstance things should work as expected....
Read more >IronLanguages/ironpython - Gitter
int a = 2; int b = 5; ScriptEngine engine = Python.CreateEngine(); ScriptScope scope = engine.CreateScope(); engine.ExecuteFile(@"C:\test.py", ...
Read more >Python module inside C# - Rhino Developer - McNeel Forum
Meshes { public class pythonFromCShapr { ScriptEngine engine = Python.CreateEngine(); public pythonFromCShapr() { } public void something() ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The release to Nuget was done
Did you include the DynamicLanguageRuntime package? This is probably #335.