Test of Windows 1.2.0_1.exe

Bernhard Reiter bernhard at intevation.de
Sat Mar 31 17:39:57 CEST 2007


Hi Didrik,

I did a test of your window installer and really find that we need to 
give better step by step instructions how to do the install.
The good news is that I get Thuban up pretty simple.

Also we need to stick on a large warning that it only works
with the English locale. :(

See my report:.

Best,
Bernhard
-------------- next part --------------
20070331 Bernhard Reiter

	Testing Thuban-1.2.0_1.exe downloaded from wald.intevation.de.
	The release notes on wald (click on thuban-1.2.0) say: 
		 Thuban 1.2.0_1 for Win32 has been built for Python 2.4 
		with Proj 4.4.9, wxPython 2.6.3 and gdal 1.4. 
		The installer requires an existing Python 2.4 installation.

Suggestion: This is too hard to find.

	General Setup: Windows XP Sp2 German, Outlook 2003 
		       (running in a virtual machine)

	Pre001  
		Login as Administrator.

	Pre002  Python
python-2.4.4.msi

	Pre003  wxPython  
(still needed? No hint that it is needed.)

	Pre004 pysqlite2
(still needed? No hint that it is needed.)
	

	Pre005
		Thuban-data-1.0.0.zip/Data copied to C:\Programme\Thuban\
ok.

	GS001 Pre001 Thuban Installer
  	      Running the installer .exe.  
	      Follow the release notes.
 	      All default values.
	      Expected behaviour: Release notes are shown.
	      No errors. There is a Thuban start menu entry.

Running Thuban-1.2.0_1.exe
Fails: No release notes are shown.
Release notes do not mention to set the path to GDAL.
Fails: Starting fails because no python installed, 
       error message says "thuban.pyw" cannot be opened.

	Pre006 Login as unpriviledged User.
(Not done, continuing as user with admin rights.)

	GS002 GS001 Pre002 Starting Thuban, via Menu.
	      Expected behaviour: Thuban starts up

Fails: gdal14.dll could not be found.
Fix attempt: Going to 
	Systemsteuerung -> System -> Erweitert -> Umgebungsvariablen
	Edit "Path", adding "C:\Programme\Thuban\gdal\bin".
Now: No errormessage, but also Thuban does not start.
Trying to debug: Opening a command line, cd c:\Programme\Thuban
		c:\python24/python.exe thuban.pyw
	Result: No module named "wx", so we do need wxPython to be
	installed I guess.
Trying to fix doing Pre003 installing wxpython.
	wxPython2.6-win32-unicode-2.6.3.3-py24.exe
	is a bit harder to find as you need to go to sourceforge.
Suggestion: Make it clear which versions in particular of wx will work
	in release notes and where to get them.
Fails: It still does not start. Debugging suggests that pysqlite is missing.
Trying to with with Pre004 
	pysqlite-2.3.3.win32-py2.4.exe
Now: ok.

	G003-language  According to the language of your system, 
		       if Thuban has the language, it should be localised.

Fails: Thuban is in English. Should be in German.
Idea why: Maybe the locales have not been included. At least
	in Thuban/Resources/ the directory Locale/ is missing
	and this is the place where it usually would be for GNU/Linux.
	
	G004-about-dialog-sane  Select Help -> About
		Expected result: Get a nice about dialog.

Almost ok.
Minor: Thuban 1.2 svn-20070314 still shows the svn version,
	this should have been 1.2.0.
more:
	Currently using:
		wxPython 2.6.3.3
		Python 2.4.4
		PySQLite 2.3.3
		SQLite 3.3.10
		GDAL 1.4.0.0
		psycopg - not available
		Internal encoding: cp1252
	Compiled for:
		GTK - not available
		proj 4.4.9
	Extensions:
		None registered.
the internal encoding is interesting.
Umlauts in the names look fine.

	G005-about-showing-gdal
ok.
		
	Pre120 Load session iceland_sample_raster.thuban
Fails:
An unhandled exception occurred:
unsupported locale setting
(please report to http://thuban.intevation.org/bugtracker.html)

Traceback (most recent call last):
  File "\.\Thuban\UI\mainwindow.py", line 297, in invoke_command
  File "C:\Programme\Thuban\Thuban\UI\command.py", line 121, in Execute
    apply(self.function, (context,) + self.args + args, kw)
  File "\.\Thuban\UI\mainwindow.py", line 1071, in call_method
  File "\.\Thuban\UI\mainwindow.py", line 471, in OpenSession
  File "\.\Thuban\UI\application.py", line 243, in OpenSession
  File "\.\Thuban\Model\load.py", line 687, in load_session
  File "\.\Thuban\Model\xmlreader.py", line 75, in read
  File "C:\Python24\lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Python24\lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "C:\Python24\lib\xml\sax\expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "C:\Python24\lib\xml\sax\expatreader.py", line 348, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "\.\Thuban\Model\xmlreader.py", line 125, in endElementNS
  File "\.\Thuban\Model\load.py", line 471, in end_projection
  File "\.\Thuban\Model\proj.py", line 77, in __init__
  File "\.\Thuban\Model\proj.py", line 44, in _do_we_have_to_work_around_broken_proj
  File "C:\Python24\lib\locale.py", line 381, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting

Something is realy strange her, the following python lines
import locale 
result = locale.setlocale(locale.LC_NUMERIC,"")
print result
got = locale.getlocale(locale.LC_NUMERIC)
print got
# works
locale.setlocale(locale.LC_NUMERIC, result)
# fails
locale.setlocale(locale.LC_NUMERIC, got)

>>> import locale
>>> result = locale.setlocale(locale.LC_NUMERIC,"")
>>> print result
German_Germany.1252
>>> got = locale.getlocale(locale.LC_NUMERIC)
>>> print got
('de_DE', '1252')
>>> # works
... locale.setlocale(locale.LC_NUMERIC, result)
'German_Germany.1252'
>>> # fails
... locale.setlocale(locale.LC_NUMERIC, got)
Traceback (most recent call last):
  File "<stdin>", line 2, in ?
  File "C:\Python24\lib\locale.py", line 381, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
>>>

Idea how to really fix: 
	save the result of setlocale() in UI/__init__.py
	because this is the best bet to return to.
	But this is not really helpful as the locale change does
	not seem to fix the problem for raster later.
Workaround: Changed Model/proj.py to setlocale/locale.LC_NUMERIC."")


	G020-raster-display, (Pre120)
		Expected result: iceland with raster background should be shown.

Fails: Raster background is not seen. Reason unknown, probably a locale problem.
Some debugging:
	results1 is equal result2 in proj.py's test function,
	so setting the locale to "C" does not change the projects
	behaviour the result is:
	[1.0001886830913063, 1.0001886830913063]
	gdalinfo works fine.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20070331/d636d82a/attachment.bin


More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)