bitbucket-cli is not python 3 compatible
Hi!
bitbucket-cli has at least some print statments somewhere:
(uber3-2)andreas@asterix:~/projects/uber/total_20151202$ bitbucket Traceback (most recent call last): File "/home/andreas/.virtualenvs/uber3-2/bin/bitbucket", line 7, in <module> from bitbucket.cli import run File "/home/andreas/.virtualenvs/uber3-2/lib/python3.4/site-packages/bitbucket/init.py", line 1, in <module> from .repositories import * File "/home/andreas/.virtualenvs/uber3-2/lib/python3.4/site-packages/bitbucket/repositories.py", line 25 print r.content
Comments (8)
-
-
I ran into the same issue. I'm trying to create a new repo, this is the command I ran bitbucket create --private --protocol ssh --scm git <repo_name>
-
@morgan-kilgore can you paste traceback?
-
Traceback (most recent call last): File "/Users/johria/.pyenv/versions/3.6.2/bin/bitbucket", line 11, in <module> load_entry_point('bitbucket-cli==0.5.1', 'console_scripts', 'bitbucket')() File "/Users/johria/.pyenv/versions/3.6.2/lib/python3.6/site-packages/pkg_resources/init.py", line 565, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/Users/johria/.pyenv/versions/3.6.2/lib/python3.6/site-packages/pkg_resources/init.py", line 2631, in load_entry_point return ep.load() File "/Users/johria/.pyenv/versions/3.6.2/lib/python3.6/site-packages/pkg_resources/init.py", line 2291, in load return self.resolve() File "/Users/johria/.pyenv/versions/3.6.2/lib/python3.6/site-packages/pkg_resources/init.py", line 2297, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/Users/johria/.pyenv/versions/3.6.2/lib/python3.6/site-packages/bitbucket/init.py", line 1, in <module> from .repositories import * File "/Users/johria/.pyenv/versions/3.6.2/lib/python3.6/site-packages/bitbucket/repositories.py", line 25 print r.content ^ SyntaxError: Missing parentheses in call to 'print'
-
Hi, I tried simple "bb --version" and got:
Traceback (most recent call last): File "/usr/bin/bb", line 11, in <module> load_entry_point('bitbucket-cli==0.5.1', 'console_scripts', 'bb')() File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 572, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 2755, in load_entry_point return ep.load() File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 2408, in load return self.resolve() File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 2414, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/lib/python3.6/site-packages/bitbucket/init.py", line 1, in <module> from .repositories import * File "/usr/lib/python3.6/site-packages/bitbucket/repositories.py", line 25 print r.content ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print r.content)?
-
Same problem here. I'm running on Windows - Python 3.6.5
-
-
@aljohri I have taken your changes as a starting point and vendored the command in another package that I use called FluidDevOps (released on pypi and in development as a hg repo). Warning: The
bitbucket
command is still in development, as I think there might be some commands which no longer work. I want to be sure everything works before I release it.Comments, issue reports and pull requests welcome if anyone's interested.
- Log in to comment
So far I can use it fine under PY3. Which command exactly throws this error?