Questions tagged [python.net]

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and Mono. Pythonnet provides a powerful application scripting tool for .NET developers. Using this package you can script .NET applications or build entire applications in Python, using .NET services and components written in any language that targets the CLR (C#, VB.NET, F#, C++/CLI) and CPython.

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and Mono. Pythonnet provides a powerful application scripting tool for .NET developers. Using this package you can script .NET applications or build entire applications in Python, using .NET services and components written in any language that targets the CLR (C#, VB.NET, F#, C++/CLI) and CPython.

https://pythonnet.github.io/

578 questions
-1
votes
1 answer

Calling python from c# using pythonnet

I installed pythonnet in c# directly using NuGet, but setting runtime. PythonDLL shows that this field is read-only and cannot be changed enter image description here But pythonnet requires runtime. PythonDLL to be set enter image description here
-1
votes
1 answer

pythonnet installation failure

I did install Buildtools 14.0 from https://www.microsoft.com/en-US/download/details.aspx?id=48159 Despite that I am getting the following error when pip install pythonnet is being run Building wheels for collected packages: pythonnet Building…
ishandutta2007
  • 16,676
  • 16
  • 93
  • 129
-1
votes
1 answer

importing dlls with pythonnet in spyder

I have a python package that acts like a wrapper for a .dll written in C#. The binary is imported into python by the pythonnet package. Thus, the user can access the functionality of the so called cs_backend.dll conveniently from the python side.…
Isotope
  • 141
  • 1
  • 5
  • 16
-1
votes
1 answer

What can slow down/block python.net calls?

I am using python.net to import a python module in C#. Everything worked well until recently when I experienced dramatic slow down on module import. Nothing changed on the machine other then Windows updates and McAfee updates. I am suspecting…
bricx
  • 593
  • 4
  • 18
-1
votes
2 answers

Pythonnet missing AddReference method

On Win10 1709 x64 PC, installed Python 3.7.4 64-bit and pythonnet-2.4.0-cp37-cp37m-win_amd64.whl. Confirmed clr.pyd and Python.Runtime.dll exist in: C:\Users\me\AppData\Local\Programs\Python\Python37\Lib\site-packages\ Placed My.Assembly.dll…
Jim C
  • 4,517
  • 7
  • 29
  • 33
-1
votes
1 answer

How do I choose a local Python interpreter for pythonnet in Visual Studio?

Local Python interpreter is a new Virtualenv environment in PyCharm, for example.
Alex _
  • 21
  • 1
  • 3
-3
votes
1 answer

Reading .netcore dll from python

I am trying to read a .netcore dll from pythonnet. Dll is loading successfully but while accessing the modules it is throwing error No module named "module_name" import clr clr.AddReference("C:\Coredll\Core.Test.dll") from Core.Test import * Below…
Bal Govind
  • 11
  • 1
-4
votes
1 answer

How to use Pythonnet in C# app deployment? It still requires python to be locally installed on any user machine

Background I was looking for something like IronPython for my C# app, but supporting numpy packages. I decided to give a try to Pythonnet. Everything works fine as long as I'm on my machine with Python installed. But when I deploy my app, and try to…
Karls
  • 731
  • 7
  • 17
1 2 3
38
39