[Qgis-user] error loading python qgis plugin

Ron Bentley rtbentley at gmail.com
Sat Aug 23 09:33:09 PDT 2008


I'm running on vanilla Debian, but my Python version is virtually 
identical to yours.  (I am running the Io version of QGIS, 0.10.0.)  I 
modified the example "newlayer" plugin to run with your "def initGui()" 
section (at least the first part) and it started without any problems. 
I'm attaching the Python for that plugin.

Having run the plugin, here's what I see from the Python console -- just 
for you to compare:

 >>> print sys.path
['/home/rbentley/.qgis//python/plugins', '/usr/share/qgis/python', 
'/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/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']

 >>> print sys.version
2.5.2 (r252:60911, Jul 25 2008, 23:18:13) [GCC 4.3.1]

I'd be glad to try to run a stripped down version of your full plugin if 
you could tar up the plugin directory.

Ron Bentley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testplug.py
Type: text/x-python
Size: 1109 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20080823/8762ab6c/attachment.py>


More information about the Qgis-user mailing list