Re: [sqlalchemy] load extension spatialite in windows

2019-07-10 Thread Mike Bayer
On Wed, Jul 10, 2019, at 12:12 PM, Michael Lane wrote: > I tried all combination for path with your exemple and always got the same > error message: > > conn.load_extension('c:\\mydll\\mod_spatialite') > sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) OsError 0xc1 (193) > > >

Re: [sqlalchemy] load extension spatialite in windows

2019-07-10 Thread Michael Lane
I tried all combination for path with your exemple and always got the same error message: conn.load_extension('c:\\mydll\\mod_spatialite') sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) OsError 0xc1 (193) conn = sqlite3.connect(":memory:") conn.enable_load_extension(True)

Re: [sqlalchemy] load extension spatialite in windows

2019-07-10 Thread Mike Bayer
I have no information on that, this has to do with the sqlite3 module included with Python: import sqlite3 conn = sqlite3.connect(":memory:") conn.load_extension("c:\\path\\to\\dll") Use cPython resources to get help and use the above code as what you're trying to get to work:

[sqlalchemy] load extension spatialite in windows

2019-07-10 Thread Michael Lane
Try to reproduce this in windows. How to do that? Even though I put the dll file in a directory defined in %PATH% or try with/without full path, with/without file extension, with '//' or '\', with libspatialite-4.dll