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

Docs update / Installation through pip not working #544

Closed
mariobaldini opened this issue Jan 25, 2019 · 1 comment
Closed

Docs update / Installation through pip not working #544

mariobaldini opened this issue Jan 25, 2019 · 1 comment

Comments

@mariobaldini
Copy link

When I tried to install b2 through pip, following the README of this repository, the installation itself works but the command is not found (even after terminal restart)


mario@latitude:~$ pip install b2
Collecting b2
Collecting arrow<0.12.1,>=0.8.0 (from b2)
Collecting futures>=3.0.5; python_version < "3.2" (from b2)
  Using cached https://files.pythonhosted.org/packages/2d/99/b2c4e9d5a30f6471e410a146232b4118e697fa3ffc06d6a65efde84debd0/futures-3.2.0-py2-none-any.whl
Collecting six>=1.10 (from b2)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting tqdm>=4.5.0 (from b2)
  Using cached https://files.pythonhosted.org/packages/ed/d6/3458d39cf4978f4ece846295e83daf5ece710ab0a4106774f7f7b3a68697/tqdm-4.29.1-py2.py3-none-any.whl
Collecting requests>=2.9.1 (from b2)
  Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl
Collecting logfury>=0.1.2 (from b2)
  Using cached https://files.pythonhosted.org/packages/55/71/c70df1ef41721b554c91982ebde423a5cf594261aa5132e39ade9196fa3b/logfury-0.1.2-py2.py3-none-any.whl
Collecting backports.functools-lru-cache==1.2.1 (from arrow<0.12.1,>=0.8.0->b2)
  Using cached https://files.pythonhosted.org/packages/d1/0e/c473e3c37c34fea699d85d5b9e3caf712813c4cd2dcc0a5a64ec2a6867f7/backports.functools_lru_cache-1.2.1-py2.py3-none-any.whl
Collecting python-dateutil (from arrow<0.12.1,>=0.8.0->b2)
  Using cached https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.9.1->b2)
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<2.9,>=2.5 (from requests>=2.9.1->b2)
  Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests>=2.9.1->b2)
  Using cached https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl
Collecting urllib3<1.25,>=1.21.1 (from requests>=2.9.1->b2)
  Using cached https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl
Collecting funcsigs (from logfury>=0.1.2->b2)
  Using cached https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Installing collected packages: backports.functools-lru-cache, six, python-dateutil, arrow, futures, tqdm, chardet, idna, certifi, urllib3, requests, funcsigs, logfury, b2
Successfully installed arrow-0.12.0 b2-1.3.8 backports.functools-lru-cache-1.2.1 certifi-2018.11.29 chardet-3.0.4 funcsigs-1.0.2 futures-3.2.0 idna-2.8 logfury-0.1.2 python-dateutil-2.7.5 requests-2.21.0 six-1.12.0 tqdm-4.29.1 urllib3-1.24.1


mario@latitude:~$ pip list | grep b2
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
b2 (1.3.8)
configparser (3.5.0b2)
mario@latitude:~$ 


mario@latitude:~$ b2

Command 'b2' not found, but can be installed with:

sudo apt install libboost1.67-tools-dev
sudo apt install libboost1.65-tools-dev

mario@latitude:~$ 

I can only install the tool using the instructions found here: https://www.backblaze.com/b2/docs/quick_command_line.html

mario@latitude:/arquivos/sdk/B2_Command_Line_Tool$ b2 version
b2 command line tool, version 1.3.9
mario@latitude:/arquivos/sdk/B2_Command_Line_Tool$ 

Which worked just fine.

I think the README.md of this repo could be updated with the instruction that works (install from git clone), or changed for the pip install work -- so people that land here directly can easily install it.

@gabrielbdsantos
Copy link

gabrielbdsantos commented Jan 30, 2019

I had the same issue. It seems to be a missing dependency in the arrow package (as discussed here arrow-py/arrow/issues/495).

A simple pip install backports.functools_lru_cache should fix it.

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

No branches or pull requests

2 participants