QGIS MultiQML fails to apply styles to raster vectors

Bug #1468711 reported by Karl Kastner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qgis (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When trying to apply a style with MultiQML to Landsat raster vectors the following error is displayed:

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/home/pia/.qgis2/python/plugins/multiqml/multiqml.py", line 98, in on_pbnApplyStyle_clicked
    self.myPluginMessage( QCoreApplication.translate("MultiQmlDlg", "Unable to apply vector qml style \"%1\" to raster layer \"%2\".")\
AttributeError: 'unicode' object has no attribute 'arg'

Python version:
2.7.6 (default, Mar 22 2014, 23:03:41)
[GCC 4.8.2]

QGIS version:
2.0.1-Dufour Dufour, exported

Python path: ['/usr/share/qgis/python/plugins/processing', '/usr/share/qgis/python', '/home/pia/.qgis2/python', '/home/pia/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/home/pia/.qgis2/python/plugins/mmqgis/forms', '/usr/share/qgis/python/plugins/fTools/tools', '/home/pia/phd/dat/kapuas/gis']

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: qgis 2.0.1-2build2 [modified: usr/bin/qbrowser usr/bin/qgis]
ProcVersionSignature: Ubuntu 3.13.0-55.92-generic 3.13.11-ckt20
Uname: Linux 3.13.0-55-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jun 25 12:01:34 2015
InstallationDate: Installed on 2015-03-17 (99 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: qgis
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Karl Kastner (kastner-karl) wrote :
Revision history for this message
Karl Kastner (kastner-karl) wrote :

Apparently the transparency information is also not stored in the style file. Setting the default style only applies the style when the same image is imported again, but not to other images, which is pointless.

Revision history for this message
Johan Van de Wauw (johanvdw) wrote :

Hello Karl,

You may want to consider using a repository with a more recent version of qgis, eg the one of ubuntugis:

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
#If you already have qgis installed:
sudo apt-get upgrade
#If you don't already have it:
sudo apt-get install qgis

Revision history for this message
Bas Couwenberg (sebastic) wrote :

Should be fixed in the mean time.

Changed in qgis (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.