Update QuantConnect.pythonnet to 2.0.64#9623
Draft
jhonabreul wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates the QuantConnect.pythonnet package reference to 2.0.64 in the 11 csproj that consume it.
Related Issue
N/A — routine dependency update. Brings in QuantConnect/pythonnet#141.
Motivation and Context
pythonnet 2.0.64 fixes two property-assignment bugs surfaced by a user algorithm report:
Converter.ToManagedValueexits now raise a properTypeError: '<type>' value cannot be converted to <T>instead of leaving the error indicator unset, which manifested in Lean as the opaqueSystemError: error return without exception setduring algorithm initialization.TypeError: property is read-only); previously a Python assignment likeself.universe_manager = ...silently overwroteQCAlgorithm.UniverseManager { get; private set; }through reflection, corrupting engine state.NOTE: opened as draft — QuantConnect/pythonnet#141 is not merged yet, so 2.0.64 is not on NuGet; will mark ready once the package is indexed.
Requires Documentation Change
No.
How Has This Been Tested?
Python.Runtime.dll: a Python algorithm assigning a non-convertible object toself.universe_managernow fails with a clearTypeError: property is read-onlyat the offending line instead oferror return without exception set.Types of changes
Checklist:
bug-<issue#>-<description>orfeature-<issue#>-<description>