Skip to content

Conversation

@amilcarlucas
Copy link
Collaborator

The python 3.14 tests stopped working with tcl/tk 8.6.14

Copilot AI review requested due to automatic review settings January 19, 2026 10:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a test failure by updating the GitHub Actions workflow to use Tcl/Tk 9.0 for Python 3.14 and 3.14t testing, while maintaining Tcl/Tk 8.6 compatibility for Python 3.9. The change addresses incompatibility issues between Python 3.14 and Tcl/Tk 8.6.14.

Changes:

  • Added conditional logic to install different Tcl/Tk versions based on Python version
  • Updated system dependency installation to use tcl9.0/tk9.0 packages for Python 3.14 and 3.14t
  • Updated environment variable paths for TCL_LIBRARY and TK_LIBRARY to match the installed versions

Comment on lines +63 to +67
# Python 3.14 and 3.14t: use Tcl/Tk 9.0
sudo apt-get install -y \
python3-tk \
scrot xdotool x11-utils gnome-screenshot \
tcl9.0 tk9.0 libtcl9.0 libtk9.0
Copy link

Copilot AI Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment mentions "Tcl/Tk 9.0" but the PR title specifies "tcl/tk 9.0.3". The package names used (tcl9.0, tk9.0, libtcl9.0, libtk9.0) install version 9.0.x from the Ubuntu repository, which may not be specifically version 9.0.3. Consider either:

  1. Updating the comment to match the actual version being installed (likely 9.0.x from Ubuntu repos), or
  2. If version 9.0.3 is specifically required, explicitly specify the version in the apt-get install command (e.g., tcl9.0=9.0.3-*)

Copilot uses AI. Check for mistakes.
Comment on lines +77 to +79
# Python 3.14 and 3.14t: Tcl/Tk 9.0 paths
echo "TCL_LIBRARY=/usr/share/tcltk/tcl9.0" >> $GITHUB_ENV
echo "TK_LIBRARY=/usr/share/tcltk/tk9.0" >> $GITHUB_ENV
Copy link

Copilot AI Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment mentions "Tcl/Tk 9.0" but the PR title specifies "tcl/tk 9.0.3". Consider updating this comment to clarify the actual version being used, or ensure consistency between the comment, the PR title, and the actual packages being installed.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2026

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
10958 10102 92% 89% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: dcf6630 by action🐍

@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2026

Test Results

2 914 tests   2 907 ✅  11m 36s ⏱️
    1 suites      7 💤
    1 files        0 ❌

Results for commit dcf6630.

♻️ This comment has been updated with latest results.

The python 3.14 tests stopped working with tcl/tk 8.6.14
@amilcarlucas
Copy link
Collaborator Author

Replaced by #1206

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