Open GoogleCodeExporter opened 8 years ago
Turns out on osx some extension needs to be loaded, so the full if elif
statment becomes:
if platform.system() == 'Linux':
try:
db.enable_load_extension(True)
db.load_extension("libspatialite.so")
except:
pass
error = "ERROR: Cannot find libspatialite.so in path."
elif platform.system() == 'Windows':
try:
db.enable_load_extension(True)
db.load_extension("libspatialite-2.dll")
except:
pass
error = "ERROR: Cannot find libspatialite-2.dll in path."
elif platform.system() == 'Darwin':
try:
cur = db.cursor()
cur.execute("SELECT load_extension(\"libspatialite.dylib\")")
except:
pass
error = "ERROR: Cannot load libspatialite.dylib in path."
new file with my fix attached.
Original comment by er...@evrobv.nl
on 17 Apr 2012 at 7:50
Attachments:
[deleted comment]
Original comment by DanielS...@gmail.com
on 23 Apr 2012 at 3:43
Original issue reported on code.google.com by
er...@evrobv.nl
on 17 Apr 2012 at 7:24Attachments: