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: Hi there! It seems there is a small error in the documentation (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: 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: I'm trying to install the 'six' package on pycharm. how???? Who can help me? Thank you so much!!! Sent from Mail for Windows 10 -------------- next part -------------- An HTML attachment was scrubbed... URL: 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: References: Message-ID: 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 wrote: > I'm trying to install the 'six' package on pycharm. how???? > > Who can help me? Thank you so much!!! > > > > Sent from Mail 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: 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: 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 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 can help; pip install coverage) 3. Learn the differences between Python 2 & 3 4. Use Futurize (or Modernize ) to update your code (e.g. pip install future) 5. Use Pylint to help make sure you don?t regress on your Python 3 support (pip install pylint) 6. Use 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 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 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: newerror.png Type: image/png Size: 192973 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: stillgetUnicoderror.png Type: image/png Size: 179330 bytes Desc: not available URL: 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: References: Message-ID: 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 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 > > > 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 > can help; pip install coverage) > 3. Learn the differences between Python 2 & 3 > 4. Use Futurize > (or Modernize ) > to update your code (e.g. pip install future) > 5. Use Pylint to help make sure you > don?t regress on your Python 3 support (pip install pylint) > 6. Use 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 > 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 > 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: