python 3

Asked by Frank P Esposito

I have python 3.x on my computer -- do I have to remove it and install 2.x to get Bazaar to

Will there be a python3 version of bazaar


Question information

English Edit question
Bazaar Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John A Meinel (jameinel) said :

Almost always you can have both python 2 and 3 installed at the same time.
Just install python 2 in the same way you installed 3.
There might be a python3 port in the future, but right now it is a lot of
work to do the port, but not much to gain. 2.7 will be supported for a long
time, and bzr will need to continue to support it for a while.

On May 16, 2013 11:06 PM, "Frank P Esposito" <
<email address hidden>> wrote:

> New question #229048 on Bazaar:
> I have python 3.x on my computer -- do I have to remove it and install
> 2.x to get Bazaar to
> work?
> Will there be a python3 version of bazaar
> Thanks
> --
> You received this question notification because you are an answer
> contact for Bazaar.

Revision history for this message
Richard Gomes (frgomes) said :

Imagine you are coding in Python3 and obviously using Bazaar.

Now imagine you would like to push sources onto PyPI. This is easy:

    $ python3 sdist --formats=zip upload

Well... it should be easy like this. Unfortunately, this DOES NOT WORK WITH BAZAAR :(

This is where the gain is: adoption of Bazaar and platform.

The proposed way to circumvent the difficulty, i.e: use Python2 for deployment onto PyPI, is not acceptable because this would force me to guarantee backward compatibility with Python2. The point is: there are improvements in Python3 syntax and there are improvements in the development process which would not be feasible if you have to guarantee that it compiles with Python2 too.

There's another way to circumvent is: use manifests instead.
I simply don't like this solution. Why? Because the SCM is there to do that for us.

More information:
This is an easy fix: one line of code.
This is another easy fix: simply download the latest


Revision history for this message
Vincent Ladeuil (vila) said :

I think this question should be discussed on the mailing list where you'll reach a wider audience and get a better feeling of who may be interested to help.

It *is* an important topic for which the only long term solution for newer ubuntu versions will require that python-2.7 is still in main if bazaar want to remain in main instead of universe.

If you're interested in driving this discussion forward, then <email address hidden> and <email address hidden> sound like the most appropriate places.

Revision history for this message
Richard Gomes (frgomes) said :

Hello Vincent,

Thanks a lot for your feedback.

My interest is restricted to bugs
which directly affect my workflow.

As detailed in, there's chance that "bzr" from the operating system could be used with Python3. This would alleviate the need of porting bzr to Python3.

Thanks a lot,

-- Richard

Revision history for this message
Alfred Morgan (zectbumo) said (last edit ):

I get this error a lot now when using bzr+ssh commands. @jameinel said "2.7 will be supported for a long time" I'm wondering now how long is "long"?

/usr/local/lib/python2.7/site-packages/paramiko/ CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
  from cryptography.hazmat.backends import default_backend

Revision history for this message
Sean Grimstone (seangrimstone) said :

Python 3 has several advantages over other programming languages like C++ and Java when it comes to speed and efficiency. It also makes it easier for developers to develop applications because they do not have to worry about compatibility issues with older versions of Python or external libraries used by their applications.

Can you help with this problem?

Provide an answer of your own, or ask Frank P Esposito for more information if necessary.

To post a message you must log in.