Skip to main content

All Questions

Tagged with
1 vote
1 answer
35 views

Given a font and a specific character, is there a way to tell which subrange the character belongs to?

I need to determine if a given character in a given font belongs to a given subrange. For example, U+0041 according to Windows Character Map app belongs to the Latin Subrange. Is there a way to get ...
Michelle's user avatar
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
1 answer
519 views

POST request with json data using ironpython

I'm writing code in ironpython and I'm trying to send a http post request to the server with json in the request body. For this I use the C# method: HttpWebRequest. I know there are more advanced and ...
Eyal Sinay's user avatar
1 vote
0 answers
107 views

Error importing requests module "cannot import idna from encodings"

I am trying to import the requests module. I manually put the necessary module files into my lib folder and I am getting this message in return. All I am running is "import requests" Message:...
Thomas Chu's user avatar
0 votes
1 answer
433 views

Confused about <type 'DBNull'> and empty strings

I am really confused and hope someone can help. I am working on a program that, when retrieving records from a SQL Server database, some of the fields can come back as null. One of the fields is named ...
EricALionsFan's user avatar
1 vote
0 answers
253 views

IronPython: impossible to use pip

In the last two weeks I noticed that my ironpython installation is not able to use pip anymore, e.g.: ipy.exe -m pip install <package> the stacktrace is similar to the following: File "&...
Neo's user avatar
  • 468
0 votes
2 answers
112 views

IronPython error under .Net Core: "failed to parse CPython sys:version"

I have a .Net 4.x WPF desktop solution that uses IronPython to run numerous scripts in the form of .py files. I've just finished migrating the solution to .Net 6, but I see this error when the ...
Andrew Stephens's user avatar
0 votes
0 answers
39 views

Can this Iron Python 2.7 code be sped up?

I have implemented Gray-Scott reaction diffusion in Iron Python 2, mapping grayscale values between 0 and 1. But since it only gets interesting from about 6400 steps, it takes a lot of time. So can ...
zitrom42's user avatar
-1 votes
1 answer
271 views

Adding lots of decimals when value is inside a key: (array) object

Edit: this is in python 2.7.7 Has anyone come across this? I need to serialise an key-value pair object into a string, in which each key contains a float. There can be any number of entries (I ...
Janine Rawnsley's user avatar
-1 votes
1 answer
241 views

Python 2.7 (SharpDevelop 4.4) Re: adding assemblies using CLR .Net

I need to find a solution to a Python problem. My code is included in the pictures for SharpDevelop 4.4. As you can see in one of the pictures (the Python console), it recognizes the clr.AddReference()...
Geoffrey Gaudi'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
-1 votes
2 answers
428 views

Why is Decimal printing different outputs?

I have a Console Application with .NET 5 and IronPython 2.7.11 which uses Python 2.7. This is my code from C#: Program.cs: using System; namespace IronPythonTest2 { class Program { ...
Simple's user avatar
  • 865
1 vote
1 answer
910 views

Is it possible to debug Iron Python with the Visual Studio Code Python Extension?

Is it possible to debug an Iron Python Script with the Visual Studio Code Python Extension? I´ve set the Iron Python 2.7.11 Interpreter and tried to start to debug a small example script from the iron ...
Andy's user avatar
  • 13
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
3 answers
740 views

read json file with german characters python 2 (ironpython)

I am working with Ironpython, so python 2 and to read the .json file with German characters I am using encoding='utf-8' but I get the following error: open() got an unexpected keyboard argument '...
soynachet's user avatar

15 30 50 per page
1
2 3 4 5 6