Hi everyone,
First things first: is there a documented way to move a TG2
application from one TG2 development environment to another? Also,
when committing a TG2 project to a source-code repository, exactly
what parts of the tree generated by "paster quickstart" need to be
controlled?
Excruciating details follow:
I had a development machine crash, so I am attempting to recover a TG2
app (developed last spring) from a source-code repository. The code in
the repository includes all, and only, the code in the tree generated
by "paster quickstart", plus my hand-developed code in the same tree
(changes to project_dir/model/*.py, project_dir/templates/*, and
project_dir/controllers/root.py). In the new TG2 environment I
installed on a different machine, this app will not run, though it had
no external dependencies outside of the virtual TG2 environment.
I've included the stack trace below, but I don't think that the
particulars of it are important. I'm 99% sure the problem is that I'm
trying to move an app developed under one version of TG, into a
virtual environment with a slightly different version of TG installed;
and the project has generated code that depends on the exact TG
version. My real questions are, "How can I recover from this?" and
"How can I avoid getting into similar difficulties in the future?"
My approach, in the absence of a better idea, will be to start with a
new "paster quickstart" app, diff the new project against the old one,
and migrate only the code I wrote by hand. But I'd rather there be a
better idea :-/
I would appreciate any advice.
Thanks,
-- Joe
(tg2env)jk@polymath:~/Software/tg2env/tbird-reg$ paster serve
live.ini
Traceback (most recent call last):
File "/home/jk/Software/tg2env/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')
()
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 123, in
invoke
exit_code = runner.run(args)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run
result = self.command()
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 276, in
command
relative_to=base, global_conf=vars)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 313, in
loadapp
**kw)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 203, in
loadapp
return loadobj(APP, uri, name=name, **kw)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 224, in
loadobj
return context.create()
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 617, in
create
return self.object_type.invoke(self)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", line 109, in
invoke
return fix_call(context.object, context.global_conf,
**context.local_conf)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
PasteDeploy-1.3.4-py2.6.egg/paste/deploy/util/fixtypeerror.py", line
57, in fix_call
val = callable(*args, **kw)
File "/home/jk/Software/tg2env/tbird-reg/tbirdreg/config/
middleware.py", line 35, in make_app
app = make_base_app(global_conf, full_stack=True, **app_conf)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
TurboGears2-2.1.3-py2.6.egg/tg/configuration.py", line 890, in
make_base_app
app = self.add_auth_middleware(app, skip_authentication)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
TurboGears2-2.1.3-py2.6.egg/tg/configuration.py", line 661, in
add_auth_middleware
app = setup_sql_auth(app, skip_authentication=skip_authentication,
**auth_args)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
repoze.what_quickstart-1.0-py2.6.egg/repoze/what/plugins/
quickstart.py", line 245, in setup_sql_auth
**who_args)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
repoze.what-1.0.9-py2.6.egg/repoze/what/middleware.py", line 218, in
setup_auth
middleware = make_middleware(skip_authn, app, **who_args)
File "/home/jk/Software/tg2env/lib/python2.6/site-packages/
repoze.who_testutil-1.0.1-py2.6.egg/repoze/who/plugins/testutil.py",
line 215, in make_middleware
return PluggableAuthenticationMiddleware(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'charset'
(tg2env)jk@polymath:~/Software/tg2env/tbird-reg$
--
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?hl=en.