postgresql - Deploying Web2py to Heroku (Psycopg2 Error) -


i'm trying deploy web2py app on heroku , although works fine on local server, keep getting same ticket when deploy it. i'm stuck on few time now, trying , solution several forums. please!

traceback (most recent call last):  file "/app/gluon/restricted.py", line 217, in restricted   exec ccode in environment  file "/app/applications/processos/models/db.py", line 21, in <module>   db = get_db(name=none, pool_size=10)  file "/app/gluon/contrib/heroku.py", line 25, in get_db   db = dal(os.environ[name], pool_size=pool_size)  file "/app/gluon/dal.py", line 7787, in __init__   raise runtimeerror("failure connect, tried %d times:\n%s" % (attempts, tb)) runtimeerror: failure connect, tried 5 times: traceback (most recent call last):  file "/app/gluon/dal.py", line 7766, in __init__   self._adapter = adapters[self._dbname](**kwargs)  file "/app/gluon/dal.py", line 2756, in __init__   if do_connect: self.find_driver(adapter_args,uri)  file "/app/gluon/dal.py", line 795, in find_driver   raise runtimeerror("no driver available %s" % str(self.drivers)) runtimeerror: no driver available ('psycopg2',) 

i'm running on mac osx 10.9.2

you need using virtualenv pip project. before deploy, need pip freeze > requirements.txt in projects root folder. heroku looks file , install requirements, accordingly. heroku's documentation pretty good. please refer getting started python more help.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -