Deployment instruction failing

28 views
Skip to first unread message

Db

unread,
Jun 15, 2012, 3:41:08 AM6/15/12
to turbo...@googlegroups.com
I am trying to follow the standard deployment formular suggested here:

http://turbogears.org/2.1/docs/main/Deployment/ModWSGI.html#apache-mod-wsgi

This fails with :

bzr branch http://bazaar.launchpad.net/~mcfletch/modwsgideploy/parameterized/
bzr: ERROR: exceptions.AttributeError: 'ResponseFile' object has no attribute 'readline'                      

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/commands.py", line 1141, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/builtins.py", line 1443, in run
    self.add_cleanup(br_from.lock_read().unlock)
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/branch.py", line 2484, in lock_read
    self.repository.lock_read()
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/repofmt/pack_repo.py", line 1803, in lock_read
    self._refresh_data()
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/repofmt/pack_repo.py", line 1719, in _refresh_data
    self._pack_collection.reload_pack_names()
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/repofmt/pack_repo.py", line 1467, in reload_pack_names
    first_read = self.ensure_loaded()
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/repofmt/pack_repo.py", line 1087, in ensure_loaded
    for index, key, value in self._iter_disk_pack_index():
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/index.py", line 546, in iter_all_entries
    self._buffer_all()
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/index.py", line 464, in _buffer_all
    self._read_prefix(stream)
  File "/usr/local/lib/python2.7/site-packages/bzr-2.6b1-py2.7-linux-x86_64.egg/bzrlib/index.py", line 558, in _read_prefix
    options_line = stream.readline()
AttributeError: 'ResponseFile' object has no attribute 'readline'

bzr 2.6b1 on python 2.7.0 (Linux-2.6.37.6-0.11-default-x86_64-with-
    SuSE-11.4-x86_64)
arguments: ['/usr/local/bin/bzr', 'branch',
    'http://bazaar.launchpad.net/~mcfletch/modwsgideploy/parameterized/']
plugins: bash_completion[2.6b1], changelog_merge[2.6b1], launchpad[2.6b1],
    netrc_credential_store[2.6b1], news_merge[2.6b1], po_merge[2.6b1],
    weave_fmt[2.6b1]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'

*** Bazaar has encountered an internal error.  This probably indicates a
    bug in Bazaar.  You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.



Similar bugs have been reported and stated as fixed on debian / ubuntu in bzr version 2.6.0-dev
unfortunately cannot report the same here.

TG really should have its own deployment script  for each release,
to get a  quick standard deployment going , from which things can be tweaked as desired.



Db












Alessandro Molina

unread,
Jun 15, 2012, 4:28:47 AM6/15/12
to turbo...@googlegroups.com
We are already working at a deployment command for future TG releases,
also automatic deploy to redhat openshift is on schedule.

In the mean time I would suggest you to try upgrading to bazar 2.6b2,
I saw that similar bugs got resolved in bazar 2.6b2.

Otherwise you can proceed with manual deploy,
it is fairly easy if you follow the mod_wsgi instructions:

http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide
http://code.google.com/p/modwsgi/wiki/IntegrationWithPylons
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/jjoADq2wrHQJ.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.

fabrizio

unread,
Jun 15, 2012, 7:13:56 AM6/15/12
to turbo...@googlegroups.com
You can also use:

easy_install modwsgideploy
Reply all
Reply to author
Forward
0 new messages