<div dir="ltr">Dear Ritesh.<br><br>Thanks for your reply.<br><br>Actually nik2img works fine on command line and all test with its installation is fine.<br><br>our Xml file is also fine because we tested it on server 1 and then we copied to server 2. <br>
<br>Server 2 is new and it is our first try to make maps using nik2img on this server.<br><br>the last line of error shows that one module is missed..but I don't know which module it is...<br>I think one of dependencies is not there yet.<br>
<br>thanks<br>Alireza<br><br><br><div class="gmail_quote">On Wed, Nov 16, 2011 at 1:06 PM, Ritesh Ambastha <span dir="ltr"><<a href="mailto:ritesh.linux@gmail.com">ritesh.linux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Can't tell you more without looking at the xml file. Anyways, I guess there is a problem either with xml or installation part. I have experiences with TileCache and not with nik2img. <div><br></div><div><br></div><div>
Have you checked the installation? </div><div><br></div><div><p style="line-height: 1.25em; max-width: 64em; font-family: arial,sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);">Test Installation of command-line script:</p>
<pre style="font-size: 12px; padding: 0.5em; overflow: auto; font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; max-width: 70em; background-color: rgb(255, 255, 255);">
<span>$ nik2img</span><span style="color: rgb(102, 102, 0);">.</span><span>py </span><span style="color: rgb(136, 0, 0);"># should be able to tab complete...</span><span><br>
$ which nik2img</span><span style="color: rgb(102, 102, 0);">.</span><span>py </span><span style="color: rgb(136, 0, 0);"># should show install location</span><span><br>$ nik2img</span><span style="color: rgb(102, 102, 0);">.</span><span>py </span><span style="color: rgb(102, 102, 0);">-</span><span>h </span><span style="color: rgb(136, 0, 0);"># should display usage</span></pre>
<pre style="font-size: 12px; padding: 0.5em; overflow: auto; font-family: Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace; max-width: 70em; background-color: rgb(255, 255, 255);">
<a href="http://code.google.com/p/mapnik-utils/wiki/Nik2Img" target="_blank">http://code.google.com/p/mapnik-utils/wiki/Nik2Img</a></pre><br><div class="gmail_quote"><div><div class="h5">On Wed, Nov 16, 2011 at 3:00 PM, Alireza Kashian <span dir="ltr"><<a href="mailto:alireza.kashian@gmail.com" target="_blank">alireza.kashian@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="h5"><div dir="ltr">Hi. <br><br>I have been member of this mailing list for a long time, but I am not sure if I can ask questions related to nik2img here as well. I couldn't find its own mailing list.<br>
<br>I have installed mapnik 0.7.0 on fresh Debian with all other required packages. including python etc..<br>
<br>now I try to make a map using my own stylesheet xml file.<br><br>Nik2img throws following errror stops working. Could you please help me to find where the problem is... proj package is installed on Debian and is latest version.<br>
<br>============================================<br><br><div>Traceback (most recent call last):<br>File
"/usr/bin/nik2img.py", line 5, in
<module><br>pkg_resources.run_script('nik2img==0.7.0',
'nik2img.py')<br>File "/usr/lib/python2.5/site-packages/pkg_resources.py", line
448, in run_scr<br>ipt<br>self.require(requires)[0].run_script(script_name,
ns)<br>File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1173, in
run_sc<br>ript<br>exec script_code in namespace, namespace<br>File
"/usr/bin/nik2img.py", line 238, in <module><br><br>File
"/usr/bin/nik2img.py", line 228, in main<br><br>File
"build/bdist.linux-x86_64/egg/mapnik_utils/composer.py", line 263, in
__i<br>nit__<br>File "build/bdist.linux-x86_64/egg/mapnik_utils/composer.py",
line 69, in __in<br>it__<br>File
"build/bdist.linux-x86_64/egg/mapnik_utils/composer.py", line 280, in
bui<br>ld<br>File "build/bdist.linux-x86_64/egg/mapnik_utils/composer.py", line
172, in bui<br>ld<br>File
"build/bdist.linux-x86_64/egg/mapnik_utils/metaclass_injectors.py", line<br>218,
in transform<br>File
"build/bdist.linux-x86_64/egg/mapnik_utils/version_adapter.py", line 66,<br>in
<i>_getattr_</i><br>AttributeError: 'module' object has no attribute
'ProjTransform'</div><br></div>
<br></div></div>_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@lists.osgeo.org" target="_blank">Tilecache@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/tilecache" target="_blank">http://lists.osgeo.org/mailman/listinfo/tilecache</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>