ironpython Questions
1
Solved
I'm trying to compile a piece of C# code that contains the dynamic keyword.
(I need this keyword for using ironpython.)
However, it doesn't compile, complaining that
error CS1980: Dynamic keyword...
Leucine asked 22/9, 2013 at 13:12
3
Solved
Problem!
I have a little python script, which goes throught a web page (http-crawling). This web-page is hosted inside the intranet and uses NTLM authentication to gather access to it.
So, I fou...
Steelworker asked 24/4, 2012 at 19:16
1
I would like to add (arithmetics) two large System.Arrays element-wise in IronPython and store the result in the first array like this:
for i in range(0:ArrA.Count) :
arrA.SetValue(i, arrA.GetVa...
Willful asked 28/1, 2015 at 14:23
2
Solved
I'm currently building a program in C# which will call functions in provided python script files.
Some of these script files calls _getframe() in sys, which results in the error:
System.Missing...
Shortcircuit asked 9/8, 2011 at 14:30
0
I downloaded the ironpython 2.7.5 binaries from the site, and I require access to tkinter, and turtle graphics. These are not included by default in the binaries. I'm in an extremely limited enviro...
Perverse asked 5/1, 2015 at 18:43
1
Solved
I'm using IronPython in VS2012 and trying to call a .Net function which takes in a Ref parameter,
Lib.dll
public int GetValue(ref double value)
{
...
}
Python:
import clr
clr.AddReference('L...
Litton asked 18/11, 2014 at 16:6
4
I'm interfacing with a .NET API in IronPython. The API is returning an object of the wrong type (some kind of generic object). I suspect that the problem is not showing up in their C# code because ...
Boundary asked 17/9, 2009 at 15:5
6
Solved
Ok, here are some easy points. PyBinding came with this script:
def IsNotNull(value):
return value is not None
It is close, but what I want is this.
bool IsNotNullOrEmpty(string value) {
retu...
Charin asked 25/1, 2010 at 1:35
1
I have some IronPython code that being called from within a C# application.
This code worked fine until I decided to change one function to run in a thread.
when numpy functions called in a python ...
Babbette asked 9/7, 2014 at 15:29
1
Adding a new IronPython WPF Window to complains "Window is not supported in a WPF project"
Immediately after adding a brand new, untouched WPF window to my IronPython 2.7 project in VS2013 (with Python Tools for VS 2.0.11016), it tells me "Invalid Markup" in the design window, ...
Rights asked 22/3, 2014 at 18:59
2
Solved
In .NET application is possible save C# code in text file or database as string and run dynamically on the fly. This method is useful in many case such as business rule engine or user defined calcu...
Stratfordonavon asked 6/3, 2014 at 11:0
1
I get the following error when starting an Asp.Net site that uses an assembly that in turn makes use of the dlr and Iron Python for scripting.
BC30560: 'ExtensionAttribute' is ambiguous in the n...
Shinto asked 7/5, 2009 at 16:8
1
Solved
I'm writing a C# application that can be scripted using IronPython. I'd like to be able to emit non-fatal Python warnings from C# code (that can be handled using the regular Python warning-catching...
Sorrento asked 31/12, 2013 at 12:38
1
Solved
I am confused about the two ways to import modules in IronPython.
On the one hand, the tutorial documentation that comes with IronPython 2.7.4 states that you can do it using the regular import sy...
Irreducible asked 29/11, 2013 at 11:19
4
Solved
I need to write a module which will be used from both CPython and IronPython. What's the best way to detect IronPython, since I need a slightly different behaviour in that case?
I noticed that sys...
Wayless asked 8/5, 2010 at 18:54
1
Solved
I am trying to use pycharm in order to debug an ironpython script. It is going poorly because pycharm is running very slowly in debug mode. I realize that we can expect some slowdown, but I am expe...
Wounded asked 1/11, 2013 at 20:54
3
Solved
Has anyone integrated BeautifulSoup with ASP.NET/C# (possibly using IronPython or otherwise)?
Is there a BeautifulSoup alternative or a port that works nicely with ASP.NET/C#
The intent of plannin...
Surratt asked 28/7, 2010 at 20:23
2
Solved
I have a simple IronPython script:
# Foo.py
import os
def main():
print( "Hello" )
if "__main__" == __name__:
main()
It runs fine and prints Hello if I run it with IronPython as:
ipy Foo.py...
Locksmith asked 1/6, 2011 at 2:57
1
Solved
I just got Visual Studio 2013 RC with PTVS (Python Tools for Visual Studio). How would I use the Windows Forms Designer that Visual Studio has built in with Python? VS has an Iron Python template f...
Tautonym asked 29/9, 2013 at 1:8
1
Solved
I got ironpython working fine on mono, but it doesn't import the logging module.
Executing this code:
ScriptEngine engine = Python.CreateEngine();
dynamic logging = engine.ImportModule("logging");...
Airflow asked 24/9, 2013 at 7:19
1
I'd like to add the PRAW package to an IronPython solution in VS however it's proving to be a pain in the butt. Here are steps I'm taking
right-click on IronPython Environment, select install pyt...
Dastard asked 25/8, 2013 at 21:2
3
Solved
Can someone explain why this code:
import sys
sys.path.append("C:\\WINDOWS\\system32")
import clr
clr.AddReferenceToFile("wiimotelib.dll")
works fine with IronPython 2.6, but fails in IronPytho...
Oddfellow asked 11/9, 2010 at 20:26
3
Solved
I am getting an "Illegal characters in path" error when doing chdir commands in Iron Python. This is happening in run time with my code, but even in the Iron Python console it has this issue. I'm u...
Cableway asked 11/9, 2012 at 13:57
1
Solved
my c# code:
//Create the ScriptRuntime
engine = Python.CreateEngine();
//Create the scope for the ScriptEngine
scope = engine.CreateScope();
string pyfile = "D:\\MyAddin\\test.py";
ScriptSource ...
Basipetal asked 1/8, 2013 at 16:17
2
Solved
What is the procedure to get IPython to use IronPython as it's Python interpreter?
I know there were previously some issues: What is required to use ipython in ironpython?
But now that these issu...
Agna asked 4/12, 2009 at 21:7
© 2022 - 2024 — McMap. All rights reserved.