无法在动态 link 库 spatialite.dll 中找到 GRASS r.in.gdal crash:procedure 入口点 sqlite3_rtree_geometry_callback

GRASS r.in.gdal crash:procedure entry point sqlite3_rtree_geometry_callback could not be located in the dynamic link library spatialite.dll

我编写了以下 python 脚本来尝试将光栅文件导入 GRASS:

import os
os.chdir(r'C:\Users\Desktop')
import sys
sys.path.append(os.path.join(os.environ['GISBASE'], 'etc', 'python'))
import grass.script as g
import grass.script.setup as gsetup
gisbase = os.environ['GISBASE']
gisdb = 'C:\Users\Documents\grassdata'
location = 'newLocation'
mapset = 'mTW'
gsetup.init(gisbase, gisdb, location, mapset)

g.run_command('r.in.gdal', input = 'middle TW', output = 'middl_TW')

但是我得到了这个错误:

ERROR: GISRC - variable not set

然后出现了这个框消息:

这意味着无法在动态 link 库 C:\OSGeo4W\bin\spatialite.dll

中找到过程入口点 sqlite3_rtree_geometry_callback

然后出现了:

似乎 r.in.gdal 模块像我调用的那样崩溃了。

如果我直接使用 GRASS GUI,在我选择一个地图集后出现此框消息并且程序崩溃:

如何解决这个问题?我在WIN 8.1

下使用GRASS 6.4.3, python 2.7.6

我通过删除 C:\OSGEO4W 下的整个文件夹卸载 OSGEO4W 后,现在我可以启动 GRASS 并正常使用它的模块了。