<div dir="ltr"><div><div>With the OSGeo4W installer I see that 2to3 is located at<br><br>C:\OSGeo4W64\apps\Python36\Tools\scripts\2to3.py<br><br></div>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.<br><br>python C:\OSGeo4W64\apps\Python36\Tools\scripts\2to3.py -w copyLatLonTool.py<br><br></div>Thanks!!!<br><div><br><div><div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The point is, that some classes have been moved between modules from<br>
PyQt4 to PyQt5 (e.g. all widgets from QtGui to QtWidgets).<br>
The migration tool 2to3 can help with this - but only if the imports are<br>
fully qualified.<br>
<br>
There are other ways to upgrade your code than 2to3, the advantage of<br>
the proposed approach is that it makes your code closer to "best<br>
practice" - but it's up to you to decide.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
Matthias<br>
</font></span><span class="gmail-im gmail-HOEnZb"></span><br></blockquote></div></div></div></div></div></div></div>