Alright, a little further now. I figured I needed to reinstall/upgrade
psycopg2, which I did. Now I'm getting the ticket:
Traceback (most recent call last):
File "G:\web2py\gluon\restricted.py", line 227, in restricted
exec ccode in environment
File "G:/web2py/applications/myapp/models/0_0_globals.py"
<http://127.0.0.1:8000/admin/edit/YAKiToMe/models/0_0_globals.py>, line 43, in
<module>
migrate=True, # True causes db changes to propagate immediately
File "G:\web2py\gluon\packages\dal\pydal\base.py", line 174, in __call__
obj = super(MetaDAL, cls).__call__(*args, **kwargs)
File "G:\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 10 times:
Traceback (most recent call last):
File "G:\web2py\gluon\packages\dal\pydal\base.py", line 437, in __init__
self._adapter = ADAPTERS[self._dbname](**kwargs)
File "G:\web2py\gluon\packages\dal\pydal\adapters\base.py", line 57, in
__call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
File "G:\web2py\gluon\packages\dal\pydal\adapters\postgres.py", line 151, in
__init__
self.reconnect()
File "G:\web2py\gluon\packages\dal\pydal\connection.py", line 126, in
reconnect
self.connection = f()
File "G:\web2py\gluon\packages\dal\pydal\adapters\postgres.py", line 148, in
connector
return self.driver.connect(**driver_args)
File "C:\Program Files
(x86)\Python27\lib\site-packages\psycopg2\__init__.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: could not connect to server: Connection refused
(0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
I'm invoking my web2py app from localhost. I'm pretty sure I installed postgres
to monitor port 5432 (the default). I'm checking it out now.
--
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.