[Qgis-user] Python3 support of qgis...

Nicolas Cadieux nicolas.cadieux at archeotec.ca
Fri Oct 7 16:07:30 PDT 2016


Hi,
The next major version (3.x) upgrade will not be on 2.7. I am not a dev (so don't quote me on that) but they are upgrading a number of libraries like QT.
Nicolas

> Le 7 oct. 2016 à 18:43, JIA Pei [via OSGeo.org] <ml-node+s1560n5289851h42 at n6.nabble.com> a écrit :
> 
> 
> Hi, all:
> 
> I tried to convert all python files from being compatible with python2 to being compatible with python3, with "2to3", but it still has a lot of the error messages as follows:
> 
> 
>> RefactoringTool: Warnings/messages while refactoring:
>> RefactoringTool: ### In file ./python/ext-libs/future/future/backports/email/charset.py ###
>> RefactoringTool: Line 5: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/future/future/builtins/misc.py ###
>> RefactoringTool: Line 104: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/future/future/moves/urllib/request.py ###
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 38: could not convert: from urllib import *
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: Line 39: could not convert: from urllib2 import * 
>> RefactoringTool: Cannot handle star imports.
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/compiler.py ###
>> RefactoringTool: Line 19: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/ext.py ###
>> RefactoringTool: Line 23: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/filters.py ###
>> RefactoringTool: Line 21: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/lexer.py ### 
>> RefactoringTool: Line 23: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/nodes.py ### 
>> RefactoringTool: Line 19: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/parser.py ###
>> RefactoringTool: Line 14: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/runtime.py ###
>> RefactoringTool: Line 17: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/testsuite/api.py ###
>> RefactoringTool: Line 17: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/testsuite/ext.py ###
>> RefactoringTool: Line 20: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/testsuite/lexnparse.py ###
>> RefactoringTool: Line 17: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/jinja2/_compat.py ###
>> RefactoringTool: Line 86: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/requests/packages/urllib3/packages/six.py ###
>> RefactoringTool: Line 232: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/ext-libs/six.py ###
>> RefactoringTool: Line 525: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/plugins/db_manager/dlg_sql_layer_window.py ###
>> RefactoringTool: Line 25: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./python/plugins/db_manager/dlg_sql_window.py ###
>> RefactoringTool: Line 25: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./tests/src/python/test_provider_postgres.py ###
>> RefactoringTool: Line 9: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: ### In file ./tests/src/python/test_qgsvectorfilewriter.py ###
>> RefactoringTool: Line 9: Calls to builtin next() possibly shadowed by global binding
>> RefactoringTool: There were 4 errors:
>> RefactoringTool: Can't parse ./python/ext-libs/future/future/backports/http/client.py: ParseError: bad input: type=22, value=u'=', context=('', (395, 41))
>> RefactoringTool: Can't parse ./python/ext-libs/future/future/backports/test/support.py: ParseError: bad input: type=22, value=u'=', context=('', (909, 41))
>> RefactoringTool: Can't parse ./scripts/parse_dash_results.py: ParseError: bad input: type=1, value=u'exec', context=('', (354, 6))
>> RefactoringTool: Can't parse ./tests/src/python/qgis_wrapped_server.py: ParseError: bad input: type=22, value=u'=', context=('', (105, 55))
> 
> 
> 
> Is there a plan to convert qgis to be fully compatible with python3???
> 
> 
> -- 
> 
> Pei JIA, Ph.D.
> 
> Email: [hidden email]
> cell in Canada:    +1 778-863-5816
> cell in China: +86 186-8244-3503
> 
> Welcome to Vision Open
> http://www.visionopen.com
> 
> _______________________________________________ 
> Qgis-user mailing list 
> [hidden email] 
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://osgeo-org.1560.x6.nabble.com/Python3-support-of-qgis-tp5289851.html
> To start a new topic under Quantum GIS - User, email ml-node+s1560n4125267h38 at n6.nabble.com 
> To unsubscribe from Quantum GIS - User, click here.
> NAML




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Python3-support-of-qgis-tp5289851p5289852.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20161007/602a39db/attachment.html>


More information about the Qgis-user mailing list