YoannQDQ / qgis-memory-layer-saver

Makes data in memory provider layers persistent between QGIS sessions. Data saved in .mldata file alongside project file.
Other
7 stars 4 forks source link

Problem for saving memory layer #1

Closed GlaDal closed 10 years ago

GlaDal commented 10 years ago

ne erreur est apparue lors de l'exécution du code Python : Traceback (most recent call last): File "C:/Users/.../.qgis2/python/plugins\MemoryLayerSaver\MemoryLayerSaver.py", line 327, in showInfo names = [str(l.name()) for l in self.memoryLayers()] UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position 10: ordinal not in range(128)

Version de Python : 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

Hi,

Here you find the last problem I've encountered : (After that, Memory layers of my project bugs : It's impossible to move existing labels ; It doesn't create automatically the line between object and label.

Version de QGIS : 2.4.0-Chugiak Chugiak, 8fdd08a

Chemin vers Python : ['C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing', 'C:/PROGRA~1/QGISCH~1/apps/qgis/./python', u'C:/Users/.../.qgis2/python', u'C:/Users/.../.qgis2/python/plugins', 'C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins', 'C:\PROGRA~1\QGISCH~1\bin\python27.zip', 'C:\PROGRA~1\QGISCH~1\apps\Python27\DLLs', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\plat-win', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\lib-tk', 'C:\PROGRA~1\QGISCH~1\bin', 'C:\PROGRA~1\QGISCH~1\apps\Python27', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\six-1.3.0-py2.7.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg', 'C:\Users....qgis2\python\plugins\DigitizingTools\tools', 'C:\Users....qgis2\python\plugins\mmqgis/forms', '.', 'C:\PROGRA~1\QGISCH~1\apps\qgis\python\plugins\fTools\tools', 'K:/2014_INRAP/2014_1_GAZODUC/2013_2_DIAG/7434_GAZO_S7_BA07189511_Version5']

ccrook commented 10 years ago

Hi

I've uploaded a new version, 3.3, which hopefully fixes the this problem.

Cheers Chris


From: GlaDal [notifications@github.com] Sent: 18 July 2014 20:11 To: ccrook/QGIS-MemoryLayerSaver-Plugin Subject: [QGIS-MemoryLayerSaver-Plugin] Problem for saving memory layer (#1)

ne erreur est apparue lors de l'exécution du code Python : Traceback (most recent call last): File "C:/Users/.../.qgis2/python/plugins\MemoryLayerSaver\MemoryLayerSaver.py", line 327, in showInfo names = [str(l.name()) for l in self.memoryLayers()] UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position 10: ordinal not in range(128)

Version de Python : 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

Hi,

Here you find the last problem I've encountered : (After that, Memory layers of my project bugs : It's impossible to move existing labels ; It doesn't create automatically the line between object and label.

Version de QGIS : 2.4.0-Chugiak Chugiak, 8fdd08a

Chemin vers Python : ['C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing', 'C:/PROGRA~1/QGISCH~1/apps/qgis/./python', u'C:/Users/.../.qgis2/python', u'C:/Users/.../.qgis2/python/plugins', 'C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins', 'C:\PROGRA~1\QGISCH~1\bin\python27.zip', 'C:\PROGRA~1\QGISCH~1\apps\Python27\DLLs', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\plat-win', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\lib-tk', 'C:\PROGRA~1\QGISCH~1\bin', 'C:\PROGRA~1\QGISCH~1\apps\Python27', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\six-1.3.0-py2.7.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg', 'C:\PROGRA~1\QGISCH~1\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg', 'C:\Users....qgis2\python\plugins\DigitizingTools\tools', 'C:\Users....qgis2\python\plugins\mmqgis/forms', '.', 'C:\PROGRA~1\QGISCH~1\apps\qgis\python\plugins\fTools\tools', 'K:/2014_INRAP/2014_1_GAZODUC/2013_2_DIAG/7434_GAZO_S7_BA07189511_Version5']

— Reply to this email directly or view it on GitHubhttps://github.com/ccrook/QGIS-MemoryLayerSaver-Plugin/issues/1.

This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info@linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.

ccrook commented 10 years ago

As no response I'm assuming the fix worked :-)