- edited description
Installation error
My environment was CentOS 6.5,
"pip list" command was showing following:
-
ansible (1.6.1)
-
boto (2.27.0)
-
iniparse (0.3.1)
-
Jinja2 (2.7.2)
-
MarkupSafe (0.9.2)
-
paramiko (1.14.0)
-
pip (1.5.6)
-
pycrypto (2.0.1)
-
pycurl (7.19.0)
-
pygpgme (0.1)
-
PyYAML (3.11)
-
requests (2.3.0)
-
setuptools (3.6)
-
urlgrabber (3.9.1)
-
yum-metadata-parser (1.1.2)
I tried to install bitbucket-cli with following command: pip install bitbucket-cli the command done with success but when I run bb create --help, I got following error:
Traceback (most recent call last):
File "/usr/bin/bb", line 9, in <module>
load_entry_point('bitbucket-cli==0.4.1', 'console_scripts', 'bb')()
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2431, in load_entry_point
return ep.load()
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2147, in load
['__name__'])
File "/usr/lib/python2.6/site-packages/bitbucket/__init__.py", line 2, in <module>
import cli
File "/usr/lib/python2.6/site-packages/bitbucket/cli.py", line 5, in <module>
import argparse
ImportError: No module named argparse
I installed argparse with following command: "pip install argparse"
The "bb create --help" was fine after that.
There could be 2 kinds of fix for this error:
-
Configure bitbucket-cli pip package setting to let pip automatically install dependencies such as argparse
-
Adding "pip install argparse" in Installation section on Overview page (https://bitbucket.org/zhemao/bitbucket-cli)
Comments (5)
-
reporter -
repo owner I believe CentOS still uses Python 2.5, which does not have the argparse module. This program does not support versions of Python older than 2.6.
-
repo owner - changed status to resolved
Unsupported Python version.
-
I'm getting the same error. Python 2.6.6
-
For Python < 2.7, you can install the argparse backport library:
pip install argparse
- Log in to comment