Skip to content

Fix Python 3.12 compatibility by updating fickling requirement#92

Merged
dguido merged 1 commit into
masterfrom
fix-issue-91-distutils
Aug 21, 2025
Merged

Fix Python 3.12 compatibility by updating fickling requirement#92
dguido merged 1 commit into
masterfrom
fix-issue-91-distutils

Conversation

@dguido
Copy link
Copy Markdown
Member

@dguido dguido commented Aug 21, 2025

Summary

This PR fixes Python 3.12 compatibility by updating the minimum required version of the fickling dependency.

Problem

Python 3.12 removed the distutils module from the standard library, which caused graphtage to fail with the following error when importing fickling:

ModuleNotFoundError: No module named 'distutils'

Solution

The fickling library already fixed this issue in version 0.1.3 by replacing distutils with the stdlib-list package (see trailofbits/fickling#103). This PR updates the minimum fickling version requirement from >=0.0.8 to >=0.1.3.

Changes

  • Updated setup.py to require fickling>=0.1.3 instead of fickling>=0.0.8

Testing

  • Verified that fickling 0.1.3+ can be imported without distutils errors
  • The fix is minimal and only changes the version constraint for the problematic dependency

Closes #91

Issue #91: Python 3.12 removed distutils from the standard library,
which caused graphtage to fail when importing fickling. The fickling
library fixed this issue in version 0.1.3 by replacing distutils with
stdlib-list (see trailofbits/fickling#103).

This commit updates the minimum fickling version from 0.0.8 to 0.1.3
to ensure Python 3.12+ compatibility.

Fixes #91
@dguido dguido requested a review from ESultanik as a code owner August 21, 2025 03:02
@dguido dguido merged commit 8ead08e into master Aug 21, 2025
7 checks passed
@dguido dguido deleted the fix-issue-91-distutils branch August 21, 2025 03:06
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.

errs out due to distutils

1 participant