You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET Runtime: .NET Framework 4.8.9232.0 (also .NET 8.0.4, but I am unable to provide a minimal example)
Details
Describe what you were trying to get done.
I am working on a Python project that interacts with a .NET library and am trying to write an IPyObjectEncoder implementation in Python to make dealing with certain types a bit easier.
However I am running into an issue, as for some reason registering a Python-implemented encoder will cause the next Python-implemented encoder to throw an exception when constructing it.
Placing or moving around seemingly random things sometimes 'fixes' the crash. I've had cases where even removing any of the 3 imports in from System.Collections.Generic import IList, List, Dictionary (even though none of them were used in the Python code) would suddenly work around the crash. But I am unable to reproduce this again.
If there was a crash, please include the traceback here.
TypeError: Invoked a non-static method with an invalid instance
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\repos\pyclr\minimal_issue_framework.py", line 25, in <module>
encoder_2 = DummyEncoder2()
^^^^^^^^^^^^^^^
TypeError: No method matches given arguments for DummyEncoder2..ctor: ()
The text was updated successfully, but these errors were encountered:
Environment
Details
I am working on a Python project that interacts with a .NET library and am trying to write an IPyObjectEncoder implementation in Python to make dealing with certain types a bit easier.
However I am running into an issue, as for some reason registering a Python-implemented encoder will cause the next Python-implemented encoder to throw an exception when constructing it.
Placing or moving around seemingly random things sometimes 'fixes' the crash. I've had cases where even removing any of the 3 imports in
from System.Collections.Generic import IList, List, Dictionary
(even though none of them were used in the Python code) would suddenly work around the crash. But I am unable to reproduce this again.Minimal, Complete, and Verifiable example
this will help us understand the issue.
The text was updated successfully, but these errors were encountered: