Hi,

I get the following error message:

AttributeError: 'alias' object has no attribute '_attributes'

when I try to access a Pyramid app on Debian Lenny in my browser.

Steps to reproduce:
-------------------

$ virtualenv --no-site-packages pyramidtest
$ cd pyramidtest
$ bin/pip install pyramid
$ bin/paster create -t pyramid_starter
$ cd myapp
$ bin/python setup.py develop
$ bin/paster serve development.ini

=> Access <SERVER_IP>:6543 in the browser

Versions:
---------

Python 2.6 has been manually build on the system, since Lenny does not
provide Python 2.6 out-of-the box.

pyramid = 1.0
WebError = 0.10.3
Chameleon = 2.0-rc7 (Pinning down Chameleon to a version < 2.0 did not
help.)


I ran into this problem when I tried to deploy a Pyramid app that was
developed on Ubuntu 10.04 and worked fine there.

I did not try to re-build Python 2.6 on the system so far, since this
is
a production server with other apps depending on Python 2.6.

Any ideas what could cause this or how to fix the problem?

Cheers,
timo


### ERROR TRACE ###

WebError Traceback:
⇝ AttributeError: 'alias' object has no attribute '_attributes'

URL: http://78.46.102.130:6543/
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/WebError-0.10.3-
py2.6.egg/weberror/evalexception.py',
line 431 in respond
  app_iter = self.application(environ, detect_start_response)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/pyramid/router.py',
line 158 in __call__
  response = view_callable(context, request)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/pyramid/config.py',
line 2839 in _rendered_view
  context)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/pyramid/
renderers.py', line
294 in render_view
  request=request)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/pyramid/
renderers.py', line
322 in render_to_response
  result = self.render(value, system_values, request=request)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/pyramid/
renderers.py', line
318 in render
  result = renderer(value, system_values)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/pyramid/
chameleon_zpt.py',
line 52 in __call__
  result = self.template(**system)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/chameleon/
template.py',
line 121 in __call__
  return self.render(**kwargs)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/chameleon/zpt/
template.py',
line 104 in render
  return super(PageTemplate, self).render(**k)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/chameleon/
template.py',
line 153 in render
  self.cook_check()
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/chameleon/
template.py',
line 264 in cook_check
  self.cook(body)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/chameleon/
template.py',
line 134 in cook
  program = self._cook(body, digest)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/chameleon/
template.py',
line 332 in _cook
  source = self._compile(nodes)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/chameleon/
template.py',
line 206 in _compile
  compiler = Compiler(self.engine, program)
File
'/srv/zope/pyramidtest/lib/python2.6/site-packages/chameleon/
compiler.py',
line 401 in __init__
  ast.fix_missing_locations(module)
File '/usr/local/lib/python2.6/ast.py', line 133 in
fix_missing_locations
  _fix(node, 1, 0)
File '/usr/local/lib/python2.6/ast.py', line 132 in _fix
  _fix(child, lineno, col_offset)
File '/usr/local/lib/python2.6/ast.py', line 132 in _fix
  _fix(child, lineno, col_offset)
File '/usr/local/lib/python2.6/ast.py', line 121 in _fix
  if 'lineno' in node._attributes:
AttributeError: 'alias' object has no attribute '_attributes'

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