From jorgeonieva at gmail.com  Mon May  7 12:12:20 2018
From: jorgeonieva at gmail.com (Jorge Onieva)
Date: Mon, 7 May 2018 12:12:20 -0400
Subject: [Python-porting] Small error in documentation
Message-ID: <EDDFB0AB-BE45-4FAB-A369-56A52C0E3665@gmail.com>

Hi there!

It seems there is a small error in the documentation (http://python-future.org/compatible_idioms.html <http://python-future.org/compatible_idioms.html>)

There is a line that says:

from builtins import itervalues

But I think that itervalues function is in future.utils, same as iteritems, so it should say

from future.utils import itervalues

Cheers!

Jorge Onieva

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20180507/ae41f697/attachment.html>

From Vancuong8395 at outlook.com  Thu May 17 08:42:22 2018
From: Vancuong8395 at outlook.com (Tran Cuong)
Date: Thu, 17 May 2018 12:42:22 +0000
Subject: [Python-porting] How can I install it on pycharm? (Python 2 and 3
 compatibility library)
Message-ID: <BMXPR01MB069504E17DC756FDB4798AB4D2910@BMXPR01MB0695.INDPRD01.PROD.OUTLOOK.COM>

I'm trying to install the 'six' package on pycharm. how????
Who can help me? Thank you so much!!!

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20180517/687bd298/attachment.html>

From brett at python.org  Sun May 20 15:07:30 2018
From: brett at python.org (Brett Cannon)
Date: Sun, 20 May 2018 12:07:30 -0700
Subject: [Python-porting] How can I install it on pycharm? (Python 2 and
 3 compatibility library)
In-Reply-To: <BMXPR01MB069504E17DC756FDB4798AB4D2910@BMXPR01MB0695.INDPRD01.PROD.OUTLOOK.COM>
References: <BMXPR01MB069504E17DC756FDB4798AB4D2910@BMXPR01MB0695.INDPRD01.PROD.OUTLOOK.COM>
Message-ID: <CAP1=2W7JtU2nTPNmmoTjBL=xhZD2HnQwHKQhf7Kz=PB1_5d8_A@mail.gmail.com>

I don't think we can be of up as this mailing list is for discussing how to
port Python code, not technical support for IDEs.

On Thu, 17 May 2018 at 12:47 Tran Cuong <Vancuong8395 at outlook.com> wrote:

> I'm trying to install the 'six' package on pycharm. how????
>
> Who can help me? Thank you so much!!!
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
> _______________________________________________
> Python-porting mailing list
> Python-porting at python.org
> https://mail.python.org/mailman/listinfo/python-porting
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20180520/9315b344/attachment.html>

From luciofromitaly at gmail.com  Sat May 26 07:59:25 2018
From: luciofromitaly at gmail.com (lucio iams)
Date: Sat, 26 May 2018 07:59:25 -0400
Subject: [Python-porting] error in running script converted with 2to3.py
Message-ID: <CAELm711y+Rjt_O2Z0fp1eMdehiLYqV7scDOBMD5vDTEoKX0WhQ@mail.gmail.com>

hello python

i still cant seem to run a script originnaly written in python2.x (dont
really know the version) that i converted with no errors to python 3.6.4
with 2to3.py..but when i run the script i still get these errrors messages
which i atached as pics

if you can kindly let me know where i need to debug or solve this

also i followed the pip install steps you have on your website

i installed all the modules below in my sysytem python 3..is this correct?/
.or do i have to install to python 2.7???....after that i did nit run any
of this modules yet as i dont know exactly the procedure

The Short Explanation
<https://docs.python.org/3/howto/pyporting.html#the-short-explanation>

To make your project be single-source Python 2/3 compatible, the basic
steps are:

   1. Only worry about supporting Python 2.7
   2. Make sure you have good test coverage (coverage.py
   <https://pypi.org/project/coverage> can help; pip install coverage)
   3. Learn the differences between Python 2 & 3
   4. Use Futurize <http://python-future.org/automatic_conversion.html> (or
   Modernize <https://python-modernize.readthedocs.org/en/latest/>) to
   update your code (e.g. pip install future)
   5. Use Pylint <https://pypi.org/project/pylint> to help make sure you
   don?t regress on your Python 3 support (pip install pylint)
   6. Use caniusepython3 <https://pypi.org/project/caniusepython3> to find
   out which of your dependencies are blocking your use of Python 3 (pip
   install caniusepython3)
   7. Once your dependencies are no longer blocking you, use continuous
   integration to make sure you stay compatible with Python 2 & 3 (tox
   <https://pypi.org/project/tox> can help test against multiple versions
   of Python; pip install tox)
   8. Consider using optional static type checking to make sure your type
   usage works in both Python 2 & 3 (e.g. use mypy <http://mypy-lang.org/>
   to check your typing under both Python 2 & Python 3).

thnxz for any debug update to solve this script

tommy
438 871 4344
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20180526/83e0e7fe/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newerror.png
Type: image/png
Size: 192973 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-porting/attachments/20180526/83e0e7fe/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stillgetUnicoderror.png
Type: image/png
Size: 179330 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-porting/attachments/20180526/83e0e7fe/attachment-0003.png>

From brett at python.org  Tue May 29 12:19:05 2018
From: brett at python.org (Brett Cannon)
Date: Tue, 29 May 2018 09:19:05 -0700
Subject: [Python-porting] error in running script converted with 2to3.py
In-Reply-To: <CAELm711y+Rjt_O2Z0fp1eMdehiLYqV7scDOBMD5vDTEoKX0WhQ@mail.gmail.com>
References: <CAELm711y+Rjt_O2Z0fp1eMdehiLYqV7scDOBMD5vDTEoKX0WhQ@mail.gmail.com>
Message-ID: <CAP1=2W4L8hzT9UWcp5bTjpRnGLf6xTUjtaBSWQA_Q3xfb7+wnA@mail.gmail.com>

Converting your code using 2to3 doesn't fix everything since there are
certain semantics that the tools can't infer. In your case it looks like
you're trying to read something that doesn't decode to Unicode the way it
used to. You will have to look at what encoding the text actually is and be
explicit about reading it appropriately.

On Tue, 29 May 2018 at 05:23 lucio iams <luciofromitaly at gmail.com> wrote:

> hello python
>
> i still cant seem to run a script originnaly written in python2.x (dont
> really know the version) that i converted with no errors to python 3.6.4
> with 2to3.py..but when i run the script i still get these errrors messages
> which i atached as pics
>
> if you can kindly let me know where i need to debug or solve this
>
> also i followed the pip install steps you have on your website
>
> i installed all the modules below in my sysytem python 3..is this
> correct?/ .or do i have to install to python 2.7???....after that i did nit
> run any of this modules yet as i dont know exactly the procedure
>
> The Short Explanation
> <https://docs.python.org/3/howto/pyporting.html#the-short-explanation>
>
> To make your project be single-source Python 2/3 compatible, the basic
> steps are:
>
>    1. Only worry about supporting Python 2.7
>    2. Make sure you have good test coverage (coverage.py
>    <https://pypi.org/project/coverage> can help; pip install coverage)
>    3. Learn the differences between Python 2 & 3
>    4. Use Futurize <http://python-future.org/automatic_conversion.html>
>    (or Modernize <https://python-modernize.readthedocs.org/en/latest/>)
>    to update your code (e.g. pip install future)
>    5. Use Pylint <https://pypi.org/project/pylint> to help make sure you
>    don?t regress on your Python 3 support (pip install pylint)
>    6. Use caniusepython3 <https://pypi.org/project/caniusepython3> to
>    find out which of your dependencies are blocking your use of Python 3 (
>    pip install caniusepython3)
>    7. Once your dependencies are no longer blocking you, use continuous
>    integration to make sure you stay compatible with Python 2 & 3 (tox
>    <https://pypi.org/project/tox> can help test against multiple versions
>    of Python; pip install tox)
>    8. Consider using optional static type checking to make sure your type
>    usage works in both Python 2 & 3 (e.g. use mypy <http://mypy-lang.org/>
>    to check your typing under both Python 2 & Python 3).
>
> thnxz for any debug update to solve this script
>
> tommy
> 438 871 4344 <(438)%20871-4344>
> _______________________________________________
> Python-porting mailing list
> Python-porting at python.org
> https://mail.python.org/mailman/listinfo/python-porting
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20180529/8be10b56/attachment.html>