Skip to main content

All Questions

0 votes
1 answer
65 views

How to use iopen pyxl in C#?

Im creating a Windows Forms Project based on C# using python scripts. But when click the button, which should start a python script i have an error "No module named 'openpyxl'" private void ...
Argentrix's user avatar
0 votes
1 answer
324 views

No module (_psutil_windows) error in C# wrapper to execute Python script using IronPython

I have a python script that I need to execute using a C# program via the IronPython framework. When I try it, I got an error saying "no module named pylink". I figured pip install of the ...
varun chandra's user avatar
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 ...
Jannik SW's user avatar
0 votes
1 answer
2k views

Running Python file from C# Windows Form

So I tried the methods that were mentioned in the previously asked similar question but none of them works for my python file. I have been on it for two days and can't seem to find a solution how to ...
Mahnoor Ahmad's user avatar
0 votes
0 answers
238 views

Importing py-files from a VS Python project into C# IronPython. How to get imports to work?

I just started accessing py-files from C# via IronPython and for simple files it worked very well. However, accessing py-files that were used in a Visual Studio Python project is not quite as easy, ...
Alex's user avatar
  • 1,248
0 votes
1 answer
2k views

Microsoft.Scripting.SyntaxErrorException: 'invalid syntax'

I'm trying to run a python with C#. The purpose of the python script is just an os.walk in a directory. I'm currently using IronPython. But when I'm trying to run the c# program I'm getting this ...
Acarys's user avatar
  • 39
0 votes
0 answers
916 views

AttributeError: 'module' object has no attribute 'main'

Error Message after Pip Install Error Message after running the application I am trying to run a python script through Visual Studio(C#) using IronPython, but when I try to install packages such as '...
Hamza Khan's user avatar
2 votes
0 answers
90 views

using xlrd in Windows Forms with Ironpython

I am pretty new to Windows Forms and Ironpython and I have to connect a python script that reads the column values of an excel file and returns a list to a windows Form, so I did a class for doing so: ...
daniel castellanos's user avatar
0 votes
1 answer
588 views

IronPython: Error when launching .py script from c#

I'm running into a similar problem as this guy: IronPython : Microsoft.Scripting.SyntaxErrorException: 'unexpected token '='' Unfortunately, there we no answers on that thread. This ...
veryBadProgrammer's user avatar
2 votes
1 answer
394 views

Breakpoints not hit when C# application called from external program

I am able to call C# methods successfully from Robot Framework using IronPython however I am facing few runtime errors on the C# side which I want to debug using Visual Studio. Is there a way to debug ...
Gagan's user avatar
  • 43
1 vote
0 answers
755 views

How to run external Python script importing numpy module in C# using IronPython

While executing an external Python script which imports numpy module via IronPython in C#, Visual Studio, I get a module not found error of numpy. Tried to copy the numpy directory from my local ...
Shubham Tawde's user avatar
1 vote
1 answer
1k views

Debug IronPython in hosted/embedded C#

I'm developing asp.net core application + IronPython. But I've faced with the debugging issue... So for example I have following code: Dictionary<string, object> options = new Dictionary<...
smokeelow's user avatar
  • 105
1 vote
2 answers
302 views

C# WPF UI Freezes when calling IronPython inside C# Visual Studio

I just wrote a program in C# to make a ui and integrate ironpython in it to do some calculation. But when I call the function the UI Freezes till the function is over ( even the progress bar freezes ) ...
Priyansh Anand's user avatar
2 votes
0 answers
397 views

How do I run an external python script that's importing 3rd party library himself, in C#?

I was trying to combine a Python code with C#, to use all those cool libraries like Speech Recognition inside my C# application. I made two different projects one for python (IronPython) where I've ...
Pascal Encore's user avatar
0 votes
0 answers
52 views

DynamicLanguageRuntime ERROR when I install IronPython

I need to use IronPython package in a .NET Framework project but when I am going to install the package an exception is thrown. The following appears on the console: Install-Package : No se puede ...
ECF's user avatar
  • 1

15 30 50 per page