I'm the maintainer for the Fedora RPM of Pylons, and I'm getting a
similar error in the nosetests run during my build.  I too am using
Beaker 1.3.1.  I wonder if there is something that needs to be updated
in the test_template_caching test, especially since it also throws a
warning for using the deprecated render_response().  I can't package
0.9.7 for all Fedora users until I get this resolved.

Relevant (long) output from my build and test run:

======================================================================
ERROR: test_default
(projectname.tests.functional.test_sample2.TestSample2Controller)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/Pylons-0.9.7/tests/test_webapps/output/
ProjectName/projectname/tests/functional/test_sample2.py", line 14, in
test_default
    response = self.app.get(url(controller='sample',
action='test_template_caching'))
  File "/usr/lib/python2.6/site-packages/webtest/__init__.py", line
153, in get
    expect_errors=expect_errors)
  File "/usr/lib/python2.6/site-packages/webtest/__init__.py", line
310, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/usr/lib/python2.6/site-packages/webob/__init__.py", line
1321, in get_response
    application, catch_exc_info=True)
  File "/usr/lib/python2.6/site-packages/webob/__init__.py", line
1293, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.6/site-packages/webtest/lint.py", line 170,
in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/usr/lib/python2.6/site-packages/paste/cascade.py", line 130,
in __call__
    return self.apps[-1](environ, start_response)
  File "/usr/lib/python2.6/site-packages/paste/registry.py", line 350,
in __call__
    app_iter = self.application(environ, start_response)
  File "/usr/lib/python2.6/site-packages/paste/recursive.py", line 80,
in __call__
    return self.application(environ, start_response)
  File "/usr/lib/python2.6/site-packages/paste/errordocument.py", line
185, in __call__
    app_iter = self.application(environ, change_response)
  File "/usr/lib/python2.6/site-packages/weberror/evalexception.py",
line 235, in __call__
    return self.respond(environ, start_response)
  File "/usr/lib/python2.6/site-packages/weberror/evalexception.py",
line 418, in respond
    return self.application(environ, start_response)
  File "/usr/lib/python2.6/site-packages/beaker/middleware.py", line
70, in __call__
    return self.app(environ, start_response)
  File "/usr/lib/python2.6/site-packages/beaker/middleware.py", line
149, in __call__
    return self.wrap_app(environ, session_start_response)
  File "/usr/lib/python2.6/site-packages/routes/middleware.py", line
130, in __call__
    response = self.app(environ, start_response)
  File "/builddir/build/BUILD/Pylons-0.9.7/pylons/wsgiapp.py", line
125, in __call__
    response = self.dispatch(controller, environ, start_response)
  File "/builddir/build/BUILD/Pylons-0.9.7/pylons/wsgiapp.py", line
324, in dispatch
    return controller(environ, start_response)
  File "/builddir/build/BUILD/Pylons-0.9.7/tests/test_webapps/output/
ProjectName/projectname/lib/base.py", line 15, in __call__
    return WSGIController.__call__(self, environ, start_response)
  File "/builddir/build/BUILD/Pylons-0.9.7/pylons/controllers/
core.py", line 221, in __call__
    response = self._dispatch_call()
  File "/builddir/build/BUILD/Pylons-0.9.7/pylons/controllers/
core.py", line 172, in _dispatch_call
    response = self._inspect_call(func)
  File "/builddir/build/BUILD/Pylons-0.9.7/pylons/controllers/
core.py", line 107, in _inspect_call
    result = self._perform_call(func, args)
  File "/builddir/build/BUILD/Pylons-0.9.7/pylons/controllers/
core.py", line 60, in _perform_call
    return func(**args)
  File "/builddir/build/BUILD/Pylons-0.9.7/tests/test_webapps/output/
ProjectName/projectname/controllers/sample.py", line 48, in
test_template_caching
    return render_mako('/test_mako.html', cache_expire='never')
  File "/builddir/build/BUILD/Pylons-0.9.7/pylons/templating.py", line
274, in render_mako
    cache_type=cache_type, cache_expire=cache_expire)
  File "/builddir/build/BUILD/Pylons-0.9.7/pylons/templating.py", line
244, in cached_template
    cache = pylons.cache.get_cache(namespace, type=cache_type)
  File "/usr/lib/python2.6/site-packages/beaker/cache.py", line 187,
in get_cache
    return self.caches.setdefault(name + str(kw), Cache(name, **kw))
  File "/usr/lib/python2.6/site-packages/beaker/cache.py", line 104,
in __init__
    self.namespace = cls(namespace, **nsargs)
  File "/usr/lib/python2.6/site-packages/beaker/container.py", line
383, in __init__
    raise MissingCacheParameter("data_dir or dbm_dir is required")
MissingCacheParameter: data_dir or dbm_dir is required
----------------------------------------------------------------------
Ran 19 tests in 0.254s
FAILED (errors=1)
-- created: -------------------
  data/sessions/container_file/1
                  15
                      15971cbaca868514e81f2506503a844a.cache  (125
bytes)
                  1c
                      1c80e8e87b7aeb150ec72cc61f136b2e.cache  (126
bytes)
              6/6b
                      6b6c6c4790d5ca2e7c53c46a985aac3d.cache  (129
bytes)
          container_file_lock/4
                  43
                      431757b2d304c57a11bc3ec8dc1b246d69b62b9a.lock
(0 bytes)
              c/c0
                      c0c63f170748738d2247483a771754cc25eb9839.lock
(0 bytes)
              d
                  d6
                      d6b67a2bebf25c43e27ab8a4b0d3b2180d40dc0f.lock
(0 bytes)
-- updated: -------------------
  projectname/config/middleware.pyc  (2437 bytes)
      tests/functional/test_sample2.pyc  (1494 bytes)
----------------------------------------
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to