Skip to content

Update QuantConnect.pythonnet to 2.0.64#9623

Merged
jhonabreul merged 1 commit into
QuantConnect:masterfrom
jhonabreul:feature-update-pythonnet-2.0.64
Jul 16, 2026
Merged

Update QuantConnect.pythonnet to 2.0.64#9623
jhonabreul merged 1 commit into
QuantConnect:masterfrom
jhonabreul:feature-update-pythonnet-2.0.64

Conversation

@jhonabreul

@jhonabreul jhonabreul commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

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 a property-assignment bug surfaced by a user algorithm report: failed Python-to-CLR conversions at silent Converter.ToManagedValue exits now raise a proper TypeError: '<type>' value cannot be converted to <T> instead of leaving the error indicator unset, which manifested in Lean as the opaque SystemError: error return without exception set during algorithm initialization (e.g. self.universe_manager = ... assigning a pure-Python object onto QCAlgorithm.UniverseManager).

Requires Documentation Change

No.

How Has This Been Tested?

  • pythonnet 2.0.64: full embed test suite green on Python 3.8–3.14 (PR Open source user Interface #141 CI) and the pytest suite green.
  • End-to-end against Lean master with the 2.0.64 Python.Runtime.dll: a Python algorithm assigning a non-convertible object to self.universe_manager now fails with a clear TypeError: '<type>' value cannot be converted to QuantConnect.Securities.UniverseManager at the offending line instead of error return without exception set.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (non-breaking change which improves implementation)
  • Performance (non-breaking change which improves performance. Please add associated performance test and results)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (xml comments/documentation/etc)

Checklist:

@jhonabreul
jhonabreul marked this pull request as ready for review July 16, 2026 14:40
@jhonabreul
jhonabreul merged commit 1fee999 into QuantConnect:master Jul 16, 2026
7 of 15 checks passed
@jhonabreul
jhonabreul deleted the feature-update-pythonnet-2.0.64 branch July 16, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants