[Qgis-user] Problem installing Profile plugin

Guido Paliaga gpaliaga at gmail.com
Wed Nov 14 14:01:02 PST 2012


Hi all,

I have the same problem: it works at first and then gives the error:

Errore durante l'esecuzione di codice Python:

Traceback (most recent call last):
  File "/Users/Guido/.qgis//python/plugins/profiletool/profileplugin.py",
line 278, in changePlotLibrary
    self.wdg.addPlotWidget(self.plotlibrary)
  File
"/Users/Guido/.qgis//python/plugins/profiletool/ui/ui_ptdockwidget.py",
line 143, in addPlotWidget
    self.plotWdg = PlottingTool().changePlotWidget("Matplotlib",
self.frame_for_plot)
  File
"/Users/Guido/.qgis//python/plugins/profiletool/tools/plottingtool.py",
line 82, in changePlotWidget
    fig = Figure( (1.0, 1.0), linewidth=0.0, subplotpars =
figure.SubplotParams(left=0, bottom=0, right=1, top=1, wspace=0, hspace=0) )
NameError: global name 'figure' is not defined

Versione Python:
2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]


Versione di QGIS:
1.8.0-Lisboa Lisboa,

Percorso Python: ['/Users/Guido/.qgis//python/plugins/sextante_taudem',
'/Applications/QGIS.app/Contents/MacOS/../Resources/python',
'/Users/Guido/.qgis//python', '/Users/Guido/.qgis//python/plugins',
'/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins',
'/Library/Frameworks/SQLite3.framework/Versions/3/Python/2.7',
'/Library/Python/2.7/site-packages/numpy-override',
'/Library/Frameworks/GDAL.framework/Versions/1.9/Python/2.7/site-packages',
'/Library/Frameworks/cairo.framework/Versions/1/Python/2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages',
'/Library/Python/2.7/site-packages/PIL',
'/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools',
'/Users/Guido/Documents/Progetti/In itinere/Oman/IBRI/Progetti GIS']


Thanks,

Guido



2012/11/13 Etienne Tourigny <etourigny.dev at gmail.com>

> ok, I just wanted to know which file/line, because there are a few
> places where 'figure()' is called.  Thanks
>
> On Tue, Nov 13, 2012 at 2:22 PM, William Kyngesburye
> <woklist at kyngchaos.com> wrote:
> > The error is now the same as Pedro's:
> >
> > ...
> > NameError: global name 'figure' is not defined
> >
> > I can poke around later and see if I can get a case where it works
> again...
> >
> > On Nov 13, 2012, at 10:11 AM, Etienne Tourigny wrote:
> >
> >> It may be the call to changePlotWidget() which might not have happened
> >> the first time. Please post error message to the related bug report
> >>
> >> http://hub.qgis.org/issues/6678
> >>
> >> thanks
> >> Etienne
> >>
> >> On Tue, Nov 13, 2012 at 1:38 PM, William Kyngesburye
> >> <woklist at kyngchaos.com> wrote:
> >>> Oh rats!  Now I get the missing figure error every time - looks like
> it only worked the first time after I installed the profiletool plugin.
> >>>
> >>> On Nov 13, 2012, at 9:26 AM, William Kyngesburye wrote:
> >>>
> >>>> I just tried a simple profile, no problems with matplotlib 1.1.1
> while QGIS is running, but there was an error when quitting:
> >>>>
> >>>> Error while unloading plugin profiletool
> >>>>
> >>>> Traceback (most recent call last):
> >>>> File
> "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py",
> line 213, in unloadPlugin
> >>>>   plugins[packageName].unload()
> >>>> File
> "/Users/kyngchaos/.qgis//python/plugins/profiletool/profileplugin.py", line
> 80, in unload
> >>>>   self.wdg.close()
> >>>> RuntimeError: wrapped C/C++ object of %S has been deleted
> >>>>
> >
> >
> > -----
> > William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> > http://www.kyngchaos.com/
> >
> > Earth: "Mostly harmless"
> >
> > - revised entry in the HitchHiker's Guide to the Galaxy
> >
> >
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 
-----------------------------------------------
Dott. Geol. Guido Paliaga, PhD
Mobile +39 335 6901747
Skypeid: gpaliaga
<gpaliaga at gmail.com>gpaliaga at gmail.com
<paliaga at geologiliguria.it>paliaga at geologiliguria.it
Posta certificata: gpaliaga at epap.sicurezzapostale.it
www.edizioniilpiviere.com
www.guidopaliaga.com

--------------------------------
Think before you print: Rispetta l'ambiente: se non ti è necessario, non
stampare questa mail.

Le informazioni contenute nella presente comunicazione e i relativi
allegati possono essere riservate e sono, comunque, destinate
esclusivamente alle persone o alla Società sopraindicati. La diffusione,
distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi
soggetto diverso dal destinatario è proibita, sia ai sensi dell’art. 616
c.p. , che ai sensi del D.Lgs. n. 196/2003. Se avete ricevuto questo
messaggio per errore, vi preghiamo di distruggerlo e di informarci
immediatamente  inviando un messaggio all’indirizzo e-mail
gpaliaga at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20121114/c48fb743/attachment.html>


More information about the Qgis-user mailing list