Newb Question -- Default install not working due to syntax error in Chameleon

26 views
Skip to first unread message

Vaibhav Bhandari

unread,
Jul 5, 2011, 6:29:27 AM7/5/11
to pylons-...@googlegroups.com
hi there --

Sorry I couldn't find answer to the following question after several web searches, forum finding and experimentation.

I get the following error when i run the pyramid_starter app from my setup. I have a fresh install in virtualenv and I just did easy_install on Pyramid.

File '/home/vaibhavb/local/lib/python2.4/site-packages/Paste-1.7.5.1-py2.4.egg/paste/exceptions/errormiddleware.py', line 144 in __call__
  app_iter = self.application(environ, sr_checker)
File 'passenger_wsgi.py', line 19 in application
  application = loadapp('config:/home/vaibhavb/python.vitraag.com/vmudi/development.ini')
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 203 in loadapp
  return loadobj(APP, uri, name=name, **kw)
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 223 in loadobj
  global_conf=global_conf)
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 247 in loadcontext
  global_conf=global_conf)
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 270 in _loadconfig
  return loader.get_context(object_type, name, global_conf)
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 397 in get_context
  global_additions=global_additions)
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 491 in _pipeline_app_context
  context.app_context = self.get_context(
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 401 in get_context
  section)
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 422 in _context_from_use
  context = self.get_context(
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 353 in get_context
  global_conf=global_conf)
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 247 in loadcontext
  global_conf=global_conf)
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 277 in _loadegg
  return loader.get_context(object_type, name, global_conf)
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 552 in get_context
  entry_point, protocol, ep_name = self.find_egg_entry_point(
File '/home/vaibhavb/local/lib/python2.4/site-packages/PasteDeploy-1.3.4-py2.4.egg/paste/deploy/loadwsgi.py', line 579 in find_egg_entry_point
  possible.append((entry.load(), protocol, entry.name))
File '/home/vaibhavb/local/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py', line 1954 in load
  entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File '/home/vaibhavb/python.vitraag.com/vmudi/vmudi/__init__.py', line 1 in ?
  from pyramid.config import Configurator
File '/home/vaibhavb/local/lib/python2.4/site-packages/pyramid-1.1a4-py2.4.egg/pyramid/config.py', line 95 in ?
  from pyramid import chameleon_text
File '/home/vaibhavb/local/lib/python2.4/site-packages/pyramid-1.1a4-py2.4.egg/pyramid/chameleon_text.py', line 7 in ?
  from chameleon.zpt.template import PageTextTemplateFile
SyntaxError: invalid syntax (__init__.py, line 1)

Thanks in advance.
Vaibhav

Jakub Warmuz

unread,
Jul 6, 2011, 4:15:29 AM7/6/11
to pylons-...@googlegroups.com
On Tue, Jul 5, 2011 at 12:29 PM, Vaibhav Bhandari <vaib...@gmail.com> wrote:
> hi there --
> Sorry I couldn't find answer to the following question after several web
> searches, forum finding and experimentation.
> I get the following error when i run the pyramid_starter app from my setup.
> I have a fresh install in virtualenv and I just did easy_install on Pyramid.
> URL: http://python.vitraag.com//
> File
> '/home/vaibhavb/local/lib/python2.4/site-packages/Paste-1.7.5.1-py2.4.egg/paste/exceptions/errormiddleware.py',
> line 144 in __call__
>   app_iter = self.application(environ, sr_checker)
> SyntaxError: invalid syntax (__init__.py, line 1)
> Thanks in advance.
> Vaibhav
>

You should note that Pyramid 1.1 no longer supports Python 2.4:
http://docs.pylonsproject.org/projects/pyramid/1.1/whatsnew-1.1.html#backwards-incompatibilities

--
Yours virtually,
Jakub Warmuz

Tony Theodore

unread,
Jul 6, 2011, 4:18:19 AM7/6/11
to pylons-...@googlegroups.com
On 5 July 2011 20:29, Vaibhav Bhandari <vaib...@gmail.com> wrote:
> hi there --
> Sorry I couldn't find answer to the following question after several web
> searches, forum finding and experimentation.
> I get the following error when i run the pyramid_starter app from my setup.
> I have a fresh install in virtualenv and I just did easy_install on Pyramid.

Looks like you're using python 2.4, which is no longer supported [1].

The other issue is easy_install picking up the alpha release -
sqlalchemy had a similar problem a few months back [2].

Cheers,

Tony


[1] https://groups.google.com/group/pylons-discuss/browse_thread/thread/f22221b69344017b
[2] http://groups.google.com/group/sqlalchemy/browse_thread/thread/c831f7fe7268c51f

Reply all
Reply to author
Forward
0 new messages