Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r485 broke Python bindings #30

Closed
artemp opened this issue Oct 11, 2011 · 1 comment
Closed

r485 broke Python bindings #30

artemp opened this issue Oct 11, 2011 · 1 comment

Comments

@artemp
Copy link
Member

artemp commented Oct 11, 2011

Starting in r485, e.g.

datasource_bmpolygons = PostGIS(host=conf.db_host,
                                dbname=conf.db_name,
                                user=conf.db_user,
                                password=conf.db_password,
                                table='bmpolygon_joined_current')

where conf.db_host and conf.db_password are both None, fails with

connection  [host= dbname=cycling user=cycling password= connect_timeout=4] failed
could not translate host name "dbname=cycling" to address: Name or service not known
@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[artem] Work fine if host and user are None :

>>> ds = PostGIS(host=None, dbname='openstreetmap', user=None,table='planet_osm_point')

but fails with empty strings:

>>> ds = PostGIS(host='', dbname='openstreetmap', user=None,table='planet_osm_point')

Fixed in r615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant