<HTML>
<HEAD>
<TITLE>Re: [Qgis-user] Error installing qgis2leaf</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:9pt'>I can install the plugin with this trick, but doesn’t works, gives me too many errors<BR>
<BR>
<BR>
El 25/04/14 19:13, "Jorge Tornero" <<a href="jtorlistas@gmail.com">jtorlistas@gmail.com</a>> escribió:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:9pt'>> Dear Jesus et al<BR>
> by the way, that line of code is in the file<BR>
> </SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:10pt'>qgis2leaf.py <BR>
> <<a href="https://github.com/Geolicious/qgis2leaf/blob/master/qgis2leaf.py">https://github.com/Geolicious/qgis2leaf/blob/master/qgis2leaf.py</a>> <BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:9pt'>> which is in your plugins/qgis2leaf directory<BR>
> <BR>
> All the best<BR>
> <BR>
> Jorge Tornero<BR>
> <BR>
> <BR>
> 2014-04-25 19:11 GMT+02:00 Jorge Tornero <<a href="jtorlistas@gmail.com">jtorlistas@gmail.com</a>>:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:9pt'>> </SPAN></FONT><SPAN STYLE='font-size:9pt'><FONT FACE="Consolas, Courier New, Courier">Hello, Jesus<BR>
> It happen to me once trying to run a plugin under macOS and the problem was <BR>
> in:<BR>
> localePath <B>=</B> os<B>.</B>path<B>.</B>join(self<B>.</B>plugin_dir, 'i18n', <BR>
> 'qgis2leaf_{}.qm'<B>.</B>format(locale))<BR>
> read this:<BR>
> <a href="http://stackoverflow.com/questions/10054122/valueerror-zero-length-field-name-">http://stackoverflow.com/questions/10054122/valueerror-zero-length-field-name-</a><BR>
> in-format-pytho<BR>
> <FONT COLOR="#333333">and try to change the line to <BR>
> </FONT>localePath <B>=</B> os<B>.</B>path<B>.</B>join(self<B>.</B>plugin_dir, 'i18n', <BR>
> 'qgis2leaf_{0}.qm'<B>.</B>format(locale))<BR>
> It worked for me, despite I see maybe that's a ugly workaround<BR>
> Best regards<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial">> <BR>
> <BR>
> 2014-04-25 19:01 GMT+02:00 Jesús <<a href="jesusl.temez@gmail.com">jesusl.temez@gmail.com</a>>:<BR>
> <BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:9pt'><FONT FACE="Verdana, Helvetica, Arial">> I get this error trying to install the new qgis2leaf plugin in QGIS 2.0:<BR>
> zero lenght field name in format.<BR>
> This plugin works only in 2.2? Any idea on how to solve the error?<BR>
> <BR>
> TIA<BR>
> <BR>
> <BR>
> _______________________________________________<BR>
> Qgis-user mailing list<BR>
> <a href="Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><BR>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:9pt'><FONT FACE="Verdana, Helvetica, Arial">> <BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:9pt'><FONT FACE="Verdana, Helvetica, Arial"><BR>
<BR>
</FONT></SPAN></BLOCKQUOTE>
</BODY>
</HTML>