Rafficer / linux-cli-community

Linux command-line client for ProtonVPN. Written in Python.
https://protonvpn.com
GNU General Public License v3.0
1.3k stars 196 forks source link

[BUG] installation problems, missing dependency python-wheel/python3-wheel #11

Open thekevinday opened 4 years ago

thekevinday commented 4 years ago

Describe the bug Failed to install due to missing dependency: python-wheel or python3-wheel.

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/ProtonVPN/protonvpn-cli-ng.git
  2. cd protonvpn-cli-ng.
  3. sudo pip3 install .
  4. See error

Expected behavior Install correctly.

Error Messages/Program Output/Log Messages (~/.pvpn-cli/pvpn-cli.log)

Building wheels for collected packages: protonvpn-cli
  Running setup.py bdist_wheel for protonvpn-cli ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-n2qfegib-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpu_f150_6pip-wheel- --python-tag cp35:
  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'

Desktop (please complete the following information):

Additional context I looked at the documentation to try and figure out why there were missing dependencies. The requirements.txt lists docopt, requests, pythondialog but does not list python-wheel or python3-wheel (Source: https://github.com/pypa/wheel .

TauSigma5 commented 4 years ago

Hi, can you provide some information as to how this can be reproduced, some more context as to what you entered to cause this error and some OS info? You can see the bug report template for more information if you would like.

Rafficer commented 4 years ago

The requirements.txt file should more or less be ignored, it's just an easy way to install the requirements if you want to develop the CLI, and then you should use a virtualenv and then pip works as well.

I don't understand what you're trying to do with that text file if you just want to install the CLI? That's nowhere documented.

thekevinday commented 4 years ago

It's a Linux distribution called Antix: https://antixlinux.com/

My installation command is: sudo pip3 install .

The requirements.txt comment was just an observation I made. Everywhere else the documentation has pip3 but in that one case, the documentation has pip.

I will edit the main post more according to the template.

Rafficer commented 4 years ago

Install the python3-setuptools package from your distros repos.

thekevinday commented 4 years ago

# sudo apt install python3-setuptools Results:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-setuptools is already the newest version (33.1.1-1).
Rafficer commented 4 years ago

I just tested on Debian 9, which this distro is apparently based on and it works flawlessly.

The wheel package should typically be already installed. Though might be good to add additional comments to the manual installation for the future.