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
1 vote
1 answer
2k views

"System.ArgumentNullException Value cannot be null. Parameter name: source" - Visual Studio IronPython WPF

I'm trying to create an IronPython WPF form on Visual Studio 2019. However, when I try using the XAML Designer to edit the text of my button, I get this error saying "System.ArgumentNullException ...
MJT's user avatar
  • 19
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
1 answer
337 views

how can i access on arrays in ironpython?

Sorry for my bad English.. I'm programming in Ironpython a WPF Apllication. I want to storage the number, which is in self.nummer.Text, in the variable a[1]. how can i do this? this don't work(list): ...
Nibla's user avatar
  • 37
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
0 votes
0 answers
89 views

Image appears in preview but will not appear when I start the program

I am new to visual studio and WPF Iron Python development. I am trying to load a window with an image. The image appears in the xmal preview. However, when I start the program in visual studio, just a ...
user12140050'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
2 votes
1 answer
16k views

Windows Forms in Visual Studio with Python

Steps to reproduce: I created a new project in Visual Studio Selected Python > Desktop > "IronPython Windows Forms Application" However, as soon as I open the project I encountered several errors ...
user1746636's user avatar

15 30 50 per page
1
2 3 4 5 6