On 28 Feb 2008, at 16:18, Guillaume Sueur wrote:

> Hi,
>
> Sorry for double posting, but my first mail took 2 days to be  
> published,
> and I've re-posted during that time.
>
> Python looks fine. mapnik is in
> /usr/lib/python2.5/site-packages/
> and python 2.5 is used by the program.
>
> But there must be something there, cause when I "import mapnik" being
> into the site-packages dir, it's fine.
>

could you try  :

python

 >>> import sys
 >>> print sys.path


and see what's there ?
Artem

>
> Artem Pavlenko a écrit :
>> Hi Guillaume,
>>
>>> Hi list,
>>>
>>> I've been compiling, installing and using mapnik on an ubuntu box  
>>> with
>>> no problem.
>>> I've tried to do the same on a second box, running Ubuntu-server
>>> Both compiling and installing went fine
>>> rundemo.py runs fine too
>>> from mapnik import * is fine within python interpreter
>>>
>>> BUT
>>> running another python file (which works ok on the other box,  
>>> it's just
>>> "from mapnik import *" and "m = Map(600,600)" ...) sends :
>>> NameError: name 'Map' is not defined
>>>
>>> if after that failure I run rundemo.py again, I've got :
>>> The mapnik library and python bindings must have been compiled and
>>> installed successfully before running this script.
>>>
>>> After a reboot of the server, it's fine again in python interpreter.
>>>
>>> Am I forgetting something ? What's up ?
>>>
>>> Thanks for your help !
>>
>> There can be a number of reasons why you're getting this message.  
>> Could
>> you verify  you haven't got  multiple Python versions installed on  
>> your
>> Ubuntu box and that you're running correct one.
>>
>> HTH
>> Artem
>>>
>>> -- 
>>> Guillaume SUEUR
>>>
>>> _______________________________________________
>>> Mapnik-users mailing list
>>> [email protected]
>>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>>>
>>
>
> -- 
> Guillaume SUEUR
> Expert SIG et OpenSource
> NEOGEO
> 46 RUE MATABIAU
> 31000 TOULOUSE
> 06 74 91 95 20
> Site web : http://www.neogeo-online.net
>
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
>

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to