Skip to main content

All Questions

2 votes
3 answers
208 views

Pylint syntax error not suppressing despite the `disable` comment

I'm writing scripts for Ansys Mechanical, which are written in IronPython 2.7.0.40. In my script, I need to assign a property to ContactTimeStepControls.None. Note that the None here is NOT the None ...
tlewis3348's user avatar
0 votes
0 answers
1k views

Which version of Python required to install IronPython in .net application

I installed IronPython 2.7.7 from nuget to my console application. I already have Python36 in my system. My code var ipy = Python.CreateRuntime(); var engine = Python.CreateEngine(); ...
Ajoe's user avatar
  • 1,545
1 vote
1 answer
312 views

Current State of Mouse using IronPython and .Net

I am running Python inside Grasshopper which is a plug-in for Rhino3d. I can easily get the mouse position, but fail to just check whether a mouse button is currently pressed. How exactly the piece of ...
user avatar
3 votes
2 answers
3k views

IronPython unable to run script that imports numpy

Disclaimer - I'm not familiar with Python. I'm a C# developer who has written an application to execute Python scripts (authored by others) using IronPython. These scripts have so far have only needed ...
Andrew Stephens's user avatar
8 votes
2 answers
12k views

PythonNet FileNotFoundException: Unable to find assembly

I am trying to execute a Python script that uses Python For .Net (https://github.com/pythonnet/pythonnet) to load a C# library called "Kratos_3.dll" which is in the same folder as the script but the ...
baconwichsand's user avatar
1 vote
0 answers
94 views

Collection was of a fixes size - IronPython

I have a list of tuples as follows. I want to display it in a tree view as a hierarchy according to the numbers in middle. For example, 1 should contain 2 and 2 should contain 3 and so on. (u'...
mdanishs's user avatar
  • 2,036
1 vote
1 answer
661 views

Failed to decode bytes - IronPython

I have some files with unicode data, the following code works fine when working with CPython to read those files, whereas the code crashes on IronPython saying "failed to decode bytes at index 67" ...
mdanishs's user avatar
  • 2,036
5 votes
1 answer
31k views

clr.AddReference('example_file') - unable to find assembly

I am trying to add reference to "example_file.dll" using AddReference('example_file') method from clr module: >>>import clr >>>clr.AddReference('example_file') and in result I get: ...
user2010461's user avatar