Error installing B2 Command Line on MacOS High Sierra

Đang mở
#587 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
macos, python
Lĩnh vực
build-system

Hướng nghiên cứu

The failure comes from the setup.py egg_info step when pip builds the b2-1.4.0 source tarball under the system Python 2.7 on macOS, which reports that setuptools 20.2 or later is required. Start by checking the packaging metadata and setup.py in the repository for the setuptools requirement and whether Python 2.7 is still supported. Done means a clean install path on that platform, or a documented requirement that explains the failure.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

invalid/environmental question

I'm not very familiar with command line use or terminal, just enough to cut/paste from instructions, but since I'm going to add B2 to my account I thought tje command line tool should be added to my account. I followed the installation instructions on: https://www.backblaze.com/b2/docs/quick_command_line.html
down through the "ignore-installed" work around but still get an error.

What should I do now? If I upgraded to Mojave before installing would that solve it?

Here is a transcript from Terminal when trying to install B2 command line tool:

[John-Office:~] john% sudo easy_install pip
Password:
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 19.2.3
Downloading https://files.pythonhosted.org/packages/00/9e/4c83a0950d8bdec0b4ca72afd2f9cea92d08eb7c1a768363f2ea458d08b4/pip-19.2.3.tar.gz#sha256=e7a31f147974362e6c82d84b91c7f2bdf57e4d3163d3d454e6c3e71944d67135
Processing pip-19.2.3.tar.gz
Writing /tmp/easy_install-lqWrgs/pip-19.2.3/setup.cfg
Running pip-19.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-lqWrgs/pip-19.2.3/egg-dist-tmp-mnWggw
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
warning: no files found matching 'docs/docutils.conf'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'tox.ini'
warning: no files found matching 'Makefile' under directory 'docs'
warning: no files found matching '.bat' under directory 'docs'
warning: no previously-included files found matching 'src/pip/_vendor/six'
warning: no previously-included files found matching 'src/pip/_vendor/six/moves'
warning: no previously-included files matching '
.pyi' found under directory 'src/pip/_vendor'
no previously-included directories found matching '.github'
no previously-included directories found matching '.azure-pipelines'
no previously-included directories found matching 'docs/build'
no previously-included directories found matching 'news'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
no previously-included directories found matching 'tools'
creating /Library/Python/2.7/site-packages/pip-19.2.3-py2.7.egg
Extracting pip-19.2.3-py2.7.egg to /Library/Python/2.7/site-packages
Adding pip 19.2.3 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/pip-19.2.3-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

[John-Office:~] john% sudo pip install --upgrade b2
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting b2
Downloading https://files.pythonhosted.org/packages/90/b6/71ec542b76ea5a282dd2c2fb6f8427d90e3397e5db59593510667f14f236/b2-1.4.0.tar.gz (42kB)
|████████████████████████████████| 51kB 1.8MB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-TDdma3/b2/setup.py'"'"'; file='"'"'/private/tmp/pip-install-TDdma3/b2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /private/tmp/pip-install-TDdma3/b2/
Complete output (1 lines):
setuptools 20.2 or later is required. To fix, try running: pip install "setuptools>=20.2"
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

[John-Office:~] john% pip install "setuptools>=20.2"
pip: Command not found.

[John-Office:~] john% sudo pip install --upgrade --ignore-installed b2
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting b2
Using cached https://files.pythonhosted.org/packages/90/b6/71ec542b76ea5a282dd2c2fb6f8427d90e3397e5db59593510667f14f236/b2-1.4.0.tar.gz
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-XHHC_R/b2/setup.py'"'"'; file='"'"'/private/tmp/pip-install-XHHC_R/b2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /private/tmp/pip-install-XHHC_R/b2/
Complete output (1 lines):
setuptools 20.2 or later is required. To fix, try running: pip install "setuptools>=20.2"
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Ngôn ngữ chính
Python
Star
638
Fork
138
Merge trung bình
8 giờ 27 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Backblaze/B2_Command_Line_Tool

Tất cả issue của Backblaze/B2_Command_Line_Tool

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.