Hi, After upgrading to the latest galaxy-central version, I get the following exception when listing histories: =========== Error - <type 'exceptions.AttributeError'>: 'module' object has no attribute '_magic_number' File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Paste-1.6-py2.5.egg/paste/exceptions/errormiddleware.py', line 143 in __call__ app_iter = self.application(environ, start_response) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Paste-1.6-py2.5.egg/paste/recursive.py', line 80 in __call__ return self.application(environ, start_response) File '/data/hannon/gordon/galaxy/galaxy_prod/lib/galaxy/web/framework/middleware/remoteuser.py', line 110 in __call__ return self.app( environ, start_response ) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Paste-1.6-py2.5.egg/paste/httpexceptions.py', line 632 in __call__ return self.application(environ, start_response) File '/data/hannon/gordon/galaxy/galaxy_prod/lib/galaxy/web/framework/base.py', line 145 in __call__ body = method( trans, **kwargs ) File '/data/hannon/gordon/galaxy/galaxy_prod/lib/galaxy/web/framework/__init__.py', line 84 in decorator return func( self, trans, *args, **kwargs ) File '/data/hannon/gordon/galaxy/galaxy_prod/lib/galaxy/web/controllers/history.py', line 235 in list return self.stored_list_grid( trans, status=status, message=message, **kwargs ) File '/data/hannon/gordon/galaxy/galaxy_prod/lib/galaxy/web/framework/helpers/grids.py', line 269 in __call__ kwargs=kwargs ) File '/data/hannon/gordon/galaxy/galaxy_prod/lib/galaxy/web/framework/__init__.py', line 645 in fill_template return self.fill_template_mako( filename, **kwargs ) File '/data/hannon/gordon/galaxy/galaxy_prod/lib/galaxy/web/framework/__init__.py', line 656 in fill_template_mako return template.render( **data ) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/template.py', line 133 in render return runtime._render(self, self.callable_, args, data) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/runtime.py', line 364 in _render _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data)) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/runtime.py', line 380 in _render_context (inherit, lclcontext) = _populate_self_namespace(context, tmpl) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/runtime.py', line 348 in _populate_self_namespace ret = template.module._mako_inherit(template, context) File '/data/hannon/gordon/galaxy/galaxy_prod/database/compiled_templates/history/grid.mako.py', line 24 in _mako_inherit return runtime._inherit_from(context, u'../grid_base.mako', _template_uri) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/runtime.py', line 324 in _inherit_from ret = callable_(template, lclcontext) File '/data/hannon/gordon/galaxy/galaxy_prod/database/compiled_templates/grid_base.mako.py', line 49 in _mako_inherit _mako_generate_namespaces(context) File '/data/hannon/gordon/galaxy/galaxy_prod/database/compiled_templates/grid_base.mako.py', line 45 in _mako_generate_namespaces ns = runtime.Namespace('__anon_0x19274110', context._clean_inheritance_tokens(), templateuri=u'/display_common.mako', callables=None, calling_uri=_template_uri, module=None) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/runtime.py', line 158 in __init__ self.template = _lookup_template(context, templateuri, calling_uri) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/runtime.py', line 339 in _lookup_template return lookup.get_template(uri) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/lookup.py', line 85 in get_template return self.__load(srcfile, uri) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/lookup.py', line 127 in __load self.__collection[uri] = Template(uri=uri, filename=posixpath.normpath(filename), lookup=self, module_filename=(self.modulename_callable is not None and self.modulename_callable(filename, uri) or None), **self.template_args) File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/template.py', line 85 in __init__ if module._magic_number != codegen.MAGIC_NUMBER: AttributeError: 'module' object has no attribute '_magic_number' =========== has anyone ever encountered such an error ? Any help would be appreciated. -gordon
Deleting the "eggs" and "database/compiled_templates" (and having galaxy regenerate the files) solved the problem. Assaf Gordon wrote, On 12/29/2010 05:53 PM:
Hi,
After upgrading to the latest galaxy-central version, I get the following exception when listing histories: =========== File '/data/hannon/gordon/galaxy/galaxy_prod/eggs/Mako-0.2.5-py2.5.egg/mako/template.py', line 85 in __init__ if module._magic_number != codegen.MAGIC_NUMBER: AttributeError: 'module' object has no attribute '_magic_number' ===========
has anyone ever encountered such an error ? Any help would be appreciated.
-gordon
participants (1)
-
Assaf Gordon