Hello all,<div><br></div><div>My co-worker just installed trunk 13865 from svn on Ubuntu 10.04 and got a startup error "<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Couldn't load plugin fTools due an error when calling its classFactory() method". The last line in the error references ui_frmRegPoints.py. I'm running svn 13794, with no problems, and see that my ui_frmRegPoints.py is quite different than his. Since we're both using trunk, I'm guessing an update must have changed something? Any help appreciated, let me know if I should file a bug on this. :)</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">The full error:</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Couldn't load plugin fTools due an error when calling its classFactory() method<br>
<br>Traceback (most recent call last):<br> File "/usr/local/share/qgis/python/qgis/utils.py", line 150, in startPlugin<br> plugins[packageName] = package.classFactory(iface)<br> File "/usr/local/share/qgis/python/plugins/fTools/__init__.py", line<br>
33, in classFactory<br> from fTools import fToolsPlugin<br> File "/usr/local/share/qgis/python/qgis/utils.py", line 291, in _import<br> mod = _builtin_import(name, globals, locals, fromlist, level)<br> File "/usr/local/buildtools/current/sitecustomize/sitecustomize.py",<br>
line 202, in SetupPathsAndImport<br> return real_import(name, globals, locals, fromlist, level)<br> File "/usr/local/share/qgis/python/plugins/fTools/fTools.py", line 47, in<br> import doPointDistance, doPointsInPolygon, doRandom, doRandPoints,<br>
doRegPoints, doDefineProj<br> File "/usr/local/share/qgis/python/qgis/utils.py", line 291, in _import<br> mod = _builtin_import(name, globals, locals, fromlist, level)<br> File "/usr/local/buildtools/current/sitecustomize/sitecustomize.py",<br>
line 202, in SetupPathsAndImport<br> return real_import(name, globals, locals, fromlist, level)<br> File "/usr/local/share/qgis/python/plugins/fTools/tools/doRegPoints.py",<br>line 40, in<br> from ui_frmRegPoints import Ui_Dialog<br>
File "/usr/local/share/qgis/python/qgis/utils.py", line 291, in _import<br> mod = _builtin_import(name, globals, locals, fromlist, level)<br> File "/usr/local/buildtools/current/sitecustomize/sitecustomize.py",<br>
line 202, in SetupPathsAndImport<br> return real_import(name, globals, locals, fromlist, level)<br> File "/usr/local/share/qgis/python/plugins/fTools/tools/ui_frmRegPoints.py",<br>line 23<br> self.QtGui.QApplication.translate("Dialog", "buttonGroup", None,<br>
QtGui.QApplication.UnicodeUTF8) = QtGui.QButtonGroup(Dialog)<br>SyntaxError: can't assign to function call<br><br>Python version:<br>2.6.5 (r265:79063, Apr 16 2010, 14:15:55)<br>[GCC 4.4.3]<br><br><br>QGIS version:<br>
1.5.0-Tethys Tethys, 13865<br><br>Python path: ['/usr/local/share/qgis/python',<br>'/home/mrubinstein/.qgis/python',<br>'/home/mrubinstein/.qgis/python/plugins',<br>'/usr/local/share/qgis/python/plugins',<br>
'/usr/local/buildtools/current/sitecustomize', '/usr/lib/python2.6',<br>'/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',<br>'/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',<br>
'/usr/lib/python2.6/dist-packages',<br>'/usr/lib/python2.6/dist-packages/PIL',<br>'/usr/lib/python2.6/dist-packages/gst-0.10',<br>'/usr/lib/pymodules/python2.6',<br>'/usr/lib/python2.6/dist-packages/gtk-2.0',<br>
'/usr/lib/pymodules/python2.6/gtk-2.0',<br>'/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode',<br>'/usr/local/lib/python2.6/dist-packages',<br>u'/home/mrubinstein/.qgis//python/plugins',<br>
'/usr/local/share/qgis/python/plugins/fTools/tools',<br>'/usr/local/share/qgis/python/plugins/fTools/tools',<br>'/usr/local/share/qgis/python/plugins/fTools/tools']</span></div><meta http-equiv="content-type" content="text/html; charset=utf-8">