#mapnik log: Monday 08, March 2010

2010 | 03

previous | next
00:02:49 *** mperry (~mperry@c-67-164-175-65.hsd1.co.comcast.net) has joined #mapnik
00:44:40 *** jctull_ (~jctull@ppp-71-142-132-250.dsl.renocs.pacbell.net) has joined #mapnik
00:44:40 *** jctull has quit (Read error: Connection reset by peer)
00:44:41 *** jctull_ is now known as jctull
00:56:39 *** darth_bitterman has quit (Quit: Leaving)
02:22:13 *** springmeyer has quit (Quit: springmeyer)
04:57:03 *** mperry has quit (Quit: mperry)
05:30:57 *** racicot (~chatzilla@dsl-209-166-85-189.whidbey.net) has joined #mapnik
05:32:22 *** racicot has quit (Changing host)
05:32:22 *** racicot (~chatzilla@osgeo/member/racicot) has joined #mapnik
05:46:22 *** springmeyer (~springmey@c-76-28-156-154.hsd1.wa.comcast.net) has joined #mapnik
05:50:47 *** gavinf has quit (Remote host closed the connection)
06:37:33 *** gavinf (~gavinf@196.212.72.157) has joined #mapnik
09:34:55 *** harobed_ (~stephane@pda57-1-82-231-115-1.fbx.proxad.net) has joined #mapnik
10:03:24 *** dodobas has quit (Ping timeout: 245 seconds)
10:20:51 *** dodobas (~dodobas@open.geof.hr) has joined #mapnik
11:15:56 *** gavinf has quit (Read error: Connection reset by peer)
11:54:47 <nikq> Mapnik Trac: Changeset [1665]: + use mapnik2 for python module name + update rundemo.py | http://trac.mapnik.org/changeset/1665
11:54:57 <nikq> Mapnik Trac: Changeset [1666]: + revert template instantiation depth back to 200   won't compile on os x  ... | http://trac.mapnik.org/changeset/1666
11:55:07 <nikq> Mapnik Trac: Changeset [1667]: + tidy | http://trac.mapnik.org/changeset/1667
11:55:17 <nikq> Mapnik Trac: Changeset [1669]: + revert to a024c947499994e1e8aaaff2b8ea73a8eec489dd | http://trac.mapnik.org/changeset/1669
11:55:27 <nikq> Mapnik Trac: Changeset [1670]: + lets postgis return geometry in native byte order   (wkb reader can  ... | http://trac.mapnik.org/changeset/1670
12:02:34 <nikq> Mapnik Trac: Ticket #516 (Evaluate proper handling of endianess in SQLite and Oracle plugins) closed | http://trac.mapnik.org/ticket/516#comment:4
12:03:05 <nikq> Mapnik Trac: Ticket #516 (Evaluate proper handling of endianess in SQLite and Oracle plugins) reopened | http://trac.mapnik.org/ticket/516#comment:5
12:04:36 <nikq> Mapnik Trac: Changeset [1671]: + revert to a024c947499994e1e8aaaff2b8ea73a8eec489dd | http://trac.mapnik.org/changeset/1671
12:04:46 <nikq> Mapnik Trac: Changeset [1672]: + lets postgis return geometry in native byte order   (wkb reader can  ... | http://trac.mapnik.org/changeset/1672
12:05:06 <nikq> Mapnik Trac: Ticket #516 (Evaluate proper handling of endianess in SQLite and Oracle plugins) closed | http://trac.mapnik.org/ticket/516#comment:6
13:14:00 *** gavinf (~gavinf@196.211.119.210) has joined #mapnik
13:52:48 *** jctull has quit (Quit: jctull)
14:12:36 *** Dominic384 (~Dominic@dialbs-213-023-220-018.static.arcor-ip.net) has joined #mapnik
14:18:26 <Dominic384> Hey guys! I got some issues getting mapnik compiled on Red Hat Enterprise Linux 5. All dependencies get solved properly, tho scons.py still ends up with an error saysing: "scons: *** [utils/shapeindex/shapeindex] Error 1". It appears while compiling shapeindex: g++ -o utils/shapeindex/shapeindex utils/shapeindex/shapeindex.o src/envelope.o plugins/input/shape/shapefile.o -Lagg -Lsrc -L/usr/lib64 -L/usr/local/lib64 -L/opt/icu/
14:19:47 *** mperry (~mperry@c-67-164-175-65.hsd1.co.comcast.net) has joined #mapnik
14:23:18 <Dominic384> I also compiled boost with all necessary libs: ./bootstrap.sh --with-python=/usr/bin/python25 --with-libraries=filesystem --with-libraries=iostreams --with-libraries=math --with-libraries=mpi --with-libraries=program_options --with-libraries=python --with-libraries=regex --with-libraries=system --with-libraries=thread
14:34:20 <springmeyer> Dominic384: apply this patch: http://trac.mapnik.org/changeset/1634/branches/0.7.1-dev/utils/shapeindex/SConscript
14:34:46 <springmeyer> related to #517
14:34:46 <nikq> Ticket #517: boost_system requirement on linux?, http://trac.mapnik.org/ticket/517
14:35:12 <springmeyer> alternatively you can compile mapnik from this branch: http://trac.mapnik.org/milestone/0.7.1
14:41:58 <Dominic384> thanks so far, I ll get 0.7.1 and see what happens...
14:59:02 *** luneff (~yury@93.178.69.68) has joined #mapnik
15:13:24 <Dominic384> @springmeyer: It compiled sucessfully and also isntalled, but when I try runnind the demo (rundemo.py) it says: The mapnik library and python bindings must have been compiled and installed successfully before running this script. Tho, the mapnik library is located in /usr/local/lib64, which is also part of my LD_LIBRARY_PATH... Any ideas?
15:13:51 <springmeyer> '/sbin/ldconfig'
15:14:07 <springmeyer> but if you just installed 0.7.1...
15:14:31 <springmeyer> check if it is in /usr/local/lib now... instead of lib64
15:15:14 <Dominic384> nope, ldconfig didn t do it and it is not in .../lib
15:17:17 *** Komzpa (~kom@86.57.245.71) has joined #mapnik
15:17:40 <springmeyer> oh, sorry ya that would not help
15:17:51 <springmeyer> it is the python bindings that are not being found
15:18:23 <springmeyer> Dominic384: do you still have the output of 'python scons/scons.py install' in your terminal?
15:18:47 <Dominic384> yep...
15:19:01 <Dominic384> it said done building targets.
15:19:38 <Dominic384> and i ran it like this: python2.5 scons/scons.py ICU_INCLUDES=/opt/icu/include/unicode ICU_LIBS=/opt/icu/lib/ BOOST_INCLUDES=/usr/local/include/boost/ BOOST_LIBS=/usr/local/lib/ install
15:20:19 <springmeyer> okay, and what do you get if you do?
15:20:32 <Dominic384> the python stuff also got copied to  /usr/lib64/python2.5/site-packages/mapnik/
15:20:34 <springmeyer> python2.5 -c "import mapnik;print mapnik.__file__"
15:21:39 <Dominic384> hmm... i did "import mapnik" and it said "libboost_python.so.1.42.0: cannot open shared object file: No such file or directory"
15:22:37 <Dominic384> the libboost_python is in usr/local/lib...
15:23:29 <Dominic384> i added this to my LD_LIBRARY_PATH, and it says "ImportError: /usr/local/lib/libboost_python.so.1.42.0: undefined symbol: Py_InitModule4" now
15:24:08 <springmeyer> those are odd errors, never seen anything like that before
15:25:25 <springmeyer> ah, I have a guess...
15:26:11 <springmeyer> can you http://dpaste.com
15:26:18 <springmeyer> ldd /usr/local/lib/libboost_python.so
15:28:08 <Dominic384> http://dpaste.com/169467/
15:28:14 <Dominic384> ... looks ok to me
15:29:05 <springmeyer> Dominic384: is '/usr/local/lib' in ld.so.conf ?
15:29:29 <springmeyer> and do you maybe have duplicate boost libraries?
15:30:16 <springmeyer> also, are you using custom built python as well?
15:30:27 <Dominic384> no, it s not in there, how do I add it?
15:31:20 <Dominic384> no custom built python, but duplicate boost libraries (V 1.33, which came with the system)
15:32:20 <springmeyer> ah ha
15:32:30 <springmeyer> does 1.33 provide boost_python ?
15:33:28 <Dominic384> how do I find out? I did a rpm -qa | grep boost and it shows boost-1.33.1-10.el5 and according devel package
15:33:51 <springmeyer> ls /usr/lib/libboost*
15:34:31 <Dominic384> damn it, yes, -> libboost_python.so.1.33.1
15:34:44 <springmeyer> Dominic384: I tend to try to use ldconfig + ld.so.conf instead of LD_LIBRARY_PATH
15:34:54 <springmeyer> one centos 5.2 this worked:
15:34:54 <springmeyer> sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/local.conf"
15:35:30 <springmeyer> I would do that, log out, remove any LD_LIBRARY_PATH settings, log back in
15:35:34 <springmeyer> and try again
15:36:05 <springmeyer> and then collect your terminal commands and http://dpaste.com them (including any errors0
15:36:41 <springmeyer> so:
15:36:46 <springmeyer> sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/local.conf"
15:36:52 <springmeyer> sudo /sbin/ldconfig
15:36:55 <springmeyer> exit
15:36:58 <springmeyer> log back in and try
15:39:48 <Dominic384> hmmm.. still the same: ImportError: /usr/local/lib/libboost_python.so.1.42.0: undefined symbol: Py_InitModule4
15:42:55 <springmeyer> hmm, looking on the google
15:43:11 <springmeyer> it appears that you may have a botched boost compile
15:43:42 <springmeyer> essentially that boost compiled against a different set of python development headers than the python2.5 interpreter you are running
15:44:08 <springmeyer> you'd think you would get a better error but it is likely being muffled by something...
15:44:53 <springmeyer> Dominic384: so, I think you need to recompile boost
15:45:21 <springmeyer> and you can do so with the bjam flag to build two versions of libbost_python with
15:45:32 <springmeyer>  bjam python=2.4,2.5
15:45:44 <springmeyer> http://lists.debian.org/debian-python/2008/03/msg00033.html
15:45:52 <Dominic384> but as I compiled boost, I pruposely put "--with-python=/usr/lib64/python2.5...
15:45:53 <Dominic384> i ll try
15:46:22 <springmeyer> I bet that argument did not "stick"
15:46:54 <springmeyer> looks like this issue came up on debian and was solved a while back: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468770
15:47:55 <springmeyer> Dominic384: pass -d2
15:47:56 <springmeyer> to boost
15:48:07 <springmeyer> and it will output the actually g++ lines
15:48:15 <springmeyer> so you can se if that option is actually working
15:51:24 <Dominic384> hmm... it s already compiling... i ll check and if it s not working, I ll do it again with "-d2" option
15:52:59 <Dominic384> hey do I have to recompile mapnik after recompling boost?
15:56:22 <springmeyer> hopefully not
15:56:32 <Dominic384> good... ;)
16:04:33 <Dominic384> I got bad news... it is still the same
16:05:12 <Dominic384> and it took the option I guess since it copied the mapnik stuff to python2.5/site-packages ...
16:07:28 <springmeyer> copied mapnik stuff? I thought you were re-installing boost?
16:07:50 <Dominic384> yeah, right, sorry, I was confused
16:08:44 <Dominic384> i ll do bjam again with d2 option
16:14:00 <springmeyer> Dominic384: can you also paste
16:14:01 <Dominic384> you were right, it is not taking the option, I saw python 2.4 somewhere... so how do I fix this?
16:14:22 <springmeyer> ldd /path/to/mapnik/_mapnik.so <-- the python bindings .so
16:14:29 <springmeyer> Dominic384: ah ha!
16:14:36 * springmeyer curses bjam
16:15:05 <springmeyer> Dominic384: the solution is to create a proper 'user-config.jam' and pass that to bjam
16:15:37 <springmeyer> since it you get any of the values wrong in the 'user-config' jam it will throw an error
16:15:45 <springmeyer> instead of just ignoring you :)
16:16:38 <Dominic384> so how do I pass this 'user-config.jam' ? I assume I have to create it first?
16:17:07 <Dominic384> cuz i only got a project-config.jam file
16:17:35 <springmeyer> right,so...
16:17:54 <springmeyer> to answer that I find it easiest to look a a script I wrote to package boost for osx
16:18:08 <springmeyer> might as well paste it: http://dpaste.com/169476/
16:18:21 <springmeyer> in a nutshell do:
16:18:43 <springmeyer> 1) create a file named 'user-config.jam' in your boost source directory
16:19:44 *** rweait has parted #mapnik (None)
16:22:25 <Dominic384> ok, and than? ;)
16:22:35 <springmeyer> ugh forgot how crazy jam is, one sec...
16:22:52 <Dominic384> no biggie... I don t wanne rush you!
16:25:46 <springmeyer> grab that: http://dpaste.com/169477/
16:25:56 <springmeyer> you may need to tweak paths to your system
16:26:41 <Dominic384> Thank you very much, I ll try it out!
16:30:26 <nikq> Mapnik Trac: Mapnik2 edited | http://trac.mapnik.org/wiki/Mapnik2?version=17
16:32:36 *** harobed_ has quit (Quit: Ex-Chat)
16:33:05 <springmeyer> Dominic384:  ^^ see the above for my best guess at the bjam invocation you need
16:33:43 <springmeyer> idea there is to just re-compile boost python and manually install (so that you don't have to wait for every boost header to re-install)
16:34:17 <Dominic384> ok. so I created that file now...
16:34:52 <Dominic384> and now I would do a /bootstrap.sh  --with-libraries=python
16:34:58 <Dominic384> and ./bjam install
16:35:03 <Dominic384> right?
16:35:30 <nikq> Mapnik Trac: Mapnik2 edited | http://trac.mapnik.org/wiki/Mapnik2?version=18
16:35:39 <springmeyer> Dominic384: no
16:35:51 <springmeyer> or, more honestly, I have no idea
16:36:06 <springmeyer> I've never used the boostrap script (or never got it to work)
16:36:18 <Dominic384> ok. so just bjam?
16:37:02 <springmeyer> no, bjam as per the command at http://trac.mapnik.org/wiki/Mapnik2
16:37:20 <springmeyer> springmeyer: Dominic384:  ^^ see the above for my best guess at the bjam invocation you need
16:43:56 <Dominic384> lol... I GOT IT!!
16:44:00 <Dominic384> THANK YOU VERY MUCH!!
16:51:13 <nikq> Mapnik Trac: Mapnik2 edited | http://trac.mapnik.org/wiki/Mapnik2?version=19
16:52:45 <springmeyer> Dominic384, I just confirmed on an ubuntu system that I see...
16:52:46 <springmeyer> -I"/usr/include/python2.5"
16:52:53 <springmeyer> in the bjam output with -d2
16:53:12 <springmeyer> and you were likely linking to libpython2.5 but compiling against -I"/usr/include/python2.4"
16:53:23 <springmeyer> or that is the assumption I'm going on...
17:03:32 <Dominic384> you are right...
17:03:51 <springmeyer> heh, thats too bad :)
17:04:04 <Dominic384> no shit sherloc :p
17:05:09 <springmeyer> so, is it re-compiling now?
17:05:38 <Dominic384> it already did... then i did the test and it spit out these demo images...
17:06:23 <springmeyer> ah ha, that is nice
17:06:36 <Dominic384> now i m going to setup the postgres DB and then isntall osm2pgsql and hopefully get it rendering Germany by tomorrow evening ... at least that s the plan!
17:06:44 <springmeyer> cool
17:06:54 * springmeyer snarls one last time at bjam
17:07:11 <Dominic384> lol... Thnaks again for your support! It is very appreciated!
17:07:57 <springmeyer> ya, over lost probably in the range of hundreds of hours getting this issue mastered on osx
17:08:11 <springmeyer> while I've never seen it happen on linux
17:08:28 <Dominic384> hmm.. makes me special I guess :p
17:08:59 <springmeyer> the less open the os the more "special" install issues await :)
17:09:16 <Dominic384> so have fun on windows :p
17:09:19 <springmeyer> my theory at least
17:09:24 <springmeyer> ya, crap
17:09:58 <Dominic384>  but hey, now you guys got RHEL 5 64 bit... I ll post the install how to as soon as I m done!
17:10:09 <springmeyer> anyway, have fun with actually getting to use mapnik now that boost is out of your way :)
17:10:16 <springmeyer> Dominic384: yes, that is excellent
17:10:36 <springmeyer> Dominic384:  did you install some stuff with yum ?
17:11:05 <Dominic384> no, not at all... I downloaded everything either as rpm package or downloaded source
17:12:25 <springmeyer> ah, okay
17:12:51 <springmeyer> well I've only used debian so yum and rpm's are kind mysteries to me
17:13:04 <springmeyer> but I built mapnik 0.7.1 on centos: http://dpaste.com/169498/
17:13:10 <springmeyer> just to make sure it worked
17:13:25 <springmeyer> perhaps that would be useful to your write up, but I guess not if you used rpms?
17:13:52 <springmeyer> isn't yum just a manager to install rpms? or am I an idiot?
17:17:36 <Dominic384> i don t know... I thought it is equivalent to yast, which is a package installer... but i m not a linux pro...
17:21:02 <springmeyer> hum, okay, never heard of yast
17:26:53 *** twain47 (~twain47@cpc8-shef7-0-0-cust85.barn.cable.virginmedia.com) has joined #mapnik
17:27:00 <Dominic384> let s try this: yum = yast = package installer on different operating systems
17:27:09 *** cgs_bob_ has quit (Ping timeout: 245 seconds)
17:27:13 <Dominic384> however, I m outa here! Have a good day!
17:28:39 <springmeyer> later
17:28:39 *** Dominic384 has quit (Quit: http://irc2go.com/)
17:45:09 *** tcarobruce (~tcarobruc@adsl-75-10-247-30.dsl.pltn13.sbcglobal.net) has joined #mapnik
19:13:30 *** Ldp__ (~thid@osm.xs4all.nl) has joined #mapnik
19:14:23 *** Ldp__ is now known as Ldp
19:22:32 *** bitterman (~yury@9.52.117.87.donpac.ru) has joined #mapnik
19:22:39 <nikq> Mapnik Trac: Ticket #522 (overflow/image corruption in octree with png256 + large pixel output) updated | http://trac.mapnik.org/ticket/522#comment:4
19:25:57 *** luneff has quit (Ping timeout: 260 seconds)
19:27:13 <nikq> Mapnik Trac: Ticket #516 (Evaluate proper handling of endianess in SQLite and Oracle plugins) updated | http://trac.mapnik.org/ticket/516#comment:7
19:36:00 *** cgs_bob_ (~bob@219.sub-75-229-86.myvzw.com) has joined #mapnik
19:42:07 *** luneff (~yury@9.52.117.87.donpac.ru) has joined #mapnik
19:45:49 *** bitterman has quit (Ping timeout: 276 seconds)
19:48:00 *** timlinux has parted #mapnik (None)
20:09:10 *** gavinf has quit (Quit: gavinf)
20:09:48 *** gavinf (~gavinf@196.211.119.210) has joined #mapnik
20:17:27 *** pSouper (~pSouper@host86-169-45-223.range86-169.btcentralplus.com) has joined #mapnik
20:25:16 *** pSouper has quit (Quit: pSouper)
20:25:58 *** Primer has parted #mapnik ("Client exiting")
20:26:10 *** pSouper (~pSouper@host86-169-45-223.range86-169.btcentralplus.com) has joined #mapnik
20:26:16 *** pSouper has parted #mapnik (None)
21:45:49 <cmarqu> http://n.ethz.ch/~ivost/download/zurich.jpg - some other rendered in the making
21:45:58 <cmarqu> renderer
22:16:49 *** Ldp has quit ()
22:34:54 *** rweait (~nerd@weait.tor.istop.com) has joined #mapnik
23:25:09 *** springmeyer has quit (Quit: springmeyer)