[Qgis-user] QGIS, Problem showing the outputs

Paolo Tormene paolo.tormene at globalquakemodel.org
Mon Apr 20 00:29:42 PDT 2020


Dear Hamzeh,
what happens if you open the python console in QGIS and run the following
command?

QgsStyle().defaultStyle().colorRampNames().index('Spectral')

In my QGIS 3.12.1-București running on Ubuntu 18.04.4 LTS, the item
'Spectral' is found in the list, so that command does not raise any
exception. It looks like in your machine the 'Spectral' color ramp name is
not included in that list, for some reason that is not clear to me.

Best regards,
Paolo

On Sun, Apr 19, 2020 at 2:55 PM Alexander Bruy <alexander.bruy at gmail.com>
wrote:

> Hi Hamzeh,
>
> you should contact plugin authors with this issue.
>
> нд, 19 квіт. 2020 о 15:51 Hamzeh Mohammadigheymasi <hamzeh at ubi.pt> пише:
> >
> > Hi
> >
> >  I am running 3.12.1-București on an Ubuntu 18.04. The goal is to run
> OpenQuake IRMT plugin. It runs well and gives the outputs, however, I have
> problems loading the results; more precisely, when I load the outputs, I
> receive the following error:
> >
> >
> > ValueError: 'Spectral' is not in list
> > Traceback (most recent call last):
> >   File
> "/home/shazam/.local/share/QGIS/QGIS3/profiles/default/python/plugins/svir/dialogs/load_gmf_data_as_layer_dialog.py",
> line 165, in accept
> >     super().accept()
> >   File
> "/home/shazam/.local/share/QGIS/QGIS3/profiles/default/python/plugins/svir/dialogs/load_output_as_layer_dialog.py",
> line 875, in accept
> >     self.load_from_npz()
> >   File
> "/home/shazam/.local/share/QGIS/QGIS3/profiles/default/python/plugins/svir/dialogs/load_gmf_data_as_layer_dialog.py",
> line 174, in load_from_npz
> >     self.iface, self.output_type)
> >   File
> "/home/shazam/.local/share/QGIS/QGIS3/profiles/default/python/plugins/svir/dialogs/load_output_as_layer_dialog.py",
> line 581, in style_maps
> >     ramp_type_idx = default_color_ramp_names.index('Spectral')
> > ValueError: 'Spectral' is not in list
> >
> >
> > Please help me to solve the problem.
> >
> > Best Regards,
> > Hamzeh
> > _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> --
> Alexander Bruy
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



-- 

*PAOLO TORMENE* senior software developer +39 0382 5169882

*GLOBAL EARTHQUAKE MODEL * working together to assess risk

*GEM -* globalquakemodel.org <http://www.globalquakemodel.org> *T -*
@GEMwrld <http://twitter.com/GEMwrld> *F -* GEMwrld
<http://www.facebook.com/GEMwrld>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20200420/6af25af9/attachment.html>


More information about the Qgis-user mailing list