Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Errors installing python3 #14179

Closed
andymccurdy opened this issue Aug 14, 2012 · 12 comments
Closed

Errors installing python3 #14179

andymccurdy opened this issue Aug 14, 2012 · 12 comments

Comments

@andymccurdy
Copy link

brew doctor is clean. Copy of output:

https://gist.github.com/3351130

@jacknagel
Copy link
Contributor

Can you gist brew --config? It looks like the config dump was cut off in your gist.

@andymccurdy
Copy link
Author

Sure. Pasted below. I was able to finally get python3 to install by manually creating /usr/local/Cellar/python3/3.2.3/bin/2to3 while the install was running. I suspect the forumla is simply looking in the wrong place for that file... I think it should be looking here instead: /usr/local/Cellar/python3/3.2.3/Frameworks/Python.framework/Versions/3.2/bin

<shockwave:andy : ~ > brew --config
HOMEBREW_VERSION: 0.9.2
HEAD: e51c59144cc087a208eced3b848e759abf0e8d57
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8-x86_64
Xcode: 4.4.1
CLT: 4.4.0.0.1.1249367152
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 4.0 build 421
MacPorts or Fink? false
X11: XQuartz 2.7.2 in /opt/X11
System Ruby: 1.8.7-358
Which Perl:   /usr/bin/perl
Which Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Which Ruby:   /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

@jacknagel
Copy link
Contributor

I've built python3 twice today and I can't reproduce this, so there must be something else at play.

@andymccurdy
Copy link
Author

For what it's worth, I also have python25, python26, and python installed via homebrew.

@jacknagel
Copy link
Contributor

Ah I see that it is guarded by a conditional, so perhaps I just never actually hit that codepath.

@jacknagel
Copy link
Contributor

ping @samueljohn

@jacknagel
Copy link
Contributor

Yeah I can reproduce this after doing a fresh install of python 2.7 followed by an install of python 3.

@jacknagel
Copy link
Contributor

It appears that python3 only installs "2to3-3.2" to the main bin directory, so I suspect we can just remove this part altogether.

@jacknagel
Copy link
Contributor

Addressed in e07689c by tightening the existence check, just in case.

@andymccurdy
Copy link
Author

Thanks Jack!

@samueljohn
Copy link
Contributor

@jacknagel thanks for quick response here (and the other fixes)!

Indeed, there is something mentioned in the changelog for 3.2.3

  • But still interesting, that we observe the same versioned scripts here but don't use "altinstall" (we use the plain "make install"). Perhaps their commit message is not precise. I guess switching to make altinstall could make sense?
  • You are right, we can remove the renaming of the scirpts. (But not of the .app dirs, I assume)
  • Did they rename the "Python Launcher.app" and "IDLE.app", too? (I guess not. Needs a second look)
  • We never had a conflict with pydoc. I think is has always been versioned. Strange.
  • Further, the line ENV.append_to_cflags '-Qunused-arguments' is not needed, because I homebrew sets this arg already.

@samueljohn
Copy link
Contributor

@andymccurdy Thanks for the report! Please note that python and python3 now always (and only) builds as a framework. And for python3 there is no universal option anymore (it failed building) - so your options are ignored.

Homebrew, unfortunately, not yet indicates a typo or wrong option given. However, I assume with the new option DSL, that is possible to implement.

@jacknagel I open a pull request to clean up python and python3. "make altinstall" is not necessary.

fgeller pushed a commit to fgeller/homebrew that referenced this issue Aug 22, 2012
Fixes Homebrew#14179.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
Fixes Homebrew#14179.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
Fixes Homebrew#14179.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@Homebrew Homebrew 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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants