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

Python 3 upgrade breaks Vim --with-python3 (Mavericks) #43983

Closed
remy-actual opened this issue Sep 15, 2015 · 7 comments
Closed

Python 3 upgrade breaks Vim --with-python3 (Mavericks) #43983

remy-actual opened this issue Sep 15, 2015 · 7 comments

Comments

@remy-actual
Copy link

$brew update && brew upgrade python3
==> Upgrading python3
==> Downloading https://homebrew.bintray.com/bottles/python3-3.5.0.mavericks.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring python3-3.5.0.mavericks.bottle.1.tar.gz
==> /usr/local/Cellar/python3/3.5.0/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python3/3.5.0/bin --install-lib=/usr
==> /usr/local/Cellar/python3/3.5.0/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python3/3.5.0/bin --install-lib=/usr
==> /usr/local/Cellar/python3/3.5.0/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python3/3.5.0/bin --install-lib=/usr
==> Caveats
...
==> Summary
🍺  /usr/local/Cellar/python3/3.5.0: 3415 files, 59M

$vim
dyld: Library not loaded: /usr/local/Frameworks/Python.framework/Versions/3.4/Python
Referenced from: /usr/local/bin/vim
Reason: image not found
[1]    47124 trace trap  vim

$ls -la /usr/local/Frameworks/Python.framework/Versions/
total 24
drwxrwxr-x  5 remy  admin  170 Sep 15 09:18 .
drwxrwxr-x  6 remy  admin  204 Jul 21 21:38 ..
lrwxr-xr-x  1 remy  admin   72 Jul 21 21:38 2.7 -> ../../../Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7
lrwxr-xr-x  1 remy  admin   70 Sep 15 09:18 3.5 -> ../../../Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5
lrwxr-xr-x  1 remy  admin   76 Jul 21 21:38 Current -> ../../../Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/Current

Vim won't load due to an old path reference to 3.4 which was replaced in the python3 upgrade with 3.5
Uninstalling and reinstalling vim fixes the problem:

$brew install vim --with-lua --with-python3 --with-client-server --override-system-vi --with-tcl

Possibly related to use of absolute path here?

@tdsmith
Copy link
Contributor

tdsmith commented Sep 15, 2015

This is expected; the rebuild is necessary. Thanks for reporting!

@tdsmith tdsmith closed this as completed Sep 15, 2015
@remy-actual
Copy link
Author

No problem.
Would it make sense to add a warning?
Either to python3 formula Caveats, or to the bindings section of the referenced documentation?
Running $brew upgrade and then having to stop and fix a broken code editor = not fun morning 😐

@tdsmith
Copy link
Contributor

tdsmith commented Sep 16, 2015 via email

@remy-actual
Copy link
Author

Ha, no apology necessary!
Can't speak for anyone else, but caveats are my starting point for troubleshooting anything Homebrew related.
Just sent a signup email to homebrew@librelist.com for the mailing list. Thanks for the reply and the tip 😄

@MikeMcQuaid
Copy link
Member

I know, sorry. We pushed
http://blog.tim-smith.us/2015/08/python-35-transition/ out to the mailing
list and Twitter. I hadn't considered the caveats of the python3 formula
but I think that's a reasonable place to give advice. (Though I think most
people ignore them!)

@tdsmith I think it's worth revisioning all the relevant formulae. Unfortunately I think this roll-out has shown that a blog post on Twitter and the mailing list isn't enough to reach our users and I think this rollout was a bit premature, honestly.

@tdsmith
Copy link
Contributor

tdsmith commented Sep 16, 2015

We were never going to hit awareness saturation and it's a breaking change for tools outside of Homebrew no matter when we pull the trigger. I wish I'd remembered that compiling numpy was broken but at least there are okay workarounds.

There are fewer formulas with optional :python3 dependencies than I'd imagined. In core, they are boost-python, hashpump, macvim, nghttp2, notmuch, pygobject3, pyqt, pyside, qscintilla2, shiboken, sip, uwsgi, and vim. Shall we revision them?

@MikeMcQuaid
Copy link
Member

There are fewer formulas with optional :python3 dependencies than I'd imagined. In core, they are boost-python, hashpump, macvim, nghttp2, notmuch, pygobject3, pyqt, pyside, qscintilla2, shiboken, sip, uwsgi, and vim. Shall we revision them?

Yeh, I reckon that's probably worth doing. Probably better to force an unnecessary rebuild than avoid a necessary one 👍

@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 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