With the OSGeo4W installer I see that 2to3 is located at

C:\OSGeo4W64\apps\Python36\Tools\scripts\2to3.py

It made some changes but does not seem to migrate PyQt4 to PyQt5. What am I
doing wrong? I just tried running this on one of my files in this manner
from the OSGeo4W Shell.

python C:\OSGeo4W64\apps\Python36\Tools\scripts\2to3.py -w copyLatLonTool.py

Thanks!!!


> The point is, that some classes have been moved between modules from
> PyQt4 to PyQt5 (e.g. all widgets from QtGui to QtWidgets).
> The migration tool 2to3 can help with this - but only if the imports are
> fully qualified.
>
> There are other ways to upgrade your code than 2to3, the advantage of
> the proposed approach is that it makes your code closer to "best
> practice" - but it's up to you to decide.
>
> Matthias
>
>
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to