> This test doen't fail in m y machine. Are you sure all thirdpart
> deps. are up-to-date? Maybe you've got an old version of pysqlite2. I
> used to have similar failures until I upgraded.

What version of pysqlite exactly do I need (can't find any hint on
http://turbogears.org)? I've reinstalled turbogears with all its
dependencies
using 'python setup.py develop' in svn working directory. Then I
installed
pysqlite separately (it wasn't installed by 'setup.py develop') using
'easy_install pysqlite'. easy_install installed version 2.2.0.

After reinstall I get rid of debug output mentioned in
http://groups.google.com/group/turbogears/browse_thread/thread/287e8c5eecd2b585,
but I got other unit test errors, like these:


======================================================================
FAIL: turbogears.tests.test_form_controllers.test_mochikit_everywhere
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/andrey/tmp/tg/vpython/lib/python2.4/site-packages/nose-0.8.6-py2.4.egg/nose/core.py",
line 112, in runTest
    self.testFunc()
  File
"/home/andrey/projects/turbogears/turbogears/tests/test_form_controllers.py",
line 101, in test_mochikit_everywhere
    assert "MochiKit.js" in cherrypy.response.body[0]
AssertionError:
-------------------- >> begin captured stdout << ---------------------
09/Apr/2006:16:31:29 HTTP INFO Page handler: <bound method MyRoot.index
of <turbogears.tests.test_form_controllers.MyRoot object at
0xa66280cc>>
Traceback (most recent call last):
  File
"/home/andrey/tmp/tg/vpython/lib/python2.4/site-packages/CherryPy-2.2.0-py2.4.egg/cherrypy/_cphttptools.py",
line 106, in _run
    self.main()
  File
"/home/andrey/tmp/tg/vpython/lib/python2.4/site-packages/CherryPy-2.2.0-py2.4.egg/cherrypy/_cphttptools.py",
line 255, in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in index
  File "/home/andrey/projects/turbogears/turbogears/controllers.py",
line 206, in expose
    output = database.run_with_transaction(expose._expose,func, accept,
allow_json, allow_json_from_config,*args, **kw)
  File "/home/andrey/projects/turbogears/turbogears/database.py", line
216, in run_with_transaction
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "/home/andrey/projects/turbogears/turbogears/controllers.py",
line 227, in <lambda>
    expose._expose.when(rule)(lambda _func, accept, allow_json,
allow_json_from_config,*args,**kw: _execute_func(
  File "/home/andrey/projects/turbogears/turbogears/controllers.py",
line 260, in _execute_func
    return _process_output(output, template, format, content_type,
mapping, fragment)
  File "/home/andrey/projects/turbogears/turbogears/controllers.py",
line 56, in _process_output
    mapping=mapping, content_type=content_type,fragment=fragment)
  File "/home/andrey/projects/turbogears/turbogears/view/base.py", line
131, in render
    return engine.render(**kw)
  File
"/home/andrey/tmp/tg/vpython/lib/python2.4/site-packages/TurboKid-0.9.3-py2.4.egg/turbokid/kidsupport.py",
line 144, in render
    data.update(self.get_extra_vars())
  File "/home/andrey/projects/turbogears/turbogears/view/base.py", line
318, in stdvars
    locale = get_locale(),
  File "/home/andrey/projects/turbogears/turbogears/i18n/utils.py",
line 64, in get_locale
    locale = get_locale_f()
  File
"/home/andrey/projects/turbogears/turbogears/tests/test_i18n.py", line
14, in get_test_locale
    return turbogears.config.get('i18n.defaultLocale', 'en')
AttributeError: 'NoneType' object has no attribute 'config'

Request Headers:
  Host: localhost
localhost - - [09/Apr/2006:16:31:29] "GET / HTTP/1.1" 500 3020 "" ""
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;
charset=utf-8"></meta>
    <title>500 Internal error</title>
    <style type="text/css">
    #powered_by {
        margin-top: 20px;
        border-top: 2px solid black;
        font-style: italic;
    }

    #traceback {
        color: red;
    }
    </style>
</head>
    <body>
        <h2>500 Internal error</h2>
        <p>The server encountered an unexpected condition which
prevented it from fulfilling the request.</p>
        <pre id="traceback">Page handler: &lt;bound method MyRoot.index
of &lt;turbogears.tests.test_form_controllers.MyRoot object at
0xa66280cc&gt;&gt;
Traceback (most recent call last):
  File
"/home/andrey/tmp/tg/vpython/lib/python2.4/site-packages/CherryPy-2.2.0-py2.4.egg/cherrypy/_cphttptools.py",
line 106, in _run
    self.main()
  File
"/home/andrey/tmp/tg/vpython/lib/python2.4/site-packages/CherryPy-2.2.0-py2.4.egg/cherrypy/_cphttptools.py",
line 255, in main
    body = page_handler(*virtual_path, **self.params)
  File "&lt;string&gt;", line 3, in index
  File "/home/andrey/projects/turbogears/turbogears/controllers.py",
line 206, in expose
    output = database.run_with_transaction(expose._expose,func, accept,
allow_json, allow_json_from_config,*args, **kw)
  File "/home/andrey/projects/turbogears/turbogears/database.py", line
216, in run_with_transaction
    retval = func(*args, **kw)
  File "&lt;string&gt;", line 5, in _expose
  File "/home/andrey/projects/turbogears/turbogears/controllers.py",
line 227, in &lt;lambda&gt;
    expose._expose.when(rule)(lambda _func, accept, allow_json,
allow_json_from_config,*args,**kw: _execute_func(
  File "/home/andrey/projects/turbogears/turbogears/controllers.py",
line 260, in _execute_func
    return _process_output(output, template, format, content_type,
mapping, fragment)
  File "/home/andrey/projects/turbogears/turbogears/controllers.py",
line 56, in _process_output
    mapping=mapping, content_type=content_type,fragment=fragment)
  File "/home/andrey/projects/turbogears/turbogears/view/base.py", line
131, in render
    return engine.render(**kw)
  File
"/home/andrey/tmp/tg/vpython/lib/python2.4/site-packages/TurboKid-0.9.3-py2.4.egg/turbokid/kidsupport.py",
line 144, in render
    data.update(self.get_extra_vars())
  File "/home/andrey/projects/turbogears/turbogears/view/base.py", line
318, in stdvars
    locale = get_locale(),
  File "/home/andrey/projects/turbogears/turbogears/i18n/utils.py",
line 64, in get_locale
    locale = get_locale_f()
  File
"/home/andrey/projects/turbogears/turbogears/tests/test_i18n.py", line
14, in get_test_locale
    return turbogears.config.get('i18n.defaultLocale', 'en')
AttributeError: 'NoneType' object has no attribute 'config'

</pre>
    <div id="powered_by">
    <span>Powered by <a href="http://www.cherrypy.org";>CherryPy
2.2.0</a></span>
    </div>
    </body>
</html>


--------------------- >> end captured stdout << ----------------------


----------------------------------------------------------------------
Ran 177 tests in 7.278s

FAILED (failures=6, errors=64)
Exception in thread VisitManager (most likely raised during interpreter
shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
  File "/home/andrey/projects/turbogears/turbogears/visit/api.py", line
250, in run
exceptions.TypeError: 'NoneType' object is not callable
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
Exception in thread VisitManager (most likely raised during interpreter
shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
  File "/home/andrey/projects/turbogears/turbogears/visit/api.py", line
250, in run
exceptions.TypeError: 'NoneType' object is not callable
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
Exception in thread VisitManager (most likely raised during interpreter
shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
  File "/home/andrey/projects/turbogears/turbogears/visit/api.py", line
250, in run
exceptions.TypeError: 'NoneType' object is not callable
Unhandled exception in thread started by
Error in sys.excepthook:


.... Lots if these ...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to