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: jp4w...@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@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to