[Qgis-user] Using the qplanet plugin on Windows? - pysqlite2, scipy
Alexander Bruy
alexander.bruy at gmail.com
Thu Sep 16 23:22:40 PDT 2010
Hi Alister,
2010/9/17 Alister Hood <alister.hood at synergine.com>:
> Hi everyone.
> I thought I'd try the qplanet plugin, but it wouldn't load, producing
> this error:
>
> ...
> File "C:\Documents and
> Settings\alister.hood/.qgis/python/plugins\Qplanet\modelite.py", line 4,
> in
> from pysqlite2 import dbapi2 as sqlite3
> File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 279, in
> _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
> ImportError: No module named pysqlite2
>
> I have no idea whether this would work, but I tried editing modelite.py
> to replace the offending line with `import sqlite3`, and it now produces
> this error:
Seems that you need to install pyspatialite package. This package available
via OSGeo4W installer in Libs section
> File "C:/Documents and
> Settings/alister.hood/.qgis/python/plugins\Qplanet\Shp2Shp.py", line 14,
> in
> from scipy import io, linalg
> File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 279, in
> _import
> ImportError: No module named scipy
>
> I can't spot scipy in the osgeo installer. Is there any way on Windows
> to install extra python modules that aren't in the osgeo installer? The
> installer from scipy's website fails, complaining that there is no
> Python in the registry, which is what the installers for most python
> modules seem to do.
Try to unpack scipy installer with arhiever (7-zip or something other),
find Python modules and copy them to OSGeo4W Python folder
--
Alexander Bruy
More information about the Qgis-user
mailing list