Re: [Mapnik-users] NameError: name 'Map' is not defined

2009-04-01 Thread Christopher Barker
Dane Springmeyer wrote: in the 'world_map.py' you created make sure you have the line: from mapnik import * Please don't encourage import * in python scripts. Python namespaces are a wonderful thing -- let's use them. Every single package I'm involved in that used to encourage import *,

Re: [Mapnik-users] NameError: name 'Map' is not defined

2009-04-01 Thread Michal Migurski
Agree - splat-imports make it extremely difficult to understand example code. Here are (all?) the places on the wiki where they are used: http://www.google.com/search?q=%22from+mapnik+import%22+site%3Atrac.mapnik.org%2Fwiki It'd be worth fixing these, I've started with

Re: [Mapnik-users] NameError: name 'Map' is not defined

2009-04-01 Thread Dane Springmeyer
I agree too. Mike, thanks! Chris, sorry to arrgh you :) Dane On Apr 1, 2009, at 12:43 PM, Michal Migurski wrote: Agree - splat-imports make it extremely difficult to understand example code. Here are (all?) the places on the wiki where they are used:

Re: [Mapnik-users] NameError: name 'Map' is not defined

2009-04-01 Thread Christopher Barker
Dane Springmeyer wrote: On Apr 1, 2009, at 12:43 PM, Michal Migurski wrote: It'd be worth fixing these, I've started with http://trac.mapnik.org/wiki/GettingStarted Thanks! Wikis in action. Dane Springmeyer wrote: Chris, sorry to arrgh you :) Actually, the arrgh! was not about that -- it

Re: [Mapnik-users] NameError: name 'Map' is not defined

2009-03-31 Thread Dane Springmeyer
Hey Klaus, Welcome to Mapnik. in the 'world_map.py' you created make sure you have the line: from mapnik import * at the top. If you do have that line at the top of your script them post back the result of doing this in a python interpreter: from mapnik import Map m = Map(600,300) Let