I just tried updating TG to the latest preview version, from the last
released version. It installed ok, but the upgrade instructions given
at http://www.turbogears.org/preview/download/upgrade.html were really
quite dangerous.


Firstly, it tried to pretty much eliminate my project:

Replace 14853 bytes with 427 bytes (384/389 lines changed; 372 lines
removed)
Overwrite ../areagen\areagen\controllers.py [y/n/d/B/?]

Replace 1818 bytes with 200 bytes (49/58 lines changed; 45 lines
removed)
Overwrite ../areagen\areagen\model.py [y/n/d/B/?]

I know you can make a backup, but what's the point of an update script
if it does such a poor job at actually updating? For example, all it
wanted to do to model.py was add "from turbogears import identity",
give me a useless "YourDataClass" class, and remove the rest of my
file! That's no upgrade!


Then, it crashed out with this traceback:
Error (exit code: 1)
Traceback (most recent call last):
  File "setup.py", line 2, in ?
    from turbogears.finddata import find_package_data
  File
"e:\code\python\python24\lib\site-packages\TurboGears-0.9a6-py2.4.egg\tur
bogears\__init__.py", line 6, in ?
    from turbogears.controllers import expose, flash, validate,
redirect, \
  File
"e:\code\python\python24\lib\site-packages\TurboGears-0.9a6-py2.4.egg\tur
bogears\controllers.py", line 9, in ?
    import kid
  File
"e:\code\python\python24\lib\site-packages\kid-0.9.1-py2.4.egg\kid\__init
__.py", line 27, in ?
    from kid.pull import ElementStream, Element, SubElement, Fragment,
\
  File
"e:\code\python\python24\lib\site-packages\kid-0.9.1-py2.4.egg\kid\pull.p
y", line 11, in ?
    from kid.et import *  # ElementTree
  File
"e:\code\python\python24\lib\site-packages\kid-0.9.1-py2.4.egg\kid\et.py"
, line 11, in ?
    import elementtree.ElementTree as ET
ImportError: No module named elementtree.ElementTree

No idea why that has happened, since I've just upgraded TG as specified
and everything it needs should be there, if the setup script is doing
its job. Right?


So I'm very concerned that the upgrade instructions are essentially
prompting to overwrite our projects, and then potentially crash half
way through anyway. 

-- 
Ben Sizer


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to