Thanks for the sleuthing on this, Tim. I've put up fixed versions of the tgsetup script and the 1.0b2 egg.
Kevin On Nov 21, 2006, at 9:07 AM, Tim Lesher wrote: > > On 11/21/06, Tim Lesher <[EMAIL PROTECTED]> wrote: >> I get this as well (Windows XP). >> >> Line 190 is: >> if not path.match(r'Python\d+\Script'): >> >> It should be: >> if not re.match(r'Python\d+\Script', path): >> >> After making this change, the script works, at least for the "non- >> future" case. > > > Well, strike that. > > The script does work in that it installs, but this check is still > incorrect--I _do_ have my python scripts directory in my path, but it > doesn't match--it needs to use search instead of match, the pattern is > incorrect (needs another backslash before Script), and it assumes a > capitalized Script directory. I think there are enough possible > issues with doing this via regex path inspection that it's just not a > great solution. I think it would be better to just try executing > 'tg-admin.exe' after installation, checking for an error, and > displaying the message at that point. > > But a bigger issue: after running this tg-setup, I seem to have a > broken TG installation: running "tg-admin" by itself gives a > traceback: > > Traceback (most recent call last): > File "c:\python24\scripts\tg-admin-script.py", line 7, in ? > sys.exit( > File "c:\python24\lib\site-packages\setuptools-0.6c3-py2.4.egg > \pkg_resources.py", > line 236, in load_entry_point > return get_distribution(dist).load_entry_point(group, name) > File "c:\python24\lib\site-packages\setuptools-0.6c3-py2.4.egg > \pkg_resources.py", > line 2097, in load_entry_point > return ep.load() > File "c:\python24\lib\site-packages\setuptools-0.6c3-py2.4.egg > \pkg_resources.py", > line 1830, in load > entry = __import__(self.module_name, globals(),globals(), > ['__name__']) > File "c:\python24\lib\site-packages\TurboGears-1.0b2-py2.4.egg > \turbogears\__init__.py", > line 8, in ? > from turbogears import controllers, view, database, validators, > command, \ > File "c:\python24\lib\site-packages\TurboGears-1.0b2-py2.4.egg > \turbogears\widgets\__init__.py", > line 1, in ? > from turbogears.widgets.base import * > File "c:\python24\lib\site-packages\TurboGears-1.0b2-py2.4.egg > \turbogears\widgets\base.py", > line 5, in ? > from turbogears import view, validators, startup, config > File "c:\python24\lib\site-packages\TurboGears-1.0b2-py2.4.egg > \turbogears\startup.py", > line 20, in ? > from turbogears.database import hub_registry, > EndTransactionsFilter, bind_meta_data > ImportError: cannot import name bind_meta_data > > I also get this traceback when running "import turbogears.database" > from a Python interactive session. Just "import turbogears" complains > that turbogears.config can't be imported. > > I'm going to archive my current python installation and try from a > clean install next. > -- > Tim Lesher <[EMAIL PROTECTED]> > > > -- Kevin Dangoor TurboGears / Zesty News email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

