On Jun 10, 2:46 pm, Mike Orr <[email protected]> wrote:
> I moved my site to another server and I'm getting a Beaker cache error.
>
> ===
> Module pylons.controllers.core:60 in _perform_call
> << """Hide the traceback for everything above this method"""
> __traceback_hide__ = 'before_and_this'
> return func(**args)
>
> def _inspect_call(self, func):>> return func(**args)
>
> Module ?:2 in all_incidents
> Module pylons.decorators.cache:97 in wrapper
> << b_kwargs['type'] = type
>
> my_cache = pylons.cache.get_cache(namespace, **b_kwargs)
>
> if expire == "never":>> my_cache =
> pylons.cache.get_cache(namespace, **b_kwargs)
>
> Module beaker.cache:187 in get_cache
> << kw = self.kwargs.copy()
> kw.update(kwargs)
> return self.caches.setdefault(name + str(kw), Cache(name,
> **kw))
>
> def get_cache_region(self, name, region):>> return
> self.caches.setdefault(name + str(kw), Cache(name, **kw))
>
> Module beaker.cache:104 in __init__
> << raise TypeError("Unknown cache implementation %r" % type)
>
> self.namespace = cls(namespace, **nsargs)
> self.expiretime = expiretime or expire
> self.starttime = starttime>> self.namespace = cls(namespace,
> **nsargs)
>
> Module beaker.container:485 in __init__
> <<
> if not file_dir and not data_dir:
> raise MissingCacheParameter("data_dir or file_dir
> is required")
> elif file_dir:
> self.file_dir = file_dir>> raise
> MissingCacheParameter("data_dir or file_dir is required")
>
> MissingCacheParameter: data_dir or file_dir is required
> ===
I stumbled upon the same problem, although I was trying to use
memcached. I worked out that this is a bug with Beaker 1.3.1 which is
fixed in hg tip. See
http://bitbucket.org/bbangert/beaker/changeset/403ef7c82d32/
Cheers,
Chris Miles
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---