Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: invalid command 'bdist_wheel' when install pyls #70

Closed
fcying opened this issue Jan 6, 2020 · 11 comments · Fixed by #74
Closed

error: invalid command 'bdist_wheel' when install pyls #70

fcying opened this issue Jan 6, 2020 · 11 comments · Fixed by #74

Comments

@fcying
Copy link

fcying commented Jan 6, 2020

but after install , pyls can work, Does this error have any effect ?

  Running setup.py bdist_wheel for future ... error
  Complete output from command /home/fcying/.vim/.cache/lsp_settings/pyls/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-laf3r_xx/future/setup.py';f=getattr(tokenize, 'open', op
en)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-3vshusay --python-tag cp37:
  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 future
  Running setup.py clean for future
Failed to build future
Installing collected packages: ujson, parso, jedi, more-itertools, zipp, importlib-metadata, pluggy, future, python-jsonrpc-server, python-language-server
  Running setup.py install for future ... done
Successfully installed future-0.18.2 importlib-metadata-1.3.0 jedi-0.15.2 more-itertools-8.0.2 parso-0.5.2 pluggy-0.13.1 python-jsonrpc-server-0.3.2 python-language-server-0.31.4 ujson-1.35 zipp-0.6.0
@mattn
Copy link
Owner

mattn commented Jan 6, 2020

Which version of python do you use?

@fcying
Copy link
Author

fcying commented Jan 6, 2020

python --version
Python 2.7.16

python3 --version
Python 3.7.3

@mattn
Copy link
Owner

mattn commented Jan 6, 2020

vim-lsp-settings does not support Python2. So /path/to/the/python must be Python3 always.

@fcying
Copy link
Author

fcying commented Jan 6, 2020

I saw that python3 is specified in pip_install.sh, Does this no effect?? Can it directly specify python3?

@fcying
Copy link
Author

fcying commented Jan 6, 2020

I change python ln, but the error is also

sudo ln -sf /usr/bin/python3 /usr/bin/python
python --version
Python 3.7.3

@mattn
Copy link
Owner

mattn commented Jan 6, 2020

Ooops, sorry. I looked only Windows installer.

https://github.com/mattn/vim-lsp-settings/blob/master/installer/pip_install.cmd#L6

@mattn
Copy link
Owner

mattn commented Jan 6, 2020

So, please undo the operation #70 (comment)

What OS do you use? Which way of installation instruction of python?

@fcying
Copy link
Author

fcying commented Jan 6, 2020

debian 10 stable.
install by apt

@mattn
Copy link
Owner

mattn commented Jan 6, 2020

Thanks. Could you please try this patch?

diff --git a/installer/pip_install.sh b/installer/pip_install.sh
index b5ee120..4e3014d 100755
--- a/installer/pip_install.sh
+++ b/installer/pip_install.sh
@@ -6,5 +6,6 @@
 set -e
 python3 -m venv ./venv
+./venv/bin/pip3 install -U pip
 ./venv/bin/pip3 install "$2"
 ln -s "./venv/bin/$1" .

@fcying
Copy link
Author

fcying commented Jan 7, 2020

great, after update pip, it have not error.

@fcying fcying closed this as completed Jan 7, 2020
@mattn
Copy link
Owner

mattn commented Jan 7, 2020

Okay, will fix pip_install.sh

mattn added a commit that referenced this issue Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants