Error installing B2 Command Line on MacOS High Sierra
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- Une demi-journée
- Accessibilité débutants
- 20/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- macos, python
- Domaine
- build-system
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 638
- Forks
- 138
- Merge moyen
- 8 h 27 min
- PR mergées (30 j)
- 8
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Backblaze/B2_Command_Line_Tool
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Backblaze/B2_Command_Line_Tool#553 · 2 commentaires · 3 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
Adopt the AI-native SDLC playbook and repository policiesPeut-être pris @goanpeca l’a pris il y a 18 jours. Ouverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
Backblaze/B2_Command_Line_Tool#1192 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
Backblaze/B2_Command_Line_Tool#1168 ·
Les mainteneurs répondent en général sous 1 jour
-
Add to MacPortsOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 50/100
Backblaze/B2_Command_Line_Tool#1161 ·
Les mainteneurs répondent en général sous 1 jour
-
b2 ls timestamps human readableOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 56/100
Backblaze/B2_Command_Line_Tool#1155 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Backblaze/B2_Command_Line_Tool
Issues similaires
-
ライブラリを追加Ouvertepriority middle
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
KATO-Hiro/AtCoderClans#13015 ·
Les mainteneurs répondent en général sous 1 jour
-
StringLiteral to IntegerType/LongType silently truncates fractional strings, changing predicate meaningPeut-être pris @Shahzeb-DataEngineer l’a pris aujourd’hui. Ouvertekind:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
apache/iceberg-python#4382 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
request-theme
Difficulté 2/5 Moins d'une heure Accessibilité débutants 62/100
LizardByte/ThemerrDB#10024 · 2 commentaires ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
btclib-org/btclib-node#2505 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
open-webui/open-webui#34462 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour