Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1415 closed bug (fixed)

Error while launching QGIS 1.0.0 preview II on Windows

Reported by: dthonon Owned by: nobody
Priority: minor: annoyance Milestone:
Component: Python plugins and bindings Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Windows
Platform Version: Windows XP Awaiting user input: no

Description

When launching QGIS 1.0.0 preview II on Windows XP, I get the message below. Apart from that, it works fine.

Une erreur est apparue lors de l'exécution du code suivant :
def qgis_except_hook_msg(type, value, tb, msg):
  lst = traceback.format_exception(type, value, tb)
  if msg == None: msg = 'Une erreur est apparue lors de l'exécution du code python : ''
  txt = ''+msg+'

'
  for s in lst:
    txt += s
  txt += '
Version de Python :
' + sys.version + '

'
  txt += 'Chemin vers Python :' + str(sys.path)
  txt = txt.replace('\n', '
')
  txt = txt.replace('  ', '  ')
  
  msg = QgsMessageOutput.createMessageOutput()
  msg.setTitle('Erreur Python')
  msg.setMessage(txt, QgsMessageOutput.MessageHtml)
  msg.showMessage()


  File "", line 3
    if msg == None: msg = 'Une erreur est apparue lors de l'exécution du code python : ''
                                                              ^
SyntaxError: invalid syntax

Version de Python :
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

Chemin vers Python :
['C:/Program Files/QGIS-Dev/./python', 'D:/Documents and Settings/dthonon/.qgis//python/plugins', 'C:/Program Files/QGIS-Dev/./python/plugins', 'C:\\Program Files\\QGIS-Dev\\python25.zip', '.\\DLLs', '.\\lib', '.\\lib\\plat-win', '.\\lib\\lib-tk', 'C:\\Program Files\\QGIS-Dev']

Change History (2)

comment:1 by wonder, 15 years ago

Resolution: fixed
Status: newclosed

This is a problem of french translation in preview2. (There's unexpected quote in translated string " ... l'exécution ... " that produces this error)

It's been fixed already in SVN.

comment:2 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.