Skip to content
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

Black window on macOS Monterey #92

Open
PencilNotPen opened this issue Jun 11, 2021 · 14 comments
Open

Black window on macOS Monterey #92

PencilNotPen opened this issue Jun 11, 2021 · 14 comments

Comments

@PencilNotPen
Copy link

Hi, I've installed macOS Monterey 12.0b1 on my hackintosh. Launching ProperTree to maintain my OpenCore installation on Monterey gives a black window, with no config.plist contents visible. The Preferences pane of ProperTree shows some options, but most are also black. Something seems to be wrong with displaying the ProperTree on this new OS.

Thanks!

@dtcu0ng
Copy link

dtcu0ng commented Jun 12, 2021

Same here, tried to switch between Light/Dark mode but nothing happened.
Screen Shot 2021-06-12 at 15 18 19

@corpnewt
Copy link
Owner

I just pushed a note to the FAQ about this:

It appears the default tk implementation that ships with macOS Monterey doesn't display correctly. A workaround is to download and install python from python.org (which has a compatible tk bundled), then use the buildapp-select.command located in ProperTree's Scripts directory to build an application bundle targeting the installed python's path.

Seems Apple borked tk (again - it was also borked in the first few versions of Big Sur) - and the most straightforward workaround is to install python and build the ProperTree.app targeting that version.

-CorpNewt

@PencilNotPen
Copy link
Author

Cheers, this works. Is it possible to remove the installed Python after building the app, or does ProperTree still rely on it once built?

@mrusli70
Copy link

mrusli70 commented Jun 24, 2021

I got the same thing when doing the MacOS Beta 12. Black Screen. Cannot toggle to light mode. I cannot seems to get it to run ProperTree. It indicates that the tk is deprecated. As stated here.

MBDisplay: creating data for display 0x43000001 (main) with bounds o=[0.000000, 0.000000], s=[1920.000000, 1080.000000]
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.
MBInstance: setting bounds for user menubar on display 0x43000001 (main) with bounds o=[0.000000, 0.000000], s=[1920.000000, 24.000000]

@andrewlsa
Copy link

#91

solutions

@VitaliyZaharenko
Copy link

VitaliyZaharenko commented Jul 29, 2021

#91

solutions

It works
12.0 Beta (21A5294g) (beta 4). Python 3.9.6 installed from site.
Thanks

@mrusli70
Copy link

Go the same thing here again. And the same Black screen. With Monterey 12 Beta 5. The Developer need to update this python issues. With these Monterey Release. It says here ...

Python
Deprecations
If an app uses Python 2.7, macOS now triggers an alert indicating that the developer must update the app to ensure it will work in future versions of macOS. (80221011)

@corpnewt
Copy link
Owner

As mentioned in the FAQ, ProperTree works fine in Monterey with the python.org release of python 3 (direct link to 3.9.6 here - which comes bundled with tk). Do not use the experimental universal version - just the standard version. You then build the .app bundle using buildapp-select.command within ProperTree's Scripts folder, and ensure you target the python.org installation. This has worked for myself, and many others through all of the Monterey betas, including the latest beta 5.

Relevant FAQ snippet:

  • ProperTree opens a black window on macOS Monterey (12.x)

It appears the default tk implementation that ships with macOS Monterey doesn't display correctly. A workaround is to download and install python from python.org (which has a compatible tk bundled), then use the buildapp-select.command located in ProperTree's Scripts directory to build an application bundle targeting the installed python's path.

ProperTree's codebase works with both python 2 (including back-ported support for binary plists, unicode, ordered dicts, etc) and python 3, so there should be nothing that needs updating on that end. Many of these issues seem to be with local python environments, package managers, and Apple's broken tk implementation.

Below - you can see what I would need to select in my buildapp-select.command after having installed Python 3.9.6 (the highlighted option is the python.org installation):

image

The results of selecting that option are pasted below (again with the proper python version highlighted):

image

This yields a ProperTree.app bundle in the same directory as ProperTree.command as shown:

image

Which can be double-clicked to run:

image

This process has worked for me through all of the Big Sur and Monterey betas:

image

At this point, I don't intend to go wildly out of my way to support package managers and non-standard python installations, but I'll leave issues open for those that have them and if tidy solutions are found, I'll update the FAQ as needed, but for the general user who does not require a specific (and conflicting) python env, the information already listed should be enough to get things working.

-CorpNewt

@hacker1024
Copy link

I'd like to add that Python with TK can be installed using brew:

brew install python-tk

@milmber
Copy link

milmber commented Oct 31, 2021

Thank you @corpnewt. Using the python3.9 installer linked above worked for me. Unfortunately attempting to install python using Homebrew did not - as Is suspect this install the universal version of python instead of the standard version.

@gma-uw
Copy link

gma-uw commented Apr 1, 2022

I am having the same problem with git gui installed with MacPorts.
I get the warning
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release.
I have not been able to figure out how to get git gui to use the MacPorts tk.

@mame-erl
Copy link

I'd like to add that Python with TK can be installed using brew:

brew install python-tk

Thank you so much. With that, the script works fine again.

@corpnewt
Copy link
Owner

guys help plz im on arm MacBook with latest macOS update but I get this every time I run the code

This looks like your own code/script and has nothing to do with ProperTree. Please refrain from off topic conversation in the issue threads.

-CorpNewt

Repository owner deleted a comment from AboodeDaBOSS Mar 29, 2023
@AboodeDaBOSS
Copy link

guys help plz im on arm MacBook with latest macOS update but I get this every time I run the code

This looks like your own code/script and has nothing to do with ProperTree. Please refrain from off topic conversation in the issue threads.

-CorpNewt

sorry but I was viewing another page and it redirected me to here but I see u have the same problem could u help please

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

No branches or pull requests