[pylons-discuss] Re: How to integrate spatialite in pyramid?

2019-07-10 Thread Michael Lane
mercredi 10 juillet 2019 08:53:21 UTC-4, Michael Lane a écrit : > > Try to find a way to import the dll but it always fails on the > load_extension > > def load_spatialite(dbapi_conn, connection_record): > dbapi_conn.enable_load_extension(True) > dbapi_conn.load_ext

[pylons-discuss] Re: How to integrate spatialite in pyramid?

2019-07-10 Thread Michael Lane
Try to find a way to import the dll but it always fails on the load_extension def load_spatialite(dbapi_conn, connection_record): dbapi_conn.enable_load_extension(True) dbapi_conn.load_extension('C:\\Scripts\\*mod_spatialite*.dll') Le mardi 9 juillet 2019 17:01:33 UTC-4, Mich

[pylons-discuss] Re: How to integrate spatialite in pyramid?

2019-07-10 Thread Michael Lane
Hi, thanks for the answer. I saw this tutorial many time on my google research, but I don't know how to integrate this in pyramid and specifically for Windows. I probably not clear on that one, but I'm going to have only one database at the time. The sqlite (spatialite) is used for my local de

Re: [pylons-discuss] How to integrate spatialite in pyramid?

2019-07-10 Thread Michael Lane
gt; > which I would guess belongs into your `get_tm_session` function. Try > debugging into that and see if it works on `dbsession` or some property on > it. > > > > Hope that helps, Andi > > > > > > *From: *> on behalf of Michael > Lane >

[pylons-discuss] How to integrate spatialite in pyramid?

2019-07-09 Thread Michael Lane
I would like to use spatialite in my project but I don't find the right way to do that. Does anybody have already done that and can give me an example? my environment: Windows 10: Python version: 3.6.8 Local database: sqlite (for spatialite) Remote databas

[pylons-discuss] How to use spatialite with pyramid

2019-07-09 Thread Michael Lane
How to add spatialite to the engine of my pyramid project? my environment: Windows 10: Python version: 3.6.8 Local database: sqlite (for spatialite) Remote database: postgresql I find a lot of exemples where spatialite is set in the module parameter fo