This repository has been archived by the owner. It is now read-only.

brew install python on Mac OS X Mountain Lion #14851

Closed
yosun opened this Issue Sep 11, 2012 · 13 comments

Comments

Projects
None yet
6 participants

yosun commented Sep 11, 2012

brew install python does not work properly on Mac OS X Mountain Lion due to missing XQuartz dependency.

In addition, brew does not have the formula for xquartz, so brew install xquartz does not solve the problem.

macboo-2:$ brew install python
Unsatisfied dependency: XQuartz
Please install the latest version of XQuartz:
https://xquartz.macosforge.org
Error: An unsatisfied requirement failed this build.
macboo-2:$ brew install xquartz
Error: No available formula for xquartz
macboo-2:$ brew install XQuartz
Error: No available formula for xquartz
macboo-2:$ brew install python --framework
Unsatisfied dependency: XQuartz
Please install the latest version of XQuartz:
https://xquartz.macosforge.org
Error: An unsatisfied requirement failed this build.
macboo-2:~ yosun_mbpr15$ brew install XQuartz
Error: No available formula for xquartz

Contributor

Sharpie commented Sep 11, 2012

In addition, brew does not have the formula for xquartz, so brew install xquartz does not solve the problem.

But that's not what the error message says. It points to the XQuartz homepage where you can find an installer:

Please install the latest version of XQuartz:
https://xquartz.macosforge.org

Sharpie added a commit that referenced this issue Sep 11, 2012

Clarify that brew does not provide XQuartz
Reword the `X11Dependency` error message so that it is clear that an installer
must be downloaded.

Ref #14851.
Contributor

Sharpie commented Sep 11, 2012

I've reworded the error message---hopefully it will be more helpful to those who stumble upon it in the future. Let us know if there are any problems with installing Python after XQuartz is installed!

yosun commented Sep 11, 2012

Why doesn't brew provide XQuartz?

Contributor

Sharpie commented Sep 11, 2012

Why doesn't brew provide XQuartz?

Building X11 on OS X is a tricky business. The team on macosforge has been building it for years and their builds were used by Apple in all version of OS X prior to Mountain Lion.

So, we decided to leave this one to the professionals since a bad build of X11 can cause a lot of havoc.

Contributor

samueljohn commented Sep 11, 2012

I put the dependency for X11 (which is Xquartz) into the python formula, because python uses Tk as the default GUI toolkit and Tk, in turn, includes one or two X11 headers. I don't know (yet) if we can avoid depending on all of X11. (I am not an X11 expert). It seems that Tk draws its windows natively on OS X, so there is hope...

Contributor

samueljohn commented Sep 11, 2012

Having said that, I kind of like the idea of an xquartz formula.

Contributor

2bits commented Sep 11, 2012

No forma for you. Req sudo. So just a link to XQuartz you do now yes/no

Sharpie added a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012

Clarify that brew does not provide XQuartz
Reword the `X11Dependency` error message so that it is clear that an installer
must be downloaded.

Ref #14851.
Contributor

samueljohn commented Sep 14, 2012

Can we close this now? Unless someone can install python with Tk without the need for X (please let me know), we can't do anything (more).

Contributor

adamv commented Sep 14, 2012

Closing; there is no configure switch to turn of Tk, though it might be possible by editing the modules files.

@adamv adamv closed this Sep 14, 2012

Contributor

samueljohn commented Sep 14, 2012

@adamv well it is possible to build python without tk. But we might piss off some people because it's still kind of the "works always" default GUI while other GUI toolkits need to be installed separately.

Contributor

2bits commented Sep 14, 2012

@yosun Thank you for bringing this up! We realize it can be confusing install things like Python. I hope you can accept the answer was to install XQuartz yourself (because it requires sudo) and to then try your Python install again. If you can think of a way to help others not have your problems, please suggest what we could say or do. -2bits

Contributor

samueljohn commented Sep 18, 2012

Note #14989, a request to have an option "--without-tk" (which would imply that no Xquartz is needed).

frogs commented Sep 28, 2012

@samueljohn
I have build python3 from src (may be with some warnings) and It can run TK program correctly
By the way, I am on ML.

snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012

Clarify that brew does not provide XQuartz
Reword the `X11Dependency` error message so that it is clear that an installer
must be downloaded.

Ref #14851.

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.