question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Outdated Tkinter Version (macOS)

See original GitHub issue

Describe the bug Hey there, I’m using Github’s Action feature to automatically build and create a release of my cross-platform (macOS & windows) Python tkinter project, using pyinstaller. However, when executing the app that was built for macOS, a deprecated warning that says: “DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don’t rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.” was shown. When I checked the tkinter version of the macOS runner, it turns out the Tkinter version was 8.5, as opposed to the latest version, 8.6.

Which version of the action are you using? v2

Environment Mac (macos-latest)

Python Versions Python 3.8 & 3.9, haven’t tested other Python versions.

To Reproduce Steps to reproduce the behavior:

  1. Create a Python script that prints out its version
  2. Create a YAML workflow that uses the macos-latest as the OS of the runner
  3. Create a job that runs the python script
  4. See tkinter version 8.5

Screenshots Screenshot 2021-06-14 at 1 12 40 PM

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
timothydillancommented, Feb 14, 2022

Any news on this ? I have also a crash during macos build because of that.

Hi there. Managed to fixed the issue by manually installing the correct Tkinter version in the action file.

  build:
    name: Build packages
    needs: createrelease
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        include:
          - os: macos-latest
            TARGET: macos
            CMD_BUILD: >
                 brew install python-tk@3.9 && echo -n 'export PATH="/usr/local/opt/python/libexec/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc && echo -n 'export PATH="/usr/local/opt/python/libexec/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc && pip install -r requirements.txt && pyinstaller -F --noconfirm --onefile --windowed --add-data="databases:databases" --add-data="images:images" gui.py && cd dist/ && mv gui name-of-application
            OUT_FILE_NAME: name-of-application
            ASSET_MIME: application/zip
          - os: windows-latest
            TARGET: windows
            CMD_BUILD: pyinstaller -F --noconfirm --onefile --windowed --add-data="databases;databases" --add-data="images;images" gui.py && cd dist && Rename-Item -Path "gui.exe" -NewName "name-of-application.exe"
            OUT_FILE_NAME: name-of-application.exe
            ASSET_MIME: application/vnd.microsoft.portable-executable
0reactions
dsamecommented, Aug 1, 2022

Hello @timothydillan

The problem is not reproduced any more. I am going to close the issue because of there’s no reply for a long time, but please feel free to reopen this issue or create new one in case if the problem still exists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to install the latest version of tkinter on mac os
IMHO, if you want an up-to-date tkinter you'd go to here and install the latest/greatest Python from the Python Software Foundation. Share.
Read more >
The system version of Tk is deprecated [duplicate]
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set ......
Read more >
How To Update Tkinter on Mac OS 10.4
In this tutorial we are going to upgrade Tcl and Tk from 8.4.7 to 8.5.11. The benefits are more widgets available to your...
Read more >
Help - You are running a VERY old version of tkinter 8.5.9
For reference I am using an M1 MacBook Air running macOS 11. I have Python 3.8 installed via the Command Line Tools. Thanks!...
Read more >
tkinter — Python interface to Tcl/Tk — Python 3.11.1 ...
Both Tk and tkinter are available on most Unix platforms, including macOS, ... Tkinter supports a range of Tcl/Tk versions, built either with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found