#2169: Migrating turbogears to pip
--------------------------+-------------------------------------------------
 Reporter:  jorge.vargas  |        Owner:  jorge.vargas
     Type:  task          |       Status:  new         
 Priority:  highest       |    Milestone:  2.0         
Component:  TurboGears    |      Version:  trunk       
 Severity:  normal        |   Resolution:              
 Keywords:  needs tests   |  
--------------------------+-------------------------------------------------
Comment (by jorge.vargas):

 = install turbogears2 =

 {{{
  virtualenv --no-site-packages tg2pip
  cd tg2pip
  source bin/activate
  pip -E . install turbogears2 -i
 http://www.turbogears.org/2.0/downloads/current/index
 }}}

 = repoze.who.plugins.sa fails to compile (pip install) =

 == problem ==

 it thinks ez_setup is installed

 == fix ==

 patch it with try/catch or delete the two lines

 = several "badly named" svn url =

 == problem ==
 pip can't parse them?

 {{{
 Warning: cannot find svn location for repoze.what.plugins.sql==1.0a5-r3122
 Warning: cannot find svn location for repoze.who.plugins.sa==1.0b2-r2909
 Warning: cannot find svn location for repoze.who==1.0.10dev-r3295
 Warning: cannot find svn location for ToscaWidgets==0.9.5dev-20081026
 }}}

 == fix ==

 not sure

 = install tg.devtools =

 pip -E . install tg.devtools -i
 http://www.turbogears.org/2.0/downloads/current/index

 = can't find beatifulSoup =

 bad dependency anyway this is used by the quickstarted project

 == problem ==

 not sure, missing from the index?

 == fix ==

 pip -E . install BeautifulSoup

 = Extremes assumes ez_setup exists =

 See tg1 log.

 = missing svn stuff (freeze) =

 {{{
 Warning: cannot find svn location for sqlalchemy-migrate==0.5.1.dev-r479
 Warning: cannot find svn location for repoze.what.plugins.sql==1.0a5-r3122
 Warning: cannot find svn location for repoze.who.plugins.sa==1.0b2-r2909
 Warning: cannot find svn location for repoze.who==1.0.10dev-r3295
 Warning: cannot find svn location for PEAK-Rules==0.5a1.dev-r2582
 Warning: cannot find svn location for ToscaWidgets==0.9.5dev-20081026
 Warning: cannot find svn location for tgext.crud==0.1-r218
 Warning: cannot find svn location for Catwalk==2.0-r219
 }}}

 == fix ==

 Same as above

 {{{
 paster quickstart
 paster setup-app
 paster serve
 }}}

 All works! except some svn urls

 = install tgRumDemo =

 This is probably the most complex (dependency wise) tg2 released app So
 we'll get it from tip.

 {{{
 pip -E . install -e hg+http://hg.python-rum.org/TgRumDemo/ # fails and I
 don't know why
 pip -E . install -e hg+http://hg.python-rum.org/TgRumDemo/#egg=TGRumDemo
 }}}

 works!

 = tgRumDemo (freeze) =
  works with no errors.

 = serve =

 == problem ==
 {{{
 Traceback (most recent call last):
   File "/home/elpargo/tg/tg2pip/bin/paster", line 8, in <module>
     load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
   File "/home/elpargo/tg/tg2pip/lib/python2.5/site-
 packages/paste/script/command.py", line 73, in run
     commands = get_commands()
   File "/home/elpargo/tg/tg2pip/lib/python2.5/site-
 packages/paste/script/command.py", line 115, in get_commands
     plugins = pluginlib.resolve_plugins(plugins)
   File "/home/elpargo/tg/tg2pip/lib/python2.5/site-
 packages/paste/script/pluginlib.py", line 81, in resolve_plugins
     pkg_resources.require(plugin)
   File "/home/elpargo/tg/tg2pip/lib/python2.5/site-
 packages/setuptools-0.6c9-py2.5.egg/pkg_resources.py", line 626, in
 require
   File "/home/elpargo/tg/tg2pip/lib/python2.5/site-
 packages/setuptools-0.6c9-py2.5.egg/pkg_resources.py", line 528, in
 resolve
 pkg_resources.VersionConflict: (Babel 0.9.3
 (/home/elpargo/tg/tg2pip/lib/python2.5/site-packages),
 Requirement.parse('Babel>=0.9.4'))
 }}}

 == fix ==

 not sure  $ pip -E . install Babel won't fix it.

 temp fix. rm lib/python2.5/site-packages/Babel-0.9.3-py2.5.egg-info/ -rf
 && pip -E . install Babel

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2169#comment:5>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to