Skip to main content

All Questions

Tagged with
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 ...
Ben's user avatar
  • 1
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 ...
mabusdogma's user avatar
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 ...
Wollmich's user avatar
  • 1,656
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 ...
Justin Xuereb's user avatar
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 ...
Dobromir Dobrev's user avatar
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 ...
CAD-Parkin's user avatar
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 ...
LVX's user avatar
  • 107
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 ...
EricALionsFan's user avatar
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 ...
Andrew Stephens's user avatar
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 ...
Er. Bikram Keshari's user avatar
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 ...
FarbodM's user avatar
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 ...
bgmoshe's user avatar
  • 61
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 ...
Siddharth's user avatar
  • 456
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 ...
FatihAkici's user avatar
  • 5,129
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 ...
user7050297's user avatar

15 30 50 per page
1
2 3 4 5