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
work?

Will there be a python3 version of bazaar

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John A Meinel (jameinel) said :
#1

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.

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

> New question #229048 on Bazaar:
> https://answers.launchpad.net/bzr/+question/229048
>
> 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 :
#2

Imagine you are coding in Python3 and obviously using Bazaar.

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

    $ python3 setup.py 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 Launchpad.net 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:

https://bugs.launchpad.net/setuptoolsbzr/+bug/887518
This is an easy fix: one line of code.

https://bugs.launchpad.net/setuptoolsbzr/+bug/1254288
This is another easy fix: simply download the latest ez_setup.py

Thanks

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

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 :
#4

Hello Vincent,

Thanks a lot for your feedback.

My interest is restricted to bugs
   https://bugs.launchpad.net/setuptoolsbzr/+bug/887518
   https://bugs.launchpad.net/setuptoolsbzr/+bug/1254288
which directly affect my workflow.

As detailed in https://bugs.launchpad.net/setuptoolsbzr/+bug/1254288, 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 ):
#5

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/transport.py:33: 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 (last edit ):
#6
Revision history for this message
Sean Grimstone (seangrimstone) said :
#7

Python 3 has several advantages over other programming languages like C++ and Java when it comes to speed and efficiency however, people need to check this https://www.techtimes.com/articles/273397/20220323/importance-of-hiring-professional-resume-writing-services.htm site to enhance their writing abilities. 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.