All Questions
14 questions
0
votes
1
answer
916
views
Using Visual Studio Debugger with IronPython
I am currently in the dilemma of trying to attach the debugger of Visual studio to a IronPython process.
I have a c# dll that i reference and use in a python scripts, via Ironpython (import clr).
In ...
1
vote
0
answers
166
views
Connecting to a C# application fails in python-3.7 but works in python-2.7
I'm trying to update an old python script from Python-2.7 to Python-3.7 (or newer). The script uses IronPython-2.7 to connect to a C# dll for a SDK interaction with the Windows Application. The new ...
0
votes
1
answer
320
views
No module named xlsxwriter.workbook -Ironpython
I was trying to call a python code using C# ironpython. But encountering this error.
"No module named xlsxwriter.workbook"
Getting this error on import line only.
While the same code is running in ...
4
votes
1
answer
16k
views
Install numpy for IronPython
I wanted to run some code in IronPython using c#. In this code I needed to use numpy. So I tried to install it using the command below:
ipy -X:Frames -m pip install -U numpy
Unfortunately, I get an ...
3
votes
1
answer
1k
views
Can IronPython 2.7 call async .NET functions?
Have embedded IronPython 2.7 in my app, and use clr.AddReference() to a managed .NET dll.
That DLL has async functions such as:
async public Task<string> Foo(string x) {
string y=await bar(...
1
vote
0
answers
223
views
Importing DroneKit in IronPython
I need to create a wrapper between C # and Python.The main task is in the management of quadrocopter (3DR Solo) in C #.
Typically, the control of the quadrocopter (3DR Solo) is performed via DroneKit.
...
2
votes
1
answer
558
views
Object initialization in IronPython
Well, need to translate c# code into IronPython. The current problem is to find the best way to traslate initialization like this for example:
case SomeObject.FieldCase: new SomeObject { Width = 600, ...
3
votes
1
answer
803
views
Calling python script from c# program-error: No Module named xml.etree.cElementTree
I have written a python script to parse a xml file. I'm calling this file from C# project. But when running a program I'm getting error: No Module named xml.etree.cElementTree.
Program.cs
-----------...
0
votes
1
answer
824
views
Dealing with a JSON.Net JArray in Python?
I'm using IronPython as a scripting language in my C# application. One of the "features" that I've implemented is the ability for a script to persist values, which are then exposed to the next script ...
1
vote
1
answer
312
views
Current State of Mouse using IronPython and .Net
I am running Python inside Grasshopper which is a plug-in for Rhino3d. I can easily get the mouse position, but fail to just check whether a mouse button is currently pressed. How exactly the piece of ...
0
votes
0
answers
2k
views
Multiple targets could match: int
I have extend IronPython with a function (no overloads, no generics, always returns string)
public string get_in_param(string key)
In my python script I have a call
step = int(myextension....
5
votes
2
answers
8k
views
execute a python script in C#
I am trying to execute a python code in C#. Normally it should be done using IronPython and after installing PTVS (I'm using VS 2010).
var pyEngine = Python.CreateEngine();
var ...
4
votes
0
answers
414
views
cannot create weak reference to 'classobj' object
I am trying to run the python Script in a C# program using Iron Python I am getting this type of Error:
cannot create weak reference to 'classobj' object
I am using this code for running the python ...
2
votes
1
answer
2k
views
Issue calling a python script from an iron python script (which is called from c# script engine)
I'm calling an iron python script from c# using
ScriptRuntimeSetup setup = Python.CreateRuntimeSetup(null);
ScriptRuntime runtime = new ScriptRuntime(setup);
ScriptEngine ...