[QGIS-trac] [Quantum GIS] #1782: unable to load a .png file

Quantum GIS qgis at qgis.org
Thu Jul 16 01:39:17 EDT 2009


#1782: unable to load a .png file
---------------------------------------------------------+------------------
   Reporter:  lomco                                      |              Owner:  nobody
       Type:  bug                                        |             Status:  new   
   Priority:  critical: causes crash or data corruption  |          Milestone:        
  Component:  Build/Install                              |            Version:  HEAD  
   Keywords:                                             |   Platform_version:        
   Platform:  Debian                                     |           Must_fix:  No    
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 I am a new QGIS user and I'ld like to load a scanned map for geocoding.
 The map is in a file on the desk top.
 Launch QGIS
 Click on icon add a raster layer
 select the scanned .png map
 error message as follows

 "An error has occured while executing Python code:

 Traceback (most recent call last):
   File "/home/labo/.qgis//python/plugins/valuetool/valuewidget.py", line
 118, in printValue
     layername=str(layer.name())
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
 position 25: ordinal not in range(128)

 Python version:
 2.6.2 (release26-maint, Apr 19 2009, 02:11:59)
 [GCC 4.3.3]

 Python path:['/usr/share/qgis/python', '/home/labo/.qgis//python/plugins',
 '/usr/share/qgis/python/plugins', '/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
 '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-
 packages/Numeric', '/usr/lib/python2.6/dist-packages/PIL',
 '/usr/lib/python2.6/dist-packages/gst-0.10', '/var/lib/python-
 support/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/var/lib/
 python-support/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-
 packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages',
 '/usr/share/qgis/python/plugins/fTools/tools', '~/.qgis/python']"

 The error message window is not closing except I close QGIS.
 How could I manage this problem?

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1782>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list