[Qgis-user] Re: plugin_installer error

Nik Go nikolai.go at gmail.com
Sun Mar 15 21:50:42 PDT 2009


By the way, I encountered this problem on version 0.9.8. I just found verion
0.9.9 here<http://spatialserver.net/pyqgis_1.0/plugins/plugin_installer.zip>but
encountered what seems to be the same problem.

 Couldn't load plugin plugin_installer due an error when calling its
initGui() method

Traceback (most recent call last):
  File "", line 1, in
  File
"/home/erwin/.qgis//python/plugins/plugin_installer/installer_plugin.py",
line 53, in initGui
    self.action = QAction(self.getThemeIcon("plugin_installer.png"),
QCoreApplication.translate("QgsPluginInstaller","Fetch Python Plugins..."),
self.mainWindow())
  File
"/home/erwin/.qgis//python/plugins/plugin_installer/installer_plugin.py",
line 37, in getThemeIcon
    myCurThemePath = QgsApplication.activeThemePath() + "/plugins/" +
theName;
TypeError: unsupported operand type(s) for +: 'QTextCodec' and 'str'

Python version:
2.5.2 (r252:60911, Oct  5 2008, 19:49:54)
[GCC 4.3.2]

Python path:
['/usr/share/qgis/python', '/home/erwin/.qgis//python/plugins',
'/usr/share/qgis/python/plugins', '/usr/lib/python2.5',
'/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
'/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/Numeric',
'/usr/lib/python2.5/site-packages/PIL',
'/usr/lib/python2.5/site-packages/gst-0.10',
'/var/lib/python-support/python2.5',
'/usr/lib/python2.5/site-packages/gtk-2.0',
'/var/lib/python-support/python2.5/gtk-2.0',
'/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
'/home/erwin/.qgis/python/plugins/fTools/tools']


I'm confused as to why fTools is working fine but the plugin_installer is
not.


On Mon, Mar 16, 2009 at 10:54 AM, Nik Go <nikolai.go at gmail.com> wrote:

>
> I'm using Ubuntu 64-bit Intrepid and QGIS 1.0.1 Kore.
>
> I manually installed the ftools plugin in ~/.qgis/python/plugins/ and it
> works but the plugin_installer in the same path gets me an error:
>
> Couldn't load plugin plugin_installer due an error when calling its
> initGui() method
>
> Traceback (most recent call last):
>   File "", line 1, in
>   File
> "/home/erwin/.qgis//python/plugins/plugin_installer/installer_plugin.py",
> line 43, in initGui
>     self.iface.pluginMenu().insertAction(nextAction,self.action)
> TypeError: argument 1 of QWidget.insertAction() has an invalid type
>
> Python version:
> 2.5.2 (r252:60911, Oct  5 2008, 19:49:54)
> [GCC 4.3.2]
>
> Python path:
> ['/usr/share/qgis/python', '/home/erwin/.qgis//python/plugins',
> '/usr/share/qgis/python/plugins', '/usr/lib/python2.5',
> '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
> '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages/Numeric',
> '/usr/lib/python2.5/site-packages/PIL',
> '/usr/lib/python2.5/site-packages/gst-0.10',
> '/var/lib/python-support/python2.5',
> '/usr/lib/python2.5/site-packages/gtk-2.0',
> '/var/lib/python-support/python2.5/gtk-2.0',
> '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
> '/home/erwin/.qgis/python/plugins/fTools/tools']
>
>
> How do I fix this? Why is there a double slash in there?
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20090316/9df1174e/attachment.html>


More information about the Qgis-user mailing list