3liz / QgisQuickExportPlugin

3 stars 3 forks source link

HTML export doesn't work #2

Closed rbovard closed 10 years ago

rbovard commented 10 years ago

Here is the traceback

Traceback (most recent call last):
  File "C:/Users/me/.qgis2/python/plugins\QuickExport\quickexport.py", line 218, in exportLayer
    msg, status = self.exportLayerToHtml(layer)
  File "C:/Users/me/.qgis2/python/plugins\QuickExport\quickexport.py", line 388, in exportLayerToHtml
    date_format = locale.nl_langinfo(locale.D_T_FMT)
AttributeError: 'module' object has no attribute 'nl_langinfo'

Version de Python :
2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

Version de QGIS :
2.2.0-Valmiera Valmiera, c3a2817
mdouchin commented 10 years ago

Thanks for the feedback. It appears the used method is not available in all systems. I should find a workaround http://docs.python.org/2.7/library/locale.html#locale.nl_langinfo

mdouchin commented 10 years ago

possible workaround, use basic strftime http://code.google.com/p/exposong/issues/detail?id=129

mdouchin commented 10 years ago

Corrected in 1.1