I have a postgres table below with a field `coordinates` of type path:

 
   CREATE TABLE geometry
        (
            id serial not null primary key,
            coordinates path not null
        )




Trying to add a Geometry into the table:

    session.add(Geometry(id = 1, coordinates = "path('(15.234428926980286, 
47.95865145177352)')"))

 I am getting this error:

 sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedFunction) 
function st_geomfromewkt(unknown) does not exist

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/18cf8b5e-d3ec-47b8-95b0-53fe276f06c4%40googlegroups.com.

Reply via email to