question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Something is wrong with Python.CreateEngine(); in dotnet core.

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
slidecommented, Mar 1, 2018

The release to Nuget was done

1reaction
sloziercommented, Feb 28, 2018

Did you include the DynamicLanguageRuntime package? This is probably #335.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found