[Qgis-developer] Error updateing color ramps

Etienne Tourigny etourigny.dev at gmail.com
Wed Mar 20 18:53:27 PDT 2013


That's rather odd... I ran it the day before yesterday without problems

does the directory exist? /home/paolo/.qgis//python/plugins/test_plug

Please modify the script to contain the following lines and run again
(untested).

        # fix permissions: dirs are 755, files are 644
        print('datadir: '+str(datadir))
        for root, dirs, files in os.walk(datadir):
            os.chmod(root,0755)
            print('root: '+str(root))
            for f in files:
                print('f: '+str(f))
                os.chmod(os.path.join(root,f),0644)

Which install directory are you using in the color ramp manager?

Etienne
On Wed, Mar 20, 2013 at 12:49 PM, Paolo Cavallini <cavallini at faunalia.it> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all.
> I'm getting an error while updating my color ramps:
>
> =====================================
> Errore durante l'esecuzione di codice Python:
>
> Traceback (most recent call last):
>   File
> "/home/paolo/.qgis//python/plugins/colorrampmanager/colorrampmanager.py",
> line 151, in on_pbtnUpdateCheck_clicked
>     self.checkUpdate('',True,self.dlg.windowTitle())
>   File
> "/home/paolo/.qgis//python/plugins/colorrampmanager/colorrampmanager.py",
> line 192, in checkUpdate
>     return self.installUpdate(installDir,gui,title)
>   File
> "/home/paolo/.qgis//python/plugins/colorrampmanager/colorrampmanager.py",
> line 220, in installUpdate
>     (ret,version) = cpt_city_update( installDir, True, packageType )
>   File
> "/home/paolo/.qgis//python/plugins/colorrampmanager/cpt_city_update.py",
> line 263, in cpt_city_update
>     os.chmod(os.path.join(root,f),0644)
> OSError: [Errno 2] File o directory non esistente:
> '/home/paolo/.qgis//python/plugins/test_plug'
> =====================================
>
> Any hint?
>
> All the best.
> - --
> Paolo Cavallini - Faunalia
> www.faunalia.eu
> Full contact details at www.faunalia.eu/pc
> Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlFJ2nIACgkQ/NedwLUzIr6ulQCdH/c57rGPiYa7PHNh84fsiXCF
> oA0AoK2+irk1cNBN31qz/xAu1acsYG1A
> =80HF
> -----END PGP SIGNATURE-----
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list