8000 Outdated Tkinter Version (macOS) · Issue #218 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content

Outdated Tkinter Version (macOS) #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
timothydillan opened this issue Jun 14, 2021 · 7 comments
Closed

Outdated Tkinter Version (macOS) #218

timothydillan opened this issue Jun 14, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@timothydillan
Copy link

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

@timothydillan timothydillan added the bug Something isn't working label Jun 14, 2021
@NiBa97
Copy link
NiBa97 commented Oct 31, 2021

Any updates on this, or a workaround? I cant seem to get Tkinter >= 8.6...

@Mara-Li
Copy link
Mara-Li commented Feb 13, 2022

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

@timothydillan
Copy link
Author

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

@Mara-Li
Copy link
Mara-Li commented Feb 14, 2022

I will try that! God bless you ❤️❤️❤️

@0xBEE
Copy link
0xBEE commented Feb 21, 2022

In case anyone has this issue, I was able to fix it by using Python 3.10.2 instead of Python 3.9

@dsame
Copy link
Contributor
dsame commented Jun 20, 2022

Hello @timothydillan @0xBEE

Can you please take a look at this PR - does not it seem to solve the issue?

@dsame dsame self-assigned this Jun 21, 2022
@dsame
Copy link
Contributor
dsame commented 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.

@dsame dsame closed this as completed Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
0