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

JIA Pei jp4work at gmail.com
Fri Oct 7 23:38:21 PDT 2016


Hi, Nyall:

Thank you for your prompt reply.
I actually git out the source code from https://github.com/qgis/QGIS
 directly, but failed to build against python3.
So, is *daily master build* that you mentioned just *nightly build* from
http://www.qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

That is to say: https://github.com/qgis/QGIS master is different from  *nightly
build* from
http://www.qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu ????


Thank you



On Fri, Oct 7, 2016 at 4:09 PM, Nyall Dawson <nyall.dawson at gmail.com> wrote:

> On 8 Oct 2016 8:43 AM, "JIA Pei" <jp4work at gmail.com> wrote:
> >
> >
> > 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???
>
> Qgis 3.0, due early next year, will be python 3.0/qt5 exclusive.
>
> If you're keen, you can grab the current master source and build a python
> 3 compatible version from that. There's also daily master builds available
> for debian/Ubuntu ( not windows yet).
>
> Nyall
> >
> >
> > --
> >
> > Pei JIA, Ph.D.
> >
> > Email: jp4work at gmail.com
> > 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
> > Qgis-user at lists.osgeo.org
> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 

Pei JIA, Ph.D.

Email: jp4work at gmail.com
cell in Canada:    +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20161007/8e148faf/attachment.html>


More information about the Qgis-user mailing list