Forums

My application suddenly broke, some zodb issue

This is the log file:

2015-03-05 12:35:03,306 :IOError: write error 2015-03-05 12:35:03,306 :RuntimeError: generator ignored GeneratorExit 2015-03-23 16:54:24,510 :Exception on /informes/ [GET] Traceback (most recent call last): File "/home/monitoreopetro/.virtualenvs/petrobras/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request()

File "/home/monitoreopetro/.virtualenvs/petrobras/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e)

File "/home/monitoreopetro/.virtualenvs/petrobras/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/monitoreopetro/.virtualenvs/petrobras/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request()

File "/home/monitoreopetro/.virtualenvs/petrobras/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint

File "/home/monitoreopetro/.virtualenvs/petrobras/lib/python2.7/site-packages/flask_login.py", line 758, in decorated_view return func(args, *kwargs)

File "/home/monitoreopetro/petrobras/PetrobrasOS/petrobrasOS/views.py", line 152, in informes nombresProyectos = userAllowedProyects()

File "/home/monitoreopetro/petrobras/PetrobrasOS/petrobrasOS/views.py", line 32, in userAllowedProyects proyects = [proy.nombre for proy in coleccion.proyectos()]

File "/home/monitoreopetro/petrobras/PetrobrasOS/petrobrasOS/basedatos.py", line 18, in proyectos return self.db['proyectos'].values()

File "/usr/lib/python2.7/UserDict.py", line 19, in getitem if key in self.data:

File "/home/monitoreopetro/.local/lib/python2.7/site-packages/flaskext/zodb.py", line 91, in data return self.connection.root()

File "/home/monitoreopetro/.local/lib/python2.7/site-packages/flaskext/zodb.py", line 85, in connection flask._request_ctx_stack.top.zodb_connection = connector.db.open()

File "/home/monitoreopetro/.virtualenvs/petrobras/lib/python2.7/site-packages/werkzeug/utils.py", line 71, in get value = self.func(obj)

File "/home/monitoreopetro/.local/lib/python2.7/site-packages/flaskext/zodb.py", line 104, in db return self.ext.create_db(self.app)

File "/home/monitoreopetro/.local/lib/python2.7/site-packages/flaskext/zodb.py", line 65, in create_db factory, dbargs = zodburi.resolve_uri(storage)

File "/home/monitoreopetro/.local/lib/python2.7/site-packages/zodburi/init.py", line 13, in resolve_uri resolver = ep.load()

File "/home/monitoreopetro/.virtualenvs/petrobras/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1953, in load if require: self.require(env, installer) File "/home/monitoreopetro/.virtualenvs/petrobras/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1966, in require working_set.resolve(self.dist.requires(self.extras),env,installer)) File "/home/monitoreopetro/.virtualenvs/petrobras/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info here

Can anyone please help me with this?

That's a really cryptic error message. My guess is that there's some package that you're missing that zodb is trying to use. I have no idea how to find out which one, though. Sorry I couldn't be more helpful. Perhaps you could review the requirements for zodb and make sure that you have them installed in your virtualenv.