<div dir="ltr">Luigi, <div><br></div><div>Are you intentionally doing this with mapserver-dev and it's mapscript-python as opposed to the new mapscript-python package I prepared for MapServer 6.2 for you folks?  You may need to explicitly uninstall that old mapscript-python and mapserver-dev (which is now quite ancient). </div>
<div><br></div><div style>Best regards,</div><div style>Frank</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 10:43 AM, Gino Pirelli <span dir="ltr"><<a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I'm Luigi Pirelli working for Faunalia.it (<a href="mailto:luigi.pirelli@faunalia.it">luigi.pirelli@faunalia.it</a>)<br>

<br>
execution a qgis-dev python plugin, I can't load mapscript.py module<br>
due to lack fo DLLs. The problem is knows since 5 years:<br>
   <a href="http://trac.osgeo.org/osgeo4w/ticket/26" target="_blank">http://trac.osgeo.org/osgeo4w/ticket/26</a><br>
so, I think that a problem related to an old win version...<br>
<br>
Please let me know if there is a solution. Here is the log ot the tests I did:<br>
<br>
***********************************************************************************<br>
Changed 51 minutes ago by luigi.pirelli@…<br>
<br>
First test with a clean QGIS master and mapscript OSGeo4W on a WinXP<br>
Pro SP3 virtual machine.<br>
Mapscript is mapscript-dev-python (5.2b3-1) installed in:<br>
<br>
C:\OSGeo4W\apps\mapserver-dev\mapscript-python<br>
<br>
Running plugin generate this error:<br>
<br>
File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import<br>
mod = _builtin_import(name, globals, locals, fromlist, level)<br>
ImportError?: DLL load failed: The specified module could not be found.<br>
<br>
Running Dependency Walker on _mapscript.pyd show the need of these packages:<br>
<br>
LIBMAP_DEV.DLL and PYTHON25.DLL<br>
<br>
it's a OSGeo4W installer bug?<br>
__________________________<br>
comment:3 in reply to: ↑ 2Changed 15 minutes ago by luigi.pirelli@…<br>
<br>
the same happend installing:<br>
<br>
mapscript-python (5.0.2-1)<br>
<br>
that is installed in: C:\OSGeo4W\apps\Python25\lib\site-packages<br>
<br>
Running Dependency Walker results the same missing libraries<br>
__________________________<br>
comment:4Changed 0 seconds ago by luigi.pirelli@…<br>
<br>
TEST on: <a href="http://home.gdal.org/tmp/mapscript-python-6.2.1-2.tar.bz2" target="_blank">http://home.gdal.org/tmp/mapscript-python-6.2.1-2.tar.bz2</a><br>
<br>
after cleaning of all mapscript available in C:\OSGeo4W I uncompressed<br>
it (so installed mapscritp.py in<br>
C:\OSGeo4W\apps\python27\lib\site-packages)<br>
<br>
but obtained another error:<br>
<br>
File "C:\OSGeo4W\apps\Python27\lib\site-packages\mapscript.py", line 23, in<br>
<br>
swig_import_helper<br>
return _mod UnboundLocalError?: local variable '_mod' referenced<br>
before assignment<br>
<br>
so... no mapscript available seems to work with qgis-dev<br>
<br>
***********************************************************************************<br>
_______________________________________________<br>
osgeo4w-dev mailing list<br>
<a href="mailto:osgeo4w-dev@lists.osgeo.org">osgeo4w-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/osgeo4w-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush    | Geospatial Software Developer<br>
</div>