[Qgis-developer] ftools startup error ui_frmRegPoints.py

Jamie Adams jaadfoo at gmail.com
Thu Jul 1 15:56:43 EDT 2010


Hello all,

My co-worker just installed trunk 13865 from svn on Ubuntu 10.04 and got a
startup error "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.  :)

The full error:

Couldn't load plugin fTools due an error when calling its classFactory()
method

Traceback (most recent call last):
 File "/usr/local/share/qgis/python/qgis/utils.py", line 150, in startPlugin
   plugins[packageName] = package.classFactory(iface)
 File "/usr/local/share/qgis/python/plugins/fTools/__init__.py", line
33, in classFactory
   from fTools import fToolsPlugin
 File "/usr/local/share/qgis/python/qgis/utils.py", line 291, in _import
   mod = _builtin_import(name, globals, locals, fromlist, level)
 File "/usr/local/buildtools/current/sitecustomize/sitecustomize.py",
line 202, in SetupPathsAndImport
   return real_import(name, globals, locals, fromlist, level)
 File "/usr/local/share/qgis/python/plugins/fTools/fTools.py", line 47, in
   import doPointDistance, doPointsInPolygon, doRandom, doRandPoints,
doRegPoints, doDefineProj
 File "/usr/local/share/qgis/python/qgis/utils.py", line 291, in _import
   mod = _builtin_import(name, globals, locals, fromlist, level)
 File "/usr/local/buildtools/current/sitecustomize/sitecustomize.py",
line 202, in SetupPathsAndImport
   return real_import(name, globals, locals, fromlist, level)
 File "/usr/local/share/qgis/python/plugins/fTools/tools/doRegPoints.py",
line 40, in
   from ui_frmRegPoints import Ui_Dialog
 File "/usr/local/share/qgis/python/qgis/utils.py", line 291, in _import
   mod = _builtin_import(name, globals, locals, fromlist, level)
 File "/usr/local/buildtools/current/sitecustomize/sitecustomize.py",
line 202, in SetupPathsAndImport
   return real_import(name, globals, locals, fromlist, level)
 File
"/usr/local/share/qgis/python/plugins/fTools/tools/ui_frmRegPoints.py",
line 23
   self.QtGui.QApplication.translate("Dialog", "buttonGroup", None,
QtGui.QApplication.UnicodeUTF8) = QtGui.QButtonGroup(Dialog)
SyntaxError: can't assign to function call

Python version:
2.6.5 (r265:79063, Apr 16 2010, 14:15:55)
[GCC 4.4.3]


QGIS version:
1.5.0-Tethys Tethys, 13865

Python path: ['/usr/local/share/qgis/python',
'/home/mrubinstein/.qgis/python',
'/home/mrubinstein/.qgis/python/plugins',
'/usr/local/share/qgis/python/plugins',
'/usr/local/buildtools/current/sitecustomize', '/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages/PIL',
'/usr/lib/python2.6/dist-packages/gst-0.10',
'/usr/lib/pymodules/python2.6',
'/usr/lib/python2.6/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.6/gtk-2.0',
'/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode',
'/usr/local/lib/python2.6/dist-packages',
u'/home/mrubinstein/.qgis//python/plugins',
'/usr/local/share/qgis/python/plugins/fTools/tools',
'/usr/local/share/qgis/python/plugins/fTools/tools',
'/usr/local/share/qgis/python/plugins/fTools/tools']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100701/2e062bac/attachment-0001.html


More information about the Qgis-developer mailing list