From timmichelsen at gmx-topmail.de Fri May 23 00:57:01 2008 From: timmichelsen at gmx-topmail.de (Tim Michelsen) Date: Fri, 23 May 2008 00:57:01 +0200 Subject: [Thuban-list] installing Thuban locally fails Message-ID: <4835FA3D.4040804@gmx-topmail.de> Hello, I tried to install Thuban locally as written in the README. It fails: $ python setup.py install_local sh: wx-config: not found "wx-config --cflags " failed sh: gdal-config: not found "gdal-config --cflags " failed running install_local running build_py running build_ext building 'Lib.wxproj' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ilibraries/shapelib -I/usr/local/include -Ilibraries/pyshapelib/ -I/usr/include/python2.5 -c libraries/thuban/wxproj.cpp -o build/temp.linux-i686-2.5/libraries/thuban/wxproj.o cc1plus: Warnung: Kommandozeilenoption "-Wstrict-prototypes" ist g?ltig f?r Ada/C/ObjC, aber nicht f?r C++ libraries/thuban/wxproj.cpp:23:19: Fehler: wx/wx.h: No such file or directory libraries/thuban/wxproj.cpp:32:34: Fehler: wx/wxPython/wxPython.h: No such file or directory libraries/thuban/wxproj.cpp: In function ?bool wxPyConvertSwigPtr(PyObject*, void**, char*)?: libraries/thuban/wxproj.cpp:54: Fehler: ?wxPyCoreAPIPtr? wurde in diesem G?ltigkeitsbereich nicht definiert libraries/thuban/wxproj.cpp:55: Fehler: ?wxPyCoreAPI_IMPORT? wurde in diesem G?ltigkeitsbereich nicht definiert libraries/thuban/wxproj.cpp:57: Fehler: ?SWIG_GetPtrObj? wurde in diesem G?ltigkeitsbereich nicht definiert libraries/thuban/wxproj.cpp: At global scope: libraries/thuban/wxproj.cpp:180: Fehler: expected initializer before ?*? token libraries/thuban/wxproj.cpp:68: Warnung: ?pyshapelib_api? definiert, aber nicht verwendet libraries/thuban/wxproj.cpp:126: Warnung: ?void project_point(double*, double*, void**, void**, double, double, double, double, double, double)? definiert, aber nicht verwendet error: command 'gcc' failed with exit status 1 I use Ubuntu 8.04. I'd be happy to receive some help here. Thanks for your help in advance. Regards, Timmie From bernhard at intevation.de Fri May 23 14:33:20 2008 From: bernhard at intevation.de (Bernhard Reiter) Date: Fri, 23 May 2008 14:33:20 +0200 Subject: [Thuban-list] installing Thuban locally fails In-Reply-To: <4835FA3D.4040804@gmx-topmail.de> References: <4835FA3D.4040804@gmx-topmail.de> Message-ID: <200805231433.25503.bernhard@intevation.de> Hello Tim, On Friday 23 May 2008 00:57, Tim Michelsen wrote: > I tried to install Thuban locally as written in the README. > > It fails: > > $ python setup.py install_local > sh: wx-config: not found > "wx-config --cflags " failed > sh: gdal-config: not found > "gdal-config --cflags " failed thanks for trying and reporting here. It seem the README was not clear enough about a few things. I just improved it, here are some of the new lines: Requirements for building and running Thuban. ------------ Building and installing ----------------------- (First make sure the development variants of the software listed in the "Requirements" section above is installed.) So you would need to install the development packages for the things listed in "Requirements". E.g. stuff like libwxbase2.8-dev. > I use Ubuntu 8.04. There is a posting which shows the process for Debian Etch, it might serve as an example for Ubuntu, of course you would need to use package names and versiono from Ubuntu. http://intevation.de/pipermail/thuban-list/2007-December/000697.html Best, Bernhard -- Managing Director - Owner: www.intevation.net (Free Software Company) Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com. Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998 Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- 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-list/attachments/20080523/5048f687/attachment.bin From timmichelsen at gmx-topmail.de Fri May 23 21:58:16 2008 From: timmichelsen at gmx-topmail.de (Tim Michelsen) Date: Fri, 23 May 2008 21:58:16 +0200 Subject: [Thuban-list] installing Thuban locally fails In-Reply-To: <200805231433.25503.bernhard@intevation.de> References: <4835FA3D.4040804@gmx-topmail.de> <200805231433.25503.bernhard@intevation.de> Message-ID: Hi, thanks for your response. I checkout out from SVN trunk. > thanks for trying and reporting here. > It seem the README was not clear enough about a few things. > I just improved it, here are some of the new lines: > > Requirements for building and running Thuban. > ------------ > Building and installing > ----------------------- I installed these dependencies with sudo apt-get build-dep thuban now the program get's built with python setup.py install_local But when running ./thuban.py I get the following warning: ################ $ ./thuban.py /var/tmp/install/thuban/trunk/thuban/Thuban/UI/colordialog.py:25: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained. Please switch to the wx package as soon as possible. from wxPython.lib.colourchooser import wxPyColourChooser ******************************************************* The following version errors were detected: Thuban was compiled with wx 2.6.3 but wxPython is 2.8.7.1 ******************************************************* ############### I run the tests: ##### cd test python ./runtests.py ##### The message I get in the bash: ############# ====================================================================== FAIL: Extensions.ogr.test.test_OGRShapestore.TestOGRTable.test_Column ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/install/thuban/trunk/thuban/test/../Extensions/ogr/test/test_OGRShapestore.py", line 200, in test_Column self.assertEquals(self.table.Column(0).type, FIELDTYPE_INT) AssertionError: 'double' != 'int' ====================================================================== FAIL: Extensions.ogr.test.test_OGRShapestore.TestOGRTable.test_Columns ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/install/thuban/trunk/thuban/test/../Extensions/ogr/test/test_OGRShapestore.py", line 194, in test_Columns self.assertEquals(self.table.Columns()[0].type, FIELDTYPE_INT) AssertionError: 'double' != 'int' ---------------------------------------------------------------------- Ran 578 tests in 9.199s FAILED (failures=2) skipped = 171 XML validation attempts ignored because pyRXP is not available ############ Here is a list of wx packages on my system: dpkg -l|grep wx ii boa-constructor 0.6.1-2 RAD tool for Python and WxWindows applicatio ii libwxbase2.6-0 2.6.3.2.2-2ubuntu4 wxBase library (runtime) - non-GUI support c ii libwxbase2.6-dev 2.6.3.2.2-2ubuntu4 wxBase library (development) - non-GUI suppo ii libwxbase2.8-0 2.8.7.1-0ubuntu3 wxBase library (runtime) - non-GUI support c rc libwxgtk2.4-1 2.4.5.1ubuntu2 wxWindows Cross-platform C++ GUI toolkit (GT ii libwxgtk2.6-0 2.6.3.2.2-2ubuntu4 wxWidgets Cross-platform C++ GUI toolkit (GT ii libwxgtk2.6-dev 2.6.3.2.2-2ubuntu4 wxWidgets Cross-platform C++ GUI toolkit (GT ii libwxgtk2.8-0 2.8.7.1-0ubuntu3 wxWidgets Cross-platform C++ GUI toolkit (GT ii python-wxglade 0.6.3-0.1ubuntu1 GUI designer written in Python with wxPython ii python-wxgtk2.6 2.6.3.2.2-2ubuntu4 wxWidgets Cross-platform C++ GUI toolkit (wx ii python-wxgtk2.8 2.8.7.1-0ubuntu3 wxWidgets Cross-platform C++ GUI toolkit (wx ii python-wxtools 2.8.7.1-0ubuntu3 wxWidgets Cross-platform C++ GUI toolkit (wx ii python-wxversion 2.8.7.1-0ubuntu3 wxWidgets Cross-platform C++ GUI toolkit (wx rc pythoncard-tools 0.8.1-8.1 wxPython-based GUI construction framework (o ii wx2.6-headers 2.6.3.2.2-2ubuntu4 wxWidgets Cross-platform C++ GUI toolkit (he May you please help me to get Thuban running? Kind regards, Timmie From timmichelsen at gmx-topmail.de Fri May 23 22:25:01 2008 From: timmichelsen at gmx-topmail.de (Tim Michelsen) Date: Fri, 23 May 2008 22:25:01 +0200 Subject: [Thuban-list] running Thuban as a portable GIS viewer Message-ID: Hello, so far, I have only used Thuban as a GIS viewer installed on the specific operating system: On windows this has been installed with setup.exe install file and on linux as a package (*.deb). In the README it says: To setup Thuban to run directly from the source directory: python setup.py install_local My question here is: Is it possible to build Thuban in the above stated way and then put it on a USB drive or CD-R and execute it from there? What I am looking for is a "portable" (in the sense of moving arround) GIS viewer that I can use to deliver results of my work to reviewers, collegues or clients who are not GIS specialists, who may not have GIS systems installed or just want to view the results of the work. I know that it needs some other packages as stated in the requirements such as the Python environment and a few libraries. But I could use Portable Python (http://www.portablepython.com/) to provide that on the CD-R and use a startup script. Would a Thuban installation configured in such a way run from any PC (Linux or Windows) without problems or further dependencies? Can I then specify a defaukt session in my startup script that automatically starts the programm with my layers? I would be very happy to recieve a statement on this issue. Kind regards, Timmie P.S.: I put this mailing list up on Gmane. I hope that you like that... From bernhard at intevation.de Sat May 24 19:38:26 2008 From: bernhard at intevation.de (Bernhard Reiter) Date: Sat, 24 May 2008 19:38:26 +0200 Subject: [Thuban-list] installing Thuban locally fails In-Reply-To: References: <4835FA3D.4040804@gmx-topmail.de> <200805231433.25503.bernhard@intevation.de> Message-ID: <200805241938.31089.bernhard@intevation.de> Hi Tim, On Friday 23 May 2008 21:58, Tim Michelsen wrote: > I installed these dependencies with > > sudo apt-get build-dep thuban it might be that those dependencies are not entirely correct for your Ubuntu (which would be a problem of the package - not Thuban itself) and they might prevent you from building it correctly. > now the program get's built with > python setup.py install_local > > But when running > ./thuban.py > The following version errors were detected: > Thuban was compiled with wx 2.6.3 but wxPython is 2.8.7.1 This still means somehow the wrong packages are being picked up. You have build Thuban with a different version of wx than which you are trying to run it. > FAILED (failures=2) The two test failures are to be expected (as noted in the Releasenotes.txt). > Here is a list of wx packages on my system: > ii libwxbase2.6-dev 2.6.3.2.2-2ubuntu4 > ii libwxgtk2.6-dev 2.6.3.2.2-2ubuntu4 This was probably picked up as there is no corresponding 2.8-dev package as far as I can see. It seems like both wx versions are installed > ii python-wxgtk2.6 2.6.3.2.2-2ubuntu4 > ii python-wxgtk2.8 2.8.7.1-0ubuntu3 There probably is a way to make your python pick up the right one during runtime. Can you try if you have different python versions? Maybe python2.4 and python2.5? Start it and find out which wx version is will load at the beginning, e.g. python2.3 Python 2.3.5 (#2, Oct 16 2006, 20:50:39) [GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import wx wx.>>> wx.VERSION (2, 4, 2, 4, '') >>> If there is one that has 2.6, try this one like python2.4 thuban.py Another idea is to only install one version of wx, if possible. Variant a) Deinstall all wx2.8 packages. Variant b) Install the wx2.8 dev packages and see if Thuban picks them up when rebuilding Variant c) do b) an deinstall all wx 2.6 packages. > May you please help me to get Thuban running? We'll do our best to help of course. :) As I do not have an Ubuntu system of your revision right sitting here, it might take a few turnarounds, but we'll get there, I am sure! Best, Bernhard -- Managing Director - Owner: www.intevation.net (Free Software Company) Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com. Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998 Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- 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-list/attachments/20080524/61adfd1e/attachment.bin From bernhard at intevation.de Sat May 24 19:48:13 2008 From: bernhard at intevation.de (Bernhard Reiter) Date: Sat, 24 May 2008 19:48:13 +0200 Subject: [Thuban-list] running Thuban as a portable GIS viewer In-Reply-To: References: Message-ID: <200805241948.14093.bernhard@intevation.de> Hi Tim, On Friday 23 May 2008 22:25, Tim Michelsen wrote: > so far, I have only used Thuban as a GIS viewer installed on the > specific operating system: > On windows this has been installed with setup.exe install file and on > linux as a package (*.deb). > > In the README it says: > > To setup Thuban to run directly from the source directory: > > python setup.py install_local > > My question here is: > > Is it possible to build Thuban in the above stated way and then put it > on a USB drive or CD-R and execute it from there? The ability to put Thuban on a media an run it from there is independent from the "install_local" feature. This feature is only a comfort function to copy the Thuban files to the system location where it usually would reside in a GNU/Linux system. "install_local" allows you to run Thuban directly in place. Of course you can produce a self-contain media running Thuban. (My company Intevation has done this a few years ago.) You need to put everything on that you need to run Thuban. There are two general ways: a) Complete operating system and Thuban. Works e.g. GNU/Linux like a kanotix or morphix live-CDs. Needs all Thuban packages installed. Putting it in will boot it. b) Only the Thuban application (with all dependencies) e.g. ready to run for several operating system like Windows, GNU/Linux. > What I am looking for is a "portable" (in the sense of moving arround) > GIS viewer that I can use to deliver results of my work to reviewers, > collegues or clients who are not GIS specialists, who may not have GIS > systems installed or just want to view the results of the work. It is possible to do this with Thuban. > I know that it needs some other packages as stated in the requirements > such as the Python environment and a few libraries. > > But I could use Portable Python (http://www.portablepython.com/) to > provide that on the CD-R and use a startup script. I do not have experience with portablepython, so I can only guess. My guess is that you at least need the wxWidget and other binary libraries, but you can make it work. I cannot say how difficult it is, though, without having tried myself. > Would a Thuban installation configured in such a way run from any PC > (Linux or Windows) without problems or further dependencies? GNU/Linux and Windows would need binary libraries for their specific variants (e.g. Debian Etch, Ubuntu, RedHat, XP, Vista). Thuban needs those libraries and they are not pure python. > Can I then specify a defaukt session in my startup script that > automatically starts the programm with my layers? Yes. > P.S.: I put this mailing list up on Gmane. I hope that you like that... I am not using Gmame myself, I have nothing against spreading knowledge about this public list. :) Best, Bernhard -- Managing Director - Owner: www.intevation.net (Free Software Company) Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com. Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998 Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- 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-list/attachments/20080524/f1db5902/attachment.bin