Setting up an environment for old 2.0.4 TurboGears project?

10 views
Skip to first unread message

Joe Seeley

unread,
Apr 23, 2015, 5:28:36 PM4/23/15
to turbo...@googlegroups.com
I'm looking at upgrading a legacy TurboGears 2.0.4 application; the original developer has moved on.  So I'm trying to get a dev environment up and running with the 2.0.x series of TurboGears to start so I can test everything out.

I tried using easy_install to get the 2.0 tg.devtools using

easy_install -i http://www.turbogears.org/2.0/downloads/current/index tg.devtools

The easy install runs and everything looks like it is ok at first, but then I will get errors later saying that tgext.crud requires TurboGears 2.2.0

error: TurboGears2 2.0.4 is installed but TurboGears2>=2.2.0 is required by set(['tgext.crud'])

Alessandro Molina

unread,
Apr 23, 2015, 5:35:13 PM4/23/15
to TurboGears
You should also install the application itself with -i option,
that way you will retrieve tgext.crud and so on from the private index where they should have a proper version.

--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Michael Pedersen

unread,
Apr 24, 2015, 6:49:42 AM4/24/15
to tg-trunk
To clarify what Alessandro said, you would want to do one of two command lines:
easy_install -i http://tg.gy/204 myapp
python setup.py develop -i http://tg.gy/204

The second is when you have the source code and are working with it.

You might also consider setting up some sort of reproducible environment for your use. For example, I've been using vagrant with virtualbox to build up a reproducible environment for tg 2.3.4. If you do it right, you're just going to add some configuration files to your project. My generic version is under 40K (not sure how much under, I'm not digging that deep right now).
--
Michael J. Pedersen

Reply all
Reply to author
Forward
0 new messages