[Qgis-user] Error installing qgis2leaf

Jesús jesusl.temez at gmail.com
Fri Apr 25 13:35:37 PDT 2014


I can install the plugin with this trick, but doesn¹t works, gives me too
many errors


El 25/04/14 19:13, "Jorge Tornero" <jtorlistas at gmail.com> escribió:

>> > Dear Jesus et al
>> > by the way, that line of code is in the file
>> > qgis2leaf.py 
>> > <https://github.com/Geolicious/qgis2leaf/blob/master/qgis2leaf.py>
>> > which is in your plugins/qgis2leaf directory
>> > 
>> > All the best
>> > 
>> > Jorge Tornero
>> > 
>> > 
>> > 2014-04-25 19:11 GMT+02:00 Jorge Tornero <jtorlistas at gmail.com>:
>>> > Hello, Jesus
>>> > It happen to me once trying to run a plugin under macOS and the problem
>>> was 
>>> > in:
>>> > localePath = os.path.join(self.plugin_dir, 'i18n',
>>> > 'qgis2leaf_{}.qm'.format(locale))
>>> > read this:
>>> > 
>>> 
http://stackoverflow.com/questions/10054122/valueerror-zero-length-field-nam>>>
e-
>>> > in-format-pytho
>>> > and try to change the line to
>>> > localePath = os.path.join(self.plugin_dir, 'i18n',
>>> > 'qgis2leaf_{0}.qm'.format(locale))
>>> > It worked for me, despite I see maybe that's a ugly workaround
>>> > Best regards
>>> > 
>>> > 
>>> > 2014-04-25 19:01 GMT+02:00 Jesús <jesusl.temez at gmail.com>:
>>> > 
>>>> > I get this error trying to install the new qgis2leaf plugin in QGIS 2.0:
>>>> > zero lenght field name in format.
>>>> > This plugin works only in 2.2? Any idea on how to solve the error?
>>>> > 
>>>> > TIA
>>>> > 
>>>> > 
>>>> > _______________________________________________
>>>> > Qgis-user mailing list
>>>> > Qgis-user at lists.osgeo.org
>>>> > http://lists.osgeo.org/mailman/listinfo/qgis-user
>>> > 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140425/2ea72f77/attachment.html>


More information about the Qgis-user mailing list