{"action":"opened","issue":{"url":"https://api.github.com/repos/omniscale/imposm/issues/49","repository_url":"https://api.github.com/repos/omniscale/imposm","labels_url":"https://api.github.com/repos/omniscale/imposm/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/omniscale/imposm/issues/49/comments","events_url":"https://api.github.com/repos/omniscale/imposm/issues/49/events","html_url":"https://github.com/omniscale/imposm/issues/49","id":158570592,"number":49,"title":"Error writing osm features into database","user":{"login":"mdornfe1","id":4313686,"avatar_url":"https://avatars.githubusercontent.com/u/4313686?v=3","gravatar_id":"","url":"https://api.github.com/users/mdornfe1","html_url":"https://github.com/mdornfe1","followers_url":"https://api.github.com/users/mdornfe1/followers","following_url":"https://api.github.com/users/mdornfe1/following{/other_user}","gists_url":"https://api.github.com/users/mdornfe1/gists{/gist_id}","starred_url":"https://api.github.com/users/mdornfe1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdornfe1/subscriptions","organizations_url":"https://api.github.com/users/mdornfe1/orgs","repos_url":"https://api.github.com/users/mdornfe1/repos","events_url":"https://api.github.com/users/mdornfe1/events{/privacy}","received_events_url":"https://api.github.com/users/mdornfe1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-05T19:42:25Z","updated_at":"2016-06-05T19:42:25Z","closed_at":null,"body":"I'm following along with this [tutorial](http://imposm.org/docs/imposm/latest/tutorial.html). I am to read a pbf file into imposm. \r\n\r\n`imposm --read germany.osm.pbf`\r\n\r\nHowever, when I try to write to the database with\r\n\r\n`imposm --write --database osm --host localhost --user osm --port 5432`\r\n\r\nI get this error\r\n\r\n`Traceback (most recent call last):\r\n  File \"/usr/local/bin/imposm\", line 9, in <module>\r\n    load_entry_point('imposm==2.6.0', 'console_scripts', 'imposm')()\r\n  File \"/usr/local/lib/python2.7/dist-packages/imposm/app.py\", line 265, in main\r\n    db = DB(db_conf)\r\n  File \"/usr/local/lib/python2.7/dist-packages/imposm/db/config.py\", line 25, in DB\r\n    return PostGISDB(db_conf)\r\n  File \"/usr/local/lib/python2.7/dist-packages/imposm/db/postgis.py\", line 42, in __init__\r\n    if self.is_postgis_2():\r\n  File \"/usr/local/lib/python2.7/dist-packages/imposm/db/postgis.py\", line 59, in is_postgis_2\r\n    cur.execute('SELECT postgis_version()')\r\npsycopg2.ProgrammingError: function postgis_version() does not exist\r\nLINE 1: SELECT postgis_version()\r\n               ^\r\nHINT:  No function matches the given name and argument types. You might need to add explicit type casts.\r\n`\r\n\r\nKnow what might be causing it?\r\n\r\n"}}
{"actor":{"display_login":"mdornfe1"}}