All Questions
Tagged with ironpython python.net
70 questions
0
votes
1
answer
755
views
How to fix VS Code autocompletion to access all layers of a Python.NET - .NET assembly interface?
I am programming in Python 3 in VS Code, using Python.NET to interface with a .NET based API (AudioPrecision.API.dll). I want to use autocomplete similar to Intellisense in Visual Studio, to make it ...
0
votes
0
answers
162
views
IronPython, Python .NET (or anything else) to edit an xml table inside Excel? Openpyxl seems to corrupt the file
I have to do something really simple, and so complicated at the same time.
I have two files, one with data. like this:
file1
And the other one is a template, with an xml table headings on A3 and the ...
0
votes
2
answers
743
views
Object initialization in Pythonnet
Let's assume I've the following C# class:
public class Test
{
public double X;
public double Y;
}
I want to use the above C# Test class from IronPython and as well from CPython (using ...
0
votes
1
answer
758
views
System.Collections.Generic lists in Python 'TypeError: type(s) expeected' error
I am trying to run the following piece of code:
import clr
import sys
#import System.Collections
clr.AddReference("System.Collections")
from System.Collections.Generic import List
from ...
1
vote
2
answers
7k
views
Executing Python Script from Windows Forms .NET
I am fairly new to Python and .NET in general, but decided to ask more competent people, since I have been struggling with the issue of executing python script from Windows Forms.
The basic idea of my ...
0
votes
1
answer
573
views
Why can I access this API from IronPython but not Python.NET?
I’m working on a project that uses the Tekla EPM Open API.
I have no difficulty interfacing with it using IronPython, but have had less luck using Python.NET, which I would prefer for its greater ...
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 ...
2
votes
1
answer
1k
views
Python .NET WinForms - How to pass info from a textbox to a button click event
Before I get into my question, I am (self) learning how Python and the .NET CLR interact with each other. It has been a fun, yet, at times, a frustrating experience.
With that said, I am playing ...
7
votes
1
answer
4k
views
Replace IronPython with Python.Net?
We've been using IronPython for a number of years as a scripting tool within some of our .Net desktop applications. Customers have been asking when we will support Python 3, but it looks like ...
0
votes
1
answer
334
views
Calling a .Net function form python which takes an argument (passed by reference)
I am trying to invoke a .Net function from python using the Python.net module. The existing code was written on Iron Python, I am in the process of converting the code base to Python 3.X version.
Can ...
0
votes
1
answer
355
views
Import Error When Attempting To Import C# Code Into Python Script
I have little to no experience with C# but I'm attempting to import a C# class into a python script for a project I'm working on but I constantly run into a pylint(import-error).
Originally, I thought ...
5
votes
0
answers
139
views
How to modify StartupPath through Pythonnet
I have a bundle of C# DLLs that I am trying to wrap with python using the pythonnet library.
I noticed that the DLLs are using Application.StartupPath, which in python's case is where the python.exe ...
1
vote
1
answer
8k
views
Python and .Net Integration options
I want to integrate Python with C#. I found two approaches using Interprocess communication and IronPython
Interprocess communication requires Python.exe to be installed on all client machines so not ...
9
votes
5
answers
4k
views
Running Python Code in .NET Environment without Installing Python
Is it possible to productionize Python code in a .NET/C# environment without installing Python and without converting the Python code to C#, i.e. just deploy the code as is?
I know installing the ...
0
votes
1
answer
1k
views
Executing Python Code in C# WebAPI WebService Project
I am working on ASP.NET WebAPI Web Services and one of my requirement is to call a python script that outputs a JSON object and send it as web service response.
I have Installed IronPython 2.7.9 ...