In the case of PostgreSQL, you only need the PostgreSQL database installed 
and running, as described in Detailed installation guides[PostgreSQL] 
<https://wiki.postgresql.org/wiki/Detailed_installation_guides>. 

Em domingo, 15 de novembro de 2015 08:57:34 UTC-2, Pierre escreveu:
>
> Hi all,
>
> It is unclear in the doc what's already included in web2py or what 
> additional software is necessary to use postgreSQL/postGIS ?
> I tried to connect like this :
>
> >>> db= DAL("postgres://****:****@localhost/test") 
>
> Traceback (most recent call last): 
>
> File "<console>", line 1, in <module> 
>
> File "/opt/web2py/gluon/packages/dal/pydal/base.py", line 174, in __call__ 
>
> obj = super(MetaDAL, cls).__call__(*args, **kwargs) 
>
> File "/opt/web2py/gluon/packages/dal/pydal/base.py", line 459, in __init__ 
>
> raise RuntimeError("Failure to connect, tried %d times:\n%s" % (attempts, 
> tb)) 
>
> RuntimeError: Failure to connect, tried 5 times: 
>
> Traceback (most recent call last): 
>
> File "/opt/web2py/gluon/packages/dal/pydal/base.py", line 437, in __init__ 
>
> self._adapter = ADAPTERS[self._dbname](**kwargs) 
>
> File "/opt/web2py/gluon/packages/dal/pydal/adapters/base.py", line 57, in 
> __call__ 
>
> obj = super(AdapterMeta, cls).__call__(*args, **kwargs) 
>
> File "/opt/web2py/gluon/packages/dal/pydal/adapters/postgres.py", line 
> 153, in __init__ 
>
> self.reconnect() 
>
> File "/opt/web2py/gluon/packages/dal/pydal/connection.py", line 104, in 
> reconnect 
>
> self.connection = f() 
>
> File "/opt/web2py/gluon/packages/dal/pydal/adapters/postgres.py", line 
> 150, in connector 
>
> return self.driver.connect(**driver_args) 
>
> File "/opt/web2py/gluon/contrib/pg8000/__init__.py", line 336, in connect 
>
> user, host, unix_sock, port, database, password, ssl) 
>
> File "/opt/web2py/gluon/contrib/pg8000/core.py", line 969, in __init__ 
>
> raise InterfaceError("communication error", exc_info()[1]) 
>
> InterfaceError: ('communication error', error(111, 'Connection refused')) 
>
> so I guess web2py is missing some additional element:
>
> what additional packages, adapters....etc  are necessary to make this work 
> ?
> do I have to install all these ?:
> http://postgis.net/docs/manual-2.0/postgis_installation.html#idp39560176
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to