Hi Gustavo,

Thanks for your help.

Here is the traceback I get from surfing to localhost:8080


    500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py", line 105, 
in _run
    self.main()
  File "/var/lib/python-support/python2.4/cherrypy/_cphttptools.py", line 254, 
in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in index
  File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 334, 
in expose
    output = database.run_with_transaction(
  File "<string>", line 5, in run_with_transaction
  File "/var/lib/python-support/python2.4/turbogears/database.py", line 302, in 
so_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 351, in 
<lambda>
    mapping, fragment, args, kw)))
  File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 391, 
in _execute_func
    return _process_output(output, template, format, content_type, mapping, 
fragment)
  File "/var/lib/python-support/python2.4/turbogears/controllers.py", line 82, 
in _process_output
    fragment=fragment)
  File "/var/lib/python-support/python2.4/turbogears/view/base.py", line 131, 
in render
    return engine.render(**kw)
  File "/var/lib/python-support/python2.4/turbokid/kidsupport.py", line 174, in 
render
    return t.serialize(encoding=self.defaultencoding, output=format, 
fragment=fragment)
  File "/var/lib/python-support/python2.4/kid/__init__.py", line 236, in 
serialize
    return serializer.serialize(self, encoding, fragment)
  File "/var/lib/python-support/python2.4/kid/serialization.py", line 51, in 
serialize
    text = list(self.generate(stream, encoding, fragment))
  File "/var/lib/python-support/python2.4/kid/serialization.py", line 329, in 
generate
    for ev, item in self.apply_filters(stream):
  File "/var/lib/python-support/python2.4/kid/pull.py", line 210, in _coalesce
    for ev, item in stream:
  File "/var/lib/python-support/python2.4/kid/filter.py", line 21, in 
transform_filter
    for ev, item in apply_matches(stream, template, templates, apply_func):
  File "/var/lib/python-support/python2.4/kid/filter.py", line 39, in 
apply_matches
    template, templates[:i] + templates[i+1:], apply_func):
  File "/var/lib/python-support/python2.4/kid/filter.py", line 31, in 
apply_matches
    item = stream.expand()
  File "/var/lib/python-support/python2.4/kid/pull.py", line 99, in expand
    for ev, item in self._iter:
  File "/var/lib/python-support/python2.4/kid/pull.py", line 168, in _track
    for p in stream:
  File "/var/lib/python-support/python2.4/kid/pull.py", line 210, in _coalesce
    for ev, item in stream:
  File "/home/alex/temp/first/first/templates/master.py", line 88, in 
_match_func
  File "/var/lib/python-support/python2.4/turbogears/identity/__init__.py", 
line 52, in __getattr__
    identity= self.identity()
  File "/var/lib/python-support/python2.4/turbogears/identity/__init__.py", 
line 45, in identity
    raise IdentityManagementNotEnabledException()
IdentityManagementNotEnabledException: An attempt was made to use a facility of 
the TurboGears Identity Management framework but identity management hasn't 
been enabled in the config file [via identity.on].
I don't understand everything that is going on, but it does all seem to be all code under /var/lib/python-support/python2.4/ and I assume all this originates from the standard debian packages.

The one exception is the master template of the project (/home/alex/temp/first/first/templates/master.py) which is created from master.kid which is created by quickstart. If I comment out the identity related code from master.kid (""" <div py:if="tg.config('identity.on',False) and not 'logging_in' in locals()" id="pageLogin">
       <span py:if="tg.identity.anonymous">
           <a href="/login">Login</a>
       </span>
       <span py:if="not tg.identity.anonymous">
           Welcome ${tg.identity.user.display_name}.
           <a href="/logout">Logout</a>
       </span>
   </div>
""")
then the project works OK (the nosetests still fail,) but of course I can't actually use identity.

Yes, I have used easy_install in the past to install stuff. I think I restricted stuff to my home directory and to /usr/local/. I am 95% certain I have got rid of all the python related stuff from my home directory, and /usr/local contains /usr/local/lib/python2.4/site-packages/dynwidgets-1.1-py2.4.egg/ (from http://cheeseshop.python.org/pypi/dynwidgets/1.1) which I installed after this problem turned up.

This machine has been upgraded from sarge, and I had an earlier turbogears installation in my home directory using python2.3 IIRC (downloaded from turbogears directly). I may have had earlier etch packages installed also prior to the version that is installed now.

Thanks again,
Alex


Gustavo Noronha Silva wrote:
Hello Alex!
I wonder if you have installed any of the Python stuff
that TurboGears uses using easy_install, or something like that at some
point?
Can you post this traceback, please? Perhaps it will shed some light on
the above, or give some insight on what the problem could be.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to