roxma / python-support.nvim

[DEPRECATED] use a single command :PythonSupportInit to initialize python support for neovim.
25 stars 10 forks source link

error: invalid command 'bdist_wheel' #10

Closed hiqsol closed 7 years ago

hiqsol commented 7 years ago

PythonSupportInitPython2 works just fine, no errors. But when running PythonSupportInitPython3 I receive errors. Here is the full output:

:! /home/sol/.vim/plugged/python-support.nvim/autoload/python3_support.sh 1 neovim

++ dirname /home/sol/.vim/plugged/python-support.nvim/autoload/python3_support.sh
+ cd /home/sol/.vim/plugged/python-support.nvim/autoload
+ echo 'initializing python3 virtualenv for neovim'
+ venv=1
+ shift
initializing python3 virtualenv for neovim
+ [[ 1 == 1 ]]
+ rm -rf nvim_py3
+ python3 -m venv nvim_py3
+ . nvim_py3/bin/activate
++ deactivate nondestructive
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n /bin/bash -o -n '' ']'
++ hash -r
++ '[' -n '' ']'
++ unset VIRTUAL_ENV
++ '[' '!' nondestructive = nondestructive ']'
++ VIRTUAL_ENV=/home/sol/.vim/plugged/python-support.nvim/autoload/nvim_py3
++ export VIRTUAL_ENV
++ _OLD_VIRTUAL_PATH=./vendor/bin:/home/sol/bin:/home/sol/.config/composer/vendor/bin:/home/sol/.local/bin:/home/sol/.gem/ruby/2.0.0/bin:/home/sol/.gem/ruby/1.9.1/bin:/bin:/sbin:/usr/bin:/usr/sbin:/
++ PATH=/home/sol/.vim/plugged/python-support.nvim/autoload/nvim_py3/bin:./vendor/bin:/home/sol/bin:/home/sol/.config/composer/vendor/bin:/home/sol/.local/bin:/home/sol/.gem/ruby/2.0.0/bin:/home/sol
++ export PATH
++ '[' -n '' ']'
++ '[' -z '' ']'
++ _OLD_VIRTUAL_PS1=
++ '[' 'x(nvim_py3) ' '!=' x ']'
++ PS1='(nvim_py3) '
++ export PS1
++ '[' -n /bin/bash -o -n '' ']'
++ hash -r
+ pip install neovim
Collecting neovim
  Using cached neovim-0.1.13.tar.gz
Collecting msgpack-python>=0.4.0 (from neovim)
  Using cached msgpack-python-0.4.8.tar.gz
Collecting greenlet (from neovim)
  Using cached greenlet-0.4.12-cp35-cp35m-manylinux1_x86_64.whl
Building wheels for collected packages: neovim, msgpack-python
  Running setup.py bdist_wheel for neovim: started
  Running setup.py bdist_wheel for neovim: finished with status 'error'
  Complete output from command /home/sol/.vim/plugged/python-support.nvim/autoload/nvim_py3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-idrwm_fk/neovim/setup.py';exec(com
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Running setup.py clean for neovim
  Failed building wheel for neovim
  Running setup.py bdist_wheel for msgpack-python: started
  Running setup.py bdist_wheel for msgpack-python: finished with status 'error'
  Complete output from command /home/sol/.vim/plugged/python-support.nvim/autoload/nvim_py3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-idrwm_fk/msgpack-python/setup.py';
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for msgpack-python
  Running setup.py clean for msgpack-python
Failed to build neovim msgpack-python
Installing collected packages: msgpack-python, greenlet, neovim
  Running setup.py install for msgpack-python: started
    Running setup.py install for msgpack-python: finished with status 'done'
  Running setup.py install for neovim: started
    Running setup.py install for neovim: finished with status 'done'
Successfully installed greenlet-0.4.12 msgpack-python-0.4.8 neovim-0.1.13
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
+ echo 'init finished'
init finished
roxma commented 7 years ago

Looks like pip install neovim fails on your system.

hiqsol commented 7 years ago

Thank you! Manually installed neovim, it helped.

qianlei90 commented 7 years ago

@roxma, I submit a PR to fix this.