Giter Site home page Giter Site logo

Comments (61)

justinmk avatar justinmk commented on June 22, 2024 1

Neovim now includes a :CheckHealth command to hopefully make this less painful.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

Unfortunately I am failing to get YCM working again. I'm running into ycm-core/YouCompleteMe#8 but all the suggestions there didn't help. So I can't check this until YCM and MacVim figure this out.

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

@wellle If ycm-core/YouCompleteMe#8 (comment) is the source of your problem, try it with neovim. You will also need to pip install --upgrade neovim, but other than that, if you have python 2.6 or 2.7 it will "just work".

The crash occurs because YCM uses a different Python than your vim/MacVim/GVim/etc. binary. Note that I didn't say different version, because that is not necessarily the case. You can have the same version of Python installed in two different locations and they still might not be compatible.

Neovim avoids this crap.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

Thanks @justinmk, I'll try that 👍

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

@justinmk: I cloned neovim, followed the YCM instructions, but after make && make install I get this:

$ nvim
YouCompleteMe unavailable: requires Vim compiled with Python 2.x support
Press ENTER or type command to continue

Is there anything else I need to do? Thanks!

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

@wellle Did you pip install neovim? (or pip install --upgrade neovim if you possibly installed it in the past. Needs to be the latest version)

See also: http://neovim.org/doc/user/nvim_python.html

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

BTW, the "requires Vim compiled with Python 2.x support" is from YCM--it obviously doesn't apply to Neovim. You only need to install the neovim python package.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

@justinmk: I'm not sure I can follow. I know that this error is from YCM, but didn't you suggest to me to use Neovim to test YCM? So is it possible to make YCM work with Neovim or not?

The python package seems to be installed, right?

$ pip install --upgrade neovim
Requirement already up-to-date: neovim in /usr/local/lib/python2.7/site-packages
Requirement already up-to-date: msgpack-python>=0.4.0 in /usr/local/lib/python2.7/site-packages (from neovim)
Requirement already up-to-date: trollius in /usr/local/lib/python2.7/site-packages (from neovim)
Requirement already up-to-date: greenlet in /usr/local/lib/python2.7/site-packages (from neovim)
Cleaning up...

But nvim --version doesn't contain anything about python. And that's probably why YCM complains.

What am I missing?

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

I only mentioned that for clarity (and failed I guess).

What does echo has('python') return in Neovim?

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

What does echo has('python') return in Neovim?

0

Am I correct in assuming that I need to manually enable +python when compiling Neovim? How would I do that?

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

Because +python is listed here, but there is neither +python nor -python in my nvim --version.

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

No, all (supported) features are always enabled in Neovim. The feature list output is totally cosmetic.

Something else is wrong :( Did you make install or are you running build/bin/nvim? The runtime/ files are required to bootstrap the python provider. As an alternative, you can set VIMRUNTIME explicitly, e.g.

VIMRUNTIME=/path/to/runtime/ ./build/bin/nvim

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

If :messages shows any other errors/warnings that would be helpful.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

I did make install and now I just run $ nvim:

$ which nvim
/usr/local/bin/nvim

In neovim:

:echo $VIMRUNTIME
/usr/share/vim/vim73/vim74

Setting the runtime explicitly shows a new error:

$ VIMRUNTIME=neovim/runtime nvim
No neovim module found for Python 2.7.6. Try installing it with 'pip install neovim' or see ':help nvim-python'.
YouCompleteMe unavailable: requires Vim compiled with Python 2.x support
Press ENTER or type command to continue

But that doesn't seem to make a difference:

$ pip install neovim
Requirement already satisfied (use --upgrade to upgrade): neovim in /usr/local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): msgpack-python>=0.4.0 in /usr/local/lib/python2.7/site-packages (from neovim)
Requirement already satisfied (use --upgrade to upgrade): trollius in /usr/local/lib/python2.7/site-packages (from neovim)
Requirement already satisfied (use --upgrade to upgrade): greenlet in /usr/local/lib/python2.7/site-packages (from neovim)
Cleaning up...
$ pip install --upgrade neovim
Requirement already up-to-date: neovim in /usr/local/lib/python2.7/site-packages
Requirement already up-to-date: msgpack-python>=0.4.0 in /usr/local/lib/python2.7/site-packages (from neovim)
Requirement already up-to-date: trollius in /usr/local/lib/python2.7/site-packages (from neovim)
Requirement already up-to-date: greenlet in /usr/local/lib/python2.7/site-packages (from neovim)
Cleaning up...

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

And for my local python:

$ Code: which python
/usr/bin/python
$ python --version
Python 2.7.6

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

Now we're getting somewhere. (I have a todo for a sanity check on VIMRUNTIME, to avoid this confusion...)

$VIMRUNTIME /usr/share/vim/vim73/vim74

That's definitely wrong, I wonder where that came from. Anyways, if you run python REPL in your shell, does import neovim work or show an error?

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

Yes I found that I had exported VIMRUNTIME in my zshrc. Sorry for that. I removed that line and now the runtime works out of the box.

$ python
Python 2.7.6 (default, Sep  9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import neovim
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named neovim

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

Ok, when you installed the neovim python module, did you use sudo? And do you have a restrictive umask? If so, then only root can use the neovim python module (this is a pip bug; apt-get doesn't have this problem).

Are you using virtualenv (for which I cannot offer any insight)?

Somehow or other pip is not making the modules it installs available to you. Some distros use pip2 to specify python 2.x, whereas pip installs python 3.x modules. But the paths in your output above do mention 2.7, so I'm grasping here. But you could try pip2 if it is available.

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

(A quirk and dirty workaround for the above problem is to run Neovim with sudo, e.g. sudo nvim)

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

I tried sudo pip, pip2, sudo pip2, sudo nvim and sudo python. Still getting

No neovim module found for Python 2.7.6.

and

ImportError: No module named neovim

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

Seems like the sudo question is a red herring then. I don't know where to go from here, I'm not a python expert. Does pip work for other packages (do you use python much)?

(We will definitely need to improve the first-impression experience here...)

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

No I actually don't use python at all.

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

pip tells us it's installing to /usr/local/lib/python2.7/site-packages. So let's compare that to what python is actually using. What does this print?

python -c "import site; print(site.getsitepackages())"

If they are different, then there is at least one way to force python to search for packages in other directories: http://stackoverflow.com/a/7901603/152142

FWIW, I will use the information here to update the documentation and make the error messages better.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

They are indeed different:

$ python -c "import site; print(site.getsitepackages())"
[
    '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
    '/Library/Python/2.7/site-packages'
]

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

Ok, so a quick and dirty way to get around this is to use the -d option to tell pip where to put the installed files. Can you try this?

pip install -d /Library/Python/2.7/site-packages neovim

Then neovim + YCM should now work.

It's unfortunate this was such a hassle, but on the other hand, if you want to use things like https://github.com/davidhalter/jedi, you would eventually need to work out the python package installation issues...

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024
$ pip install -d /Library/Python/2.7/site-packages neovim
Downloading/unpacking neovim
  Downloading neovim-0.0.25.tar.gz
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1197, in prepare_files
    do_download,
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1375, in unpack_url
    self.session,
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/download.py", line 578, in unpack_http_url
    _copy_file(temp_location, download_dir, content_type, link)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/download.py", line 468, in _copy_file
    shutil.copy(filename, download_location)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 119, in copy
    copyfile(src, dst)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: u'/Library/Python/2.7/site-packages/neovim-0.0.25.tar.gz'

Storing debug log for failure in /Users/welle/.pip/pip.log
$ sudo pip install -d /Library/Python/2.7/site-packages neovim
Downloading/unpacking neovim
  Downloading neovim-0.0.25.tar.gz
  Saved /Library/Python/2.7/site-packages/neovim-0.0.25.tar.gz
  Running setup.py (path:/private/tmp/pip_build_root/neovim/setup.py) egg_info for package neovim

Downloading/unpacking msgpack-python>=0.4.0 (from neovim)
  Downloading msgpack-python-0.4.2.tar.gz (114kB): 114kB downloaded
  Saved /Library/Python/2.7/site-packages/msgpack-python-0.4.2.tar.gz
  Running setup.py (path:/private/tmp/pip_build_root/msgpack-python/setup.py) egg_info for package msgpack-python

Downloading/unpacking trollius (from neovim)
  Downloading trollius-1.0.4-py27-none-any.whl (107kB): 107kB downloaded
  Saved /Library/Python/2.7/site-packages/trollius-1.0.4-py27-none-any.whl
Downloading/unpacking greenlet (from neovim)
  Downloading greenlet-0.4.5.zip (77kB): 77kB downloaded
  Saved /Library/Python/2.7/site-packages/greenlet-0.4.5.zip
  Running setup.py (path:/private/tmp/pip_build_root/greenlet/setup.py) egg_info for package greenlet

Downloading/unpacking futures (from trollius->neovim)
  Downloading futures-2.2.0-py2.py3-none-any.whl
  Saved /Library/Python/2.7/site-packages/futures-2.2.0-py2.py3-none-any.whl
Successfully downloaded neovim msgpack-python trollius greenlet futures
Cleaning up...
$ python
Python 2.7.6 (default, Sep  9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import neovim
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named neovim
$ sudo python
Python 2.7.6 (default, Sep  9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import neovim
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named neovim

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

Both nvim and sudo nvim still show 0 on :echo has('python').

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

:( Does sudo python -c "import site; print(site.getsitepackages())" report something different by chance?

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

Unfortunately not.

$ sudo python -c "import site; print(site.getsitepackages())"
['/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/Library/Python/2.7/site-packages']

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

I think python wins this one. 💩 I will add an asterisk next to Neovim's marketing fluff such as "Neovim python support just works if you can actually install a python package".

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

Back to square one 😞

But thanks a lot for taking the time to walk me through! Let me know if something else comes to your mind that I could try.

from tmux-complete.vim.

Sean1708 avatar Sean1708 commented on June 22, 2024

@justinmk Sorry to butt in here, I stumbled across this thread by accident but I think I might know what's wrong.

@wellle I notice that your Python executable is in /usr but your modules are being installed into /usr/local could you put the line

export PATH="/usr/local/bin:$PATH"

into the file ~/.bash_profile and try again please?

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

@Sean1708: Thanks for chiming in! Unfortunately /usr/local/bin was already in my PATH:

$ echo $PATH
/Users/welle/Code/go/bin:/Users/welle/.gem/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin

I tried appending it at the very beginning, tried [sudo] pip [--upgrade] neovim, [sudo] python and [sudo] nvim, but nothing was different.

Btw (in case it makes a difference): I'm using zsh and not bash.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

And just in case anything else might be broken in my env:

$ env
PATH=/Users/welle/Code/go/bin:/Users/welle/.gem/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin
TMPDIR=/var/folders/_x/6b_84xrx1xs4yvj7nx7ylzrm0000gn/T/
LOGNAME=welle
XPC_FLAGS=0x0
HOME=/Users/welle
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.abkuXxsjtT/Render
LANG=de_DE.UTF-8
COLORFGBG=12;8
DISPLAY=/private/tmp/com.apple.launchd.PhEbGalCMW/org.macosforge.xquartz:0
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.Z7Xg5TNZ2c/Listeners
USER=welle
ITERM_PROFILE=solarized dark
XPC_SERVICE_NAME=0
TERM_PROGRAM=iTerm.app
SHELL=/bin/zsh
TERM=xterm-256color
PWD=/Users/welle
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
ITERM_SESSION_ID=w1t0p0
SHLVL=1
OLDPWD=/Users/welle
CORRECT_IGNORE=_*
HISTSIZE=2000
HISTFILE=/Users/welle/.zsh/history
SAVEHIST=2000
EDITOR=vim
KEYTIMEOUT=1
WORDCHARS=*?_-.[]~&;!#$%^(){}<>
MANPAGER=col -b | vim -c 'set ft=man ts=8 nomod nolist nonu noma' -
GOROOT=/usr/local/Cellar/go/1.3.1/libexec
GOPATH=/Users/welle/Code/go
GEM_HOME=/Users/welle/.gem
GEM_PATH=/Users/welle/.gem
POSTGRESLOG=/usr/local/var/postgres/server.log
vcs_info_msg_0_=
vcs_info_msg_1_=
_=/usr/bin/env

from tmux-complete.vim.

Sean1708 avatar Sean1708 commented on June 22, 2024

Dammit I thought I was onto a winner :(

Ok, two other things:

  1. What is the output of which pip? You may have already posted it but I can't see it above. Similarly could you post the output of which -a python please.
  2. Have you ever installed a non-system Python?

To me, it looks like you've installed a non-system Python (I'm guessing Homebrew) and used that to install Pip then (possibly because it's been deleted or moved) your computer has gone back to using the system Python but is still using the non-system Pip.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

Oh sorry for the late reply, I must have missed your notification. Anyway, here are which and version of pip and python:

$ which pip
/usr/local/bin/pip
$ pip --version
pip 1.5.6 from /usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg (python 2.7)
$ which python
/usr/bin/python
$ which -a python
/usr/bin/python
$ python --version
Python 2.7.6

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

And it's quite possible that I installed a non system python at some point. Actually it looks like there is a python installed by Homebrew:

$ brew list
autoconf                        fontconfig                      gnuplot                         libtool                         pcre                            rabbitmq                        sqlite
automake                        freetype                        go                              lua                             pkg-config                      ranger                          the_silver_searcher
boost                           gd                              highlight                       macvim                          postgresql                      readline                        tig
cloc                            gdbm                            jpeg                            makedepend                      pyqt5                           reattach-to-user-namespace      tmux
cmake                           gettext                         libevent                        mercurial                       python                          redis                           tree
coreutils                       git                             libpng                          openssl                         python3                         sip                             watch
cscope                          gnu-typist                      libtiff                         ossp-uuid                       qt5                             spark                           xz

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

They are found in these directories:

/usr/local/Cellar/python
/usr/local/Cellar/python3

from tmux-complete.vim.

Sean1708 avatar Sean1708 commented on June 22, 2024

Don't worry about it.

Actually it looks like there is a python installed by Homebrew.

I'm almost certain that's the problem, your system is picking up home-brew's pip but not homebrew's python. From what I remember, homebrew's python was keg-only up until quite recently.

Could you try the following:

$ brew update
$ brew upgrade python
$ brew link python
$ which python

and post any results. You might get a Warning: Already linked: on brew link python but don't worry about it.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

Done:

$ brew update
Updated Homebrew from 60db328d to 23ceee9b.
==> New Formulae
abi-compliance-checker      chinadns-c                  fibjs                       hashcash                    jenv                        makefile2graph              pcsc-lite                   snow                        vpcs
aescrypt-packetizer         closure-linter              finatra                     hh                          jooby-bootstrap             megatools                   pinentry-mac                speech-tools                wakatime-cli
afl-fuzz                    ctunnel                     flow                        homebrew/games/mess         julius                      mitie                       pulse                       spoof-mac                   wellington
aptly                       davmail                     game-music-emu              homebrew/games/minetest     kore                        mvnvm                       queequeg                    src                         whereami
arpon                       deis                        gammaray                    homebrew/games/myman        lastpass-cli                mysql-sandbox               rbenv-bundle-exec           sslmate                     with-readline
asciinema                   distribution                gauge                       homebrew/games/naga         libbpg                      nailgun                     rbenv-bundler-ruby-version  stlink                      yash
atlassian-bamboo            dnscrypt-wrapper            gdnsd                       homebrew/games/ppsspp       libgit2-glib                nave                        redshift                    stoken
baresip                     dsd                         gifify                      homebrew/games/residualvm   libiomp                     nikto                       restund                     synscan
blucat                      ebook-tools                 git-review                  homebrew/games/ume          libjson-rpc-cpp             odo                         rocket                      tippecanoe
bwctl                       epeg                        gitfs                       i2util                      libpointing                 odt2txt                     simple-amqp-client          ucommon
camlp4                      euler-py                    glbinding                   icdiff                      libsoxr                     open-zwave                  skinny                      unarj
carthage                    fabric                      gnatsd                      id3ed                       lsh                         openh264                    smali                       vavrdiasm
cctools                     ffts                        hardlink-osx                idris                       ltl2ba                      osquery                     snappystream                vnu
==> Updated Formulae
a2ps                                               avfs                                               checkbashisms                                      dirmngr                                            freeradius-server
abcde                                              avian                                              checkstyle                                         disco                                              freeswitch
abcm2ps                                            avidemux                                           cherokee                                           disktype                                           freetds
abcmidi                                            avra                                               chibi-scheme                                       dmd                                                freetype
abnfgen                                            aws-cfn-tools                                      chktex                                             dnscrypt-proxy                                     freexl
ace                                                aws-elasticache                                    chromedriver                                       dnsmasq                                            frei0r
ack                                                aws-elasticbeanstalk                               chruby                                             docbook-xsl                                        frescobaldi
acme                                               aws-sns-cli                                        chuck                                              docker                                             fribidi
acpica                                             awscli                                             clamav                                             dockutil                                           fswatch
activemq-cpp                                       babl                                               clasp                                              doitlive                                           fuse4x
adns                                               bacula-fd                                          clhep                                              dos2unix                                           fuse4x-kext
adobe-air-sdk                                      bash-git-prompt                                    clib                                               dovecot                                            fwknop
aescrypt                                           bashdb                                             cliclick                                           doxygen                                            fzf
afflib                                             bashish                                            cln                                                dpkg                                               gcc
afsctool                                           bazaar                                             clojurescript                                      dropbear                                           gdal
aget                                               bchunk                                             cloog                                              dub                                                gdbm
aha                                                bcrypt                                             closure-compiler                                   duo_unix                                           gecode
akka                                               beecrypt                                           cloud-watch                                        duplicity                                          gegl
align                                              berkeley-db4                                       clutter                                            duply                                              geographiclib
alpine                                             betty                                              clutter-gtk                                        duti                                               geoip
amap                                               bfg                                                cmake                                              ec2-ami-tools                                      geoipupdate
amtterm                                            bibtex2html                                        coccinelle                                         ec2-api-tools                                      geos
analog                                             bibutils                                           cocot                                              echoprint-codegen                                  geoserver
android-ndk                                        bind                                               cogl                                               editorconfig                                       getdns
android-platform-tools                             binutils                                           colordiff                                          eet                                                gettext
android-sdk                                        binwalk                                            colormake                                          eigen                                              gforth
ansible                                            bison                                              colortail                                          eina                                               gh
ansifilter                                         bitchx                                             confuse                                            ejabberd                                           ghc
ant                                                bitlbee                                            cookiecutter                                       elasticsearch                                      ghostscript
antlr                                              blink1                                             coq                                                elb-tools                                          gibbslda
apache-spark                                       blitz                                              coreutils                                          emacs                                              gibo
ape                                                blueutil                                           corkscrew                                          embryo                                             git
apgdiff                                            bmon                                               couchdb-lucene                                     emscripten                                         git-annex
apib                                               boost                                              couchpotatoserver                                  enca                                               git-cola
apngasm                                            boost-bcp                                          cpanminus                                          encfs                                              git-crypt
app-engine-java-sdk                                boost-build                                        cpmtools                                           engine_pkcs11                                      git-encrypt
appscale-tools                                     boost-python                                       cppcheck                                           entr                                               git-extras
aqbanking                                          boot2docker                                        cpptest                                            epubcheck                                          git-flow
arangodb                                           boxes                                              cppunit                                            erlang                                             git-flow-avh
argp-standalone                                    bpm-tools                                          cpputest                                           etl                                                git-ftp
argus                                              bro                                                cracklib                                           ettercap                                           git-tf
argus-clients                                      bsdiff                                             cracklib-words                                     euca2ools                                          gitbucket
aria2                                              buildapp                                           cronolog                                           evas                                               giter8
arp-scan                                           bup                                                crosstool-ng                                       exiftool                                           glew
artifactory                                        burp                                               ctags                                              expat                                              glib
asciidoc                                           bvi                                                ctail                                              f3                                                 glib-networking
asn1c                                              cabextract                                         cuetools                                           fakeroot                                           glm
aspell                                             cairo                                              curaengine                                         fastbit                                            global
assimp                                             cairomm                                            curl                                               ffmbc                                              globus-toolkit
astyle                                             camlp5                                             cvs                                                ffmpeg                                             gmime
at-spi2-atk                                        capnp                                              cyassl                                             ffmpeg2theora                                      gmp
at-spi2-core                                       capstone                                           czmq                                               fftw                                               gmtl
atf                                                cassandra                                          d-bus                                              fig                                                gnome-doc-utils
atomicparsley                                      caudec                                             dante                                              findutils                                          gnu-apl
ats2-postiats                                      cc65                                               daq                                                fish                                               gnu-barcode
aubio                                              ccache                                             dar                                                flac                                               gnu-cobol
auctex                                             ccextractor                                        dash                                               fleetctl                                           gnu-getopt
audiofile                                          ccm                                                dateutils                                          flex                                               gnu-indent
augeas                                             cdparanoia                                         datomic                                            flowgrind                                          gnu-prolog
auto-scaling                                       cdrdao                                             davix                                              fltk                                               gnu-sed
autoconf                                           cdrtools                                           dcmtk                                              fontforge                                          gnu-tar
autoconf-archive                                   ceylon                                             debianutils                                        fossil                                             gnu-time
autoenv                                            cfengine                                           dfu-util                                           freealut                                           gnu-units
autojump                                           cgal                                               dgtal                                              freeimage                                          gnu-which
automake                                           cgrep                                              dialog                                             freeipmi                                           gnupg
autossh                                            cheat                                              direnv                                             freeling                                           gnupg2
gnuplot                                            homebrew/games/mame                                jrnl                                               libmpc                                             lzip
gnutls                                             homebrew/games/mednafen                            jruby                                              libnfc                                             macvim
go                                                 homebrew/games/mupen64plus                         jsdoc3                                             libnids                                            magit
go-app-engine-32                                   homebrew/games/mupen64plus-video-glide64mk2        json-c                                             liboauth                                           makedepend
go-app-engine-64                                   homebrew/games/nazghul                             juju                                               libopendkim                                        makeself
goaccess                                           homebrew/games/nethack4                            juju-quickstart                                    liboping                                           mariadb
golo                                               homebrew/games/openttd                             kafka                                              libopkele                                          mat
google-app-engine                                  homebrew/games/rom-tools                           kawa                                               libowfat                                           matlab2tikz
google-perftools                                   homebrew/games/scummvm                             keybase                                            libplist                                           maven
gource                                             homebrew/games/ski                                 knot                                               libpng                                             mawk
gpg-agent                                          homebrew/games/stockfish                           ksh                                                libqalculate                                       mcabber
gpgme                                              homebrew/games/stone-soup                          ktoblzcheck                                        libre                                              md5deep
gphoto2                                            homebrew/games/wesnoth                             kytea                                              libressl                                           md5sha1sum
gpp                                                homebrew/games/xmoto                               kyua                                               librsvg                                            mdp
gputils                                            horndis                                            l-smash                                            libsass                                            mecab-ko-dic
gradle                                             hping                                              lablgtk                                            libscrypt                                          media-info
grails                                             hr                                                 lame                                               libsodium                                          memcached
graphicsmagick                                     html-xml-utils                                     languagetool                                       libspatialite                                      mercurial
graphviz                                           htmlcleaner                                        lasi                                               libspiro                                           metaproxy
grib-api                                           htmlcompressor                                     launch4j                                           libssh2                                            midgard2
gringo                                             htop-osx                                           ld64                                               libstxxl                                           mimms
groonga                                            httperf                                            ldapvi                                             libsvm                                             minbif
groovy                                             httpry                                             ldc                                                libtasn1                                           minidjvu
groovyserv                                         hub                                                ledger                                             libtecla                                           minidlna
gsettings-desktop-schemas                          hydra                                              lensfun                                            libtermkey                                         miniupnpc
gssdp                                              icecast                                            leptonica                                          libtiff                                            minuit2
gst-libav                                          icoutils                                           leveldb                                            libtool                                            miredo
gst-plugins-bad                                    icu4c                                              libass                                             libtorrent                                         mitmproxy
gst-plugins-base                                   id3lib                                             libassuan                                          libtorrent-rasterbar                               mkvdts2ac3
gst-plugins-good                                   ideviceinstaller                                   libav                                              libusb                                             mkvtoolnix
gst-plugins-ugly                                   iftop                                              libb2                                              libusb-compat                                      mldonkey
gstreamer                                          ilmbase                                            libbson                                            libusrsctp                                         mlt
gtk+                                               imagemagick                                        libbtbb                                            libuv                                              moc
gtk+3                                              imap-uw                                            libcdio                                            libvirt                                            modman
gtk-doc                                            imapsync                                           libcec                                             libvo-aacenc                                       monetdb
gtksourceview                                      imlib2                                             libcouchbase                                       libwbxml                                           mongo-c
gtksourceview3                                     influxdb                                           libcppa                                            libxc                                              mongodb
gts                                                inspircd                                           libdap                                             libxml2                                            monit
guile                                              iodine                                             libdbusmenu-qt                                     libxmp                                             mono
gupnp                                              ios-webkit-debug-proxy                             libdrawtext                                        libyaml                                            moreutils
gwenhywfar                                         ipe                                                libebur128                                         libzip                                             mosquitto
gwt                                                iperf3                                             libevent                                           libzzip                                            mozjpeg
gwyddion                                           ircd-hybrid                                        libewf                                             lilypond                                           mp3cat
hadoop                                             ircd-irc2                                          libextractor                                       liquibase                                          mp3splt
hamlib                                             ircii                                              libfixbuf                                          liquidprompt                                       mp3val
hamsterdb                                          irrlicht                                           libfreefare                                        little-cms                                         mp4v2
haproxy                                            irrtoolset                                         libfreenect                                        little-cms2                                        mpd
hardlink                                           irssi                                              libgcrypt                                          lldpd                                              mpfi
harfbuzz                                           isl                                                libgeotiff                                         llvm                                               mpfr
haxe                                               ispc                                               libgetdata                                         lmdb                                               mpg123
hbase                                              itstool                                            libgit2                                            lnav                                               mpich2
hello                                              ivy                                                libgpg-error                                       lockrun                                            mplayer
help2man                                           jags                                               libgphoto2                                         log4c                                              mplayershell
henplus                                            jansson                                            libical                                            log4cxx                                            mpop
heroku-toolbelt                                    jbake                                              libimobiledevice                                   log4shib                                           mr
hevea                                              jboss-forge                                        libkate                                            logentries                                         msgpack
hive                                               jcal                                               libksba                                            logstalgia                                         msmtp
homebrew/games/abuse                               jemalloc                                           liblas                                             logtalk                                            mtr
homebrew/games/cataclysm                           jena                                               liblastfm                                          loudmouth                                          mu
homebrew/games/chocolate-doom                      jenkins                                            liblwgeom                                          lsyncd                                             multimarkdown
homebrew/games/dosbox                              jetty                                              libmagic                                           lua51                                              mysql
homebrew/games/dwarf-fortress                      jigdo                                              libmaxminddb                                       luabind                                            mysql++
homebrew/games/exult                               jmeter                                             libmemcached                                       luajit                                             mysql-cluster
homebrew/games/frobtads                            jpeg                                               libmicrohttpd                                      luarocks                                           mysql-connector-c++
homebrew/games/inform6                             jpeg-turbo                                         libmongoclient                                     lv2                                                nacl
homebrew/games/libtcod                             jpegoptim                                          libmp3splt                                         lz4                                                nagios-plugins
nanomsg                                            pcre                                               python3                                            seexpr                                             the_silver_searcher
nanopb-generator                                   pdf2htmlex                                         q                                                  selecta                                            theora
nasm                                               pdns                                               qbs                                                selenium-server-standalone                         thrift
ncdu                                               pdnsrec                                            qca                                                serd                                               ticcutils
ncmpcpp                                            pdsh                                               qd                                                 sfcgal                                             timbl
ncp                                                pebble-sdk                                         qemu                                               shadowsocks-libev                                  timidity
neko                                               peervpn                                            qjson                                              shellcheck                                         tinyscheme
neo4j                                              percona-server                                     qrencode                                           shiboken                                           tinyxml
net-snmp                                           percona-toolkit                                    qscintilla2                                        shrewsoft-vpn-client                               tinyxml2
netpbm                                             perl                                               qt                                                 siege                                              tmux
nettle                                             perl-build                                         qt5                                                signing-party                                      tomcat
nexus                                              perlmagick                                         quantlib                                           silc-client                                        tomcat-native
nginx                                              pgbadger                                           quilt                                              silk                                               tor
ngrep                                              pgpool-ii                                          qwt                                                sip                                                torsocks
ngrok                                              pgrouting                                          rabbitmq                                           slimerjs                                           trafshow
ngspice                                            pgtap                                              radare2                                            slurm                                              translate-toolkit
nimrod                                             pgtune                                             ragel                                              smake                                              tree
ninja                                              phantomjs                                          rancid                                             snort                                              ttfautohint
nkf                                                pidgin                                             rarian                                             solr                                               tuntap
node                                               pig                                                rasqal                                             sonar                                              tup
npth                                               pinentry                                           rbenv-bundler                                      sord                                               tutum
nrpe                                               pixman                                             rbenv-default-gems                                 spatialindex                                       typesafe-activator
nspr                                               pkg-config                                         rds-command-line-tools                             spatialite-tools                                   unbound
nss                                                plantuml                                           re2                                                spdylay                                            unison
num-utils                                          platypus                                           re2c                                               sphinx                                             unrar
nut                                                plotutils                                          readline                                           spin                                               uriparser
nuttcp                                             plt-racket                                         readosm                                            spiped                                             uru
nvm                                                png2ico                                            rebar                                              spring-roo                                         usbmuxd
nzbget                                             pngcrush                                           reclass                                            sproxy                                             uwsgi
objective-caml                                     pngquant                                           recode                                             sqlcipher                                          vala
ode                                                poco                                               recutils                                           sqlite                                             valabind
ola                                                polarssl                                           redis                                              sqlitebrowser                                      valgrind
onetime                                            polipo                                             renameutils                                        sqoop                                              vcodex
oniguruma                                          poppler                                            rethinkdb                                          sqsh                                               vcprompt
opam                                               portaudio                                          rgbds                                              squid                                              vcsh
open-mpi                                           postgis                                            riak                                               squirrel                                           vert.x
open-scene-graph                                   postgresql                                         ringojs                                            srmio                                              vifm
opencc                                             povray                                             rlwrap                                             srtp                                               vim
openconnect                                        pow                                                robodoc                                            ssdb                                               virtualhost.sh
openexr                                            powerman                                           rocksdb                                            ssdeep                                             virtuoso
openjpeg                                           pplatex                                            rpm                                                ssh-copy-id                                        vmalloc
openrtsp                                           privoxy                                            rrdtool                                            storm                                              volatility
opensc                                             proctools                                          rsnapshot                                          stormfs                                            vpnc
openssl                                            profanity                                          rtmpdump                                           stunnel                                            vrpn
openvpn                                            protobuf                                           rtorrent                                           subversion                                         w3m
optipng                                            protobuf-c                                         ruby                                               svtplay-dl                                         wait_on
opus                                               pth                                                ruby-build                                         swig                                               watch
opus-tools                                         pup                                                s-lang                                             sword                                              watchman
orc                                                pure                                               s3-backer                                          sync_gateway                                       wbox
orientdb                                           pwgen                                              s3fs                                               syncthing                                          webp
osm2pgrouting                                      py2cairo                                           saltstack                                          synfig                                             weechat
osm2pgsql                                          pyenv                                              sane-backends                                      synfigstudio                                       wget
osxfuse                                            pyenv-ccache                                       sassc                                              sysdig                                             wildfly-as
osxutils                                           pyenv-pip-rehash                                   sbt                                                taglib                                             wimlib
owamp                                              pyenv-virtualenv                                   scala                                              talloc                                             wine
p11-kit                                            pyenv-virtualenvwrapper                            scalastyle                                         tbb                                                winetricks
pandoc                                             pyenv-which-ext                                    scamper                                            tcc                                                winexe
pango                                              pygobject                                          schroedinger                                       tcpflow                                            wireshark
pangomm                                            pygobject3                                         scm-manager                                        tcping                                             wla-dx
parallel                                           pygtk                                              screenfetch                                        tcpreplay                                          wxmac
parrot                                             pygtkglext                                         screenresolution                                   terminal-notifier                                  wxpython
pass                                               pypy                                               sdcv                                               terraform                                          wyrd
passenger                                          pypy3                                              sdl                                                tesseract                                          x265
patchutils                                         pyqt                                               sdl_gfx                                            texi2html                                          xapian
pazpar2                                            pyside                                             sdl_image                                          texinfo                                            xctool
pbc                                                python                                             sdl_ttf                                            the_platinum_searcher                              xml-coreutils
xml-security-c                                     xz                                                 yazpp                                              zbackup                                            zshdb
xmlto                                              yajl                                               ykpers                                             zenity                                             zsync
xmp                                                yaml-cpp                                           yle-dl                                             zeromq                                             zxcc
xplanetfx                                          yara                                               youtube-dl                                         zint                                               zzuf
xrootd                                             yasm                                               yubico-piv-tool                                    zookeeper
xulrunner                                          yaz                                                zabbix                                             zsh-syntax-highlighting
==> Deleted Formulae
alpine-chappa            dwm                      geda-gaf                 gobby                    hexchat                  mit-scheme               prooftree                sxiv                     x3270                    yarp
atari++                  dzen2                    geeqie                   gpredict                 imake                    morse                    py3cairo                 sylpheed                 xchat
authexec                 easy-tag                 geomview                 grace                    inkscape                 mscgen                   pyxplot                  tabbed                   xclip
bochs                    feh                      gerbv                    gsmartcontrol            iptux                    mupdf                    rdesktop                 terminator               xdotool
cardpeek                 finch                    ggobi                    gtk-chtheme              itsol                    pari                     rxvt-unicode             tiger-vnc                xdu
clusterit                fox                      giblib                   gtksourceviewmm          kernagic                 pcb                      salt                     transmission-remote-gtk  xournal
curlftpfs                freeglut                 gkrellm                  gtksourceviewmm3         klavaro                  pdf2image                scantailor               ume                      xpa
cwm                      freerdp                  glade                    gtkwave                  meld                     pdf2svg                  smartsim                 upnp-router-control      xpdf
ddd                      fsv                      gle                      gupnp-tools              mesalib-glw              pgplot                   sptk                     viewglob                 xplot
dmenu                    geany                    gnumeric                 hatari                   mess                     pixie                    swi-prolog               wmctrl                   xspringies
$ brew upgrade python
==> Upgrading 1 outdated package, with result:
python 2.7.9
==> Upgrading python
==> Installing dependencies for python: sqlite, openssl
==> Installing python dependency: sqlite
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/sqlite-3.8.7.4.yosemite.bottle.tar.gz
######################################################################## 100,0%
==> Pouring sqlite-3.8.7.4.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

OS X provides an older sqlite3.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/sqlite/lib
    CPPFLAGS: -I/usr/local/opt/sqlite/include

==> Summary
🍺  /usr/local/Cellar/sqlite/3.8.7.4: 9 files, 2,1M
==> Installing python dependency: openssl
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0.1j_1.yosemite.bottle.tar.gz

curl: (56) SSLRead() return error -9806
Error: Failed to download resource "openssl"
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0.1j_1.yosemite.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://www.openssl.org/source/openssl-1.0.1j.tar.gz
######################################################################## 100,0%
==> Patching
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1j_1 --openssldir=/usr/local/etc/openssl no-ssl2 zlib-dynamic shared enable-cms darwin64-x86_64-cc enable-ec_nistp_64_gcc_128
==> make depend
==> make
==> make test
==> make install MANDIR=/usr/local/Cellar/openssl/1.0.1j_1/share/man MANSUFFIX=ssl
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.1j_1: 431 files, 15M, built in 5.1 minutes
==> Installing python
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/python-2.7.9.yosemite.bottle.7.tar.gz
######################################################################## 100,0%
==> Pouring python-2.7.9.yosemite.bottle.7.tar.gz
==> Caveats
Setuptools and Pip have been installed. To update them
  pip install --upgrade setuptools
  pip install --upgrade pip

You can install Python packages with
  pip install <package>

They will install into the site-package directory
  /usr/local/lib/python2.7/site-packages

See: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md

.app bundles were installed.
Run `brew linkapps python` to symlink these to /Applications.
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
  rm '/usr/local/bin/2to3'

To force the link and overwrite all conflicting files:
  brew link --overwrite python

To list all files that would be deleted:
  brew link --overwrite --dry-run python

Possible conflicting files are:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/2to3
/usr/local/bin/2to3-2 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/2to3-2
/usr/local/bin/2to3-2.7 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/2to3-2.7
/usr/local/bin/idle -> /Library/Frameworks/Python.framework/Versions/2.7/bin/idle
/usr/local/bin/idle2 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/idle2
/usr/local/bin/idle2.7 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/idle2.7
/usr/local/bin/pydoc -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pydoc
/usr/local/bin/pydoc2 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pydoc2
/usr/local/bin/pydoc2.7 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pydoc2.7
/usr/local/bin/python-config -> /Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
/usr/local/bin/python2 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
/usr/local/bin/python2-config -> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2-config
/usr/local/bin/python2.7 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
/usr/local/bin/python2.7-config -> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
/usr/local/bin/pythonw -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw
/usr/local/bin/pythonw2 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2
/usr/local/bin/pythonw2.7 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
/usr/local/bin/smtpd.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin/smtpd.py
/usr/local/bin/smtpd2.7.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin/smtpd2.7.py
/usr/local/bin/smtpd2.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin/smtpd2.py
==> /usr/local/Cellar/python/2.7.9/bin/python -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/2.7.9/bin --install-lib=/usr/local/lib/python2.7/site-packages
==> /usr/local/Cellar/python/2.7.9/bin/python -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/2.7.9/bin --install-lib=/usr/local/lib/python2.7/site-packages
==> Summary
🍺  /usr/local/Cellar/python/2.7.9: 4846 files, 79M
$ brew link python
Linking /usr/local/Cellar/python/2.7.9...
Error: Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
  rm '/usr/local/bin/2to3'

To force the link and overwrite all conflicting files:
  brew link --overwrite python

To list all files that would be deleted:
  brew link --overwrite --dry-run python
$ which python
/usr/bin/python

Should I try this?

brew link --overwrite python

from tmux-complete.vim.

Sean1708 avatar Sean1708 commented on June 22, 2024

Run it with --dry-run first, i.e.

$ brew link --overwrite --dry-run python

If 2to3 is the only thing which would be deleted then run it without --dry-run.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024
$ brew link --overwrite --dry-run python
Would remove:
/usr/local/bin/2to3 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/2to3
/usr/local/bin/2to3-2 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/2to3-2
/usr/local/bin/2to3-2.7 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/2to3-2.7
/usr/local/bin/idle -> /Library/Frameworks/Python.framework/Versions/2.7/bin/idle
/usr/local/bin/idle2 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/idle2
/usr/local/bin/idle2.7 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/idle2.7
/usr/local/bin/pydoc -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pydoc
/usr/local/bin/pydoc2 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pydoc2
/usr/local/bin/pydoc2.7 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pydoc2.7
/usr/local/bin/python-config -> /Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
/usr/local/bin/python2 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2
/usr/local/bin/python2-config -> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2-config
/usr/local/bin/python2.7 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
/usr/local/bin/python2.7-config -> /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
/usr/local/bin/pythonw -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw
/usr/local/bin/pythonw2 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2
/usr/local/bin/pythonw2.7 -> /Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
/usr/local/bin/smtpd.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin/smtpd.py
/usr/local/bin/smtpd2.7.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin/smtpd2.7.py
/usr/local/bin/smtpd2.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin/smtpd2.py

from tmux-complete.vim.

Sean1708 avatar Sean1708 commented on June 22, 2024

OK, I think that should be fine (worst case scenario you would just need to recreate the symlinks) but could you run brew doctor quickly please.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: Some directories in /usr/local/share/locale aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:

    /usr/local/share/locale/af
    /usr/local/share/locale/af/LC_MESSAGES
    /usr/local/share/locale/ca
    /usr/local/share/locale/ca/LC_MESSAGES
    /usr/local/share/locale/cs.cp1250
    /usr/local/share/locale/cs.cp1250/LC_MESSAGES
    /usr/local/share/locale/en_GB
    /usr/local/share/locale/en_GB/LC_MESSAGES
    /usr/local/share/locale/eo
    /usr/local/share/locale/eo/LC_MESSAGES
    /usr/local/share/locale/ga
    /usr/local/share/locale/ga/LC_MESSAGES
    /usr/local/share/locale/it
    /usr/local/share/locale/it/LC_MESSAGES
    /usr/local/share/locale/ja
    /usr/local/share/locale/ja/LC_MESSAGES
    /usr/local/share/locale/ja.euc-jp
    /usr/local/share/locale/ja.euc-jp/LC_MESSAGES
    /usr/local/share/locale/ja.sjis
    /usr/local/share/locale/ja.sjis/LC_MESSAGES
    /usr/local/share/locale/ko
    /usr/local/share/locale/ko/LC_MESSAGES
    /usr/local/share/locale/ko.UTF-8
    /usr/local/share/locale/ko.UTF-8/LC_MESSAGES
    /usr/local/share/locale/nb
    /usr/local/share/locale/nb/LC_MESSAGES
    /usr/local/share/locale/no
    /usr/local/share/locale/no/LC_MESSAGES
    /usr/local/share/locale/pl.UTF-8
    /usr/local/share/locale/pl.UTF-8/LC_MESSAGES
    /usr/local/share/locale/pl.cp1250
    /usr/local/share/locale/pl.cp1250/LC_MESSAGES
    /usr/local/share/locale/pt_BR
    /usr/local/share/locale/pt_BR/LC_MESSAGES
    /usr/local/share/locale/ru.cp1251
    /usr/local/share/locale/ru.cp1251/LC_MESSAGES
    /usr/local/share/locale/sk
    /usr/local/share/locale/sk/LC_MESSAGES
    /usr/local/share/locale/sk.cp1250
    /usr/local/share/locale/sk.cp1250/LC_MESSAGES
    /usr/local/share/locale/sv
    /usr/local/share/locale/sv/LC_MESSAGES
    /usr/local/share/locale/uk
    /usr/local/share/locale/uk/LC_MESSAGES
    /usr/local/share/locale/uk.cp1251
    /usr/local/share/locale/uk.cp1251/LC_MESSAGES
    /usr/local/share/locale/vi
    /usr/local/share/locale/vi/LC_MESSAGES
    /usr/local/share/locale/zh_CN.UTF-8
    /usr/local/share/locale/zh_CN.UTF-8/LC_MESSAGES
    /usr/local/share/locale/zh_CN.cp936
    /usr/local/share/locale/zh_CN.cp936/LC_MESSAGES
    /usr/local/share/locale/zh_TW.UTF-8
    /usr/local/share/locale/zh_TW.UTF-8/LC_MESSAGES

Warning: Python is installed at /Library/Frameworks/Python.framework

Homebrew only supports building against the System-provided Python or a
brewed Python. In particular, Pythons installed to /Library can interfere
with other software installs.

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
    /usr/local/include/python2.7/greenlet/greenlet.h

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:

    ossp-uuid
    python

Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
    echo export PATH='/usr/local/sbin:$PATH' >> ~/.bash_profile

Shall I --overwrite?

from tmux-complete.vim.

Sean1708 avatar Sean1708 commented on June 22, 2024

Ok the --overwrite should be fine, give it a go.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024
$ which python
/usr/local/bin/python

And :echo has('python') in neovim show 1 👍

However, when trying to start neovim with youcompleteme, python crashes with this stack trace: https://gist.github.com/wellle/211359b880a11d55bbbb

And this error message:

Error detected while processing function youcompleteme#Enable..<SNR>82_SetUpPython..provider#python#Call:
line    1:
Channel was closed by the client
Press ENTER or type command to continue

But that's already great progress, thanks so far!

from tmux-complete.vim.

Sean1708 avatar Sean1708 commented on June 22, 2024

Awesome, we've got your Python working which is a big plus.

Could you try

$ pip uninstall neovim msgpack-python trollius greenlet
$ pip install neovim

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

I did that, but neovim with youcompleteme still crashes python. I updated the crash log in case anything of importance changed: https://gist.github.com/wellle/211359b880a11d55bbbb

$ pip install neovim
Collecting neovim
  Downloading neovim-0.0.25.tar.gz
Collecting msgpack-python>=0.4.0 (from neovim)
  Downloading msgpack-python-0.4.2.tar.gz (114kB)
    100% |################################| 114kB 1.4MB/s
Collecting trollius (from neovim)
  Downloading trollius-1.0.4-py27-none-any.whl (107kB)
    100% |################################| 110kB 1.6MB/s
Collecting greenlet (from neovim)
  Downloading greenlet-0.4.5.zip (77kB)
    100% |################################| 77kB 1.4MB/s
Requirement already satisfied (use --upgrade to upgrade): futures in /usr/local/lib/python2.7/site-packages (from trollius->neovim)
Installing collected packages: greenlet, trollius, msgpack-python, neovim
  Running setup.py install for greenlet
    building 'greenlet' extension
    clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c greenlet.c -o build/temp.macosx-10.10-x86_64-2.7/greenlet.o
    clang -bundle -undefined dynamic_lookup -L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.10-x86_64-2.7/greenlet.o -o build/lib.macosx-10.10-x86_64-2.7/greenlet.so

  Running setup.py install for msgpack-python
    building 'msgpack._packer' extension
    clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D__LITTLE_ENDIAN__=1 -I. -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c msgpack/_packer.cpp -o build/temp.macosx-10.10-x86_64-2.7/msgpack/_packer.o
    cython_utility:1718:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function]
    static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(char* c_str) {
                                   ^
    msgpack/_packer.cpp:411:29: warning: unused function '__Pyx_Py_UNICODE_strlen' [-Wunused-function]
    static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
                                ^
    cython_utility:1840:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function]
    static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
                                    ^
    cython_utility:136:27: warning: unused function '__Pyx_ErrFetch' [-Wunused-function]
    static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
                              ^
    cython_utility:1296:32: warning: unused function '__Pyx_PyInt_From_long' [-Wunused-function]
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
                                   ^
    cython_utility:1327:26: warning: function '__Pyx_PyInt_As_int' is not needed and will not be emitted [-Wunneeded-internal-declaration]
    static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
                             ^
    6 warnings generated.
    clang++ -bundle -undefined dynamic_lookup -L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.10-x86_64-2.7/msgpack/_packer.o -o build/lib.macosx-10.10-x86_64-2.7/msgpack/_packer.so
    building 'msgpack._unpacker' extension
    clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -D__LITTLE_ENDIAN__=1 -I. -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c msgpack/_unpacker.cpp -o build/temp.macosx-10.10-x86_64-2.7/msgpack/_unpacker.o
    In file included from msgpack/_unpacker.cpp:348:
    msgpack/unpack.h:253:45: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
        py = PyObject_CallFunction(u->ext_hook, "(is#)", typecode, pos, lenght-1);
                                                ^
    cython_utility:1258:28: warning: unused function '__Pyx_PyObject_AsString' [-Wunused-function]
    static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) {
                               ^
    cython_utility:1255:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function]
    static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(char* c_str) {
                                   ^
    msgpack/_unpacker.cpp:410:29: warning: unused function '__Pyx_Py_UNICODE_strlen' [-Wunused-function]
    static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
                                ^
    cython_utility:548:27: warning: unused function '__Pyx_ExceptionSave' [-Wunused-function]
    static CYTHON_INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb) {
                              ^
    cython_utility:833:32: warning: unused function '__Pyx_PyInt_From_long' [-Wunused-function]
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
                                   ^
    cython_utility:864:27: warning: function '__Pyx_PyInt_As_long' is not needed and will not be emitted [-Wunneeded-internal-declaration]
    static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
                              ^
    7 warnings generated.
    clang++ -bundle -undefined dynamic_lookup -L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.10-x86_64-2.7/msgpack/_unpacker.o -o build/lib.macosx-10.10-x86_64-2.7/msgpack/_unpacker.so
  Running setup.py install for neovim
Successfully installed greenlet-0.4.5 msgpack-python-0.4.2 neovim-0.0.25 trollius-1.0.4

from tmux-complete.vim.

Sean1708 avatar Sean1708 commented on June 22, 2024

Unfortunately I think this is as far as my knowledge can take me, sorry. If you post on StackOverflow or somewhere similar (maybe even the Neovim mailing list) you'll get a larger audience and hopefully someone there will be able to help you.

Again, sorry I couldn't fully fix the problem.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

@Sean1708: Don't worry, you've been a huge help. Thanks a lot!

Maybe @justinmk has some more insights now that python is working?

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

Maybe rebuild YCM? Did ycm build without a problem?

from tmux-complete.vim.

Sean1708 avatar Sean1708 commented on June 22, 2024

@wellle Any time.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

@justinmk: After rebuilding youcompleteme it finally works! Thanks 👍

Now I can look into the tmux-complete integration 😉

from tmux-complete.vim.

justinmk avatar justinmk commented on June 22, 2024

🍰 Glad we reached a resolution. Incidentally, regular Vim might work for you now that your python environment is sane...

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

My current Vim doesn't have +python and I'm fine with using neovim to test youcompleteme integration. I might actually start using neovim instead of vim in the near future.

from tmux-complete.vim.

sencer avatar sencer commented on June 22, 2024

Any updates on this one? I moved from neocomplete to ycm -and loved it far better. This is the only thing I miss.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

@sencer: I'll see if I can make any progress this weekend.

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

Actually I've taken a quick look and it seems to work:

  1. I'm using NeoVim (version neovim/neovim@2aa2513, didn't manage to build current master)

  2. In my vimrc/nvimrc I have this (using NeoBundle, but shouldn't be relevant):

    if has('nvim')
        NeoBundle 'Valloric/YouCompleteMe', {'build':{'mac':'./install.sh'}}
        let g:tmuxcomplete#trigger = 'omnifunc'
    endif
  3. In any file, YouCompleteMe seems to work. When typing the beginning of an existing word it gets suggested automatically.

  4. Having a tmux split next to Vim containing words not in my current buffer (I did ls and see Makefile, which is not found in my vimrc which I have open in Vim)

  5. In insert mode, typing Make doesn't suggest anything automatically.

  6. Pressing C-XX-O after Make shows the tmux-complete suggestion Makefile.

  7. Pressing C-Space instead after Make also shows Makefile, so YouCompleteMe is successfully invoking tmux-complete via omnifunc.

Please reopen if this doesn't work for you.

from tmux-complete.vim.

sencer avatar sencer commented on June 22, 2024

OK, that is working. I was expecting to be able to use both tmux completion and whatever omnicompletion exists for a a filetype. I suppose it is not possible with YCM?

from tmux-complete.vim.

wellle avatar wellle commented on June 22, 2024

I guess it might be too slow for realtime suggestions so I think it's better to trigger it explicitly.

from tmux-complete.vim.

sencer avatar sencer commented on June 22, 2024

I am not sure I understand you point.

For example when writing a ruby code with YCM, this is what you get normally: completefunc=youcompleteme#Complete and omnifunc=rubycomplete#Complete.

How can one trigger tmux completion in this case?

from tmux-complete.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.