I meant to reply sooner, but *yes* you were right. I hand-edited my tg-
admin-script.py file to C:\Progra~1 and the program runs again.

Thanks!
john



On Mar 26, 4:15 am, "Simon King" <[EMAIL PROTECTED]> wrote:
> (Reposting my reply since it doesn't seem to have got through)
>
> This is a setuptools bug:
>
> http://mail.python.org/pipermail/distutils-sig/2007-January/007156.html
>
> You can temporarily work around it by changing the #! line at the
> beginning of the tg-admin-script.py file to use DOS-style paths (eg.
> replace "C:\Program Files" with "C:\Progra~1")
>
> I believe that if you change your windows PATH so that it uses the DOS-
> style names as well, then when setuptools creates these *-script.py
> entries, it will put that path at the top of them. So you could change
> your PATH and then reinstall the TurboGears egg.
>
> Hope that helps,
>
> Simon
>
> On Mar 24, 1:50 pm, "johnt" <[EMAIL PROTECTED]> wrote:
>
> > Trying tg-admin.exe from a different directory didn't work either, but
> > I learned that I *can* run the python script that is installed in the
> > same directory as tg-admin.exe. For example, this works:
>
> > --------------------- begin --------------------
> > C:\Program Files\turbogears>python "C:\Program Files\Python24\Scripts
> > \tg-admin-s
> > cript.py"
>
> > TurboGears 1.0.1 command line interface
>
> > Usage: C:\Program Files\Python24\Scripts\tg-admin-script.py [options]
> > <command>
> > ...snip...
> > --------------------- end --------------------
>
> > So the question is: Why can't the tg-admin.exe program find python?
>
> > Based on the error message ("Cannot find Python executable C:\Program
> > "), my hunch is that it is stumped because the pathname contains
> > whitespace. So if I had installed python in C:\Python24, for example,
> > tg-admin.exe would be OK. I guess I can try that, but am I really the
> > first person to have this problem?
>
> > john
>
> > On Mar 24, 2:29 am, "gasolin" <[EMAIL PROTECTED]> wrote:
>
> > > It looks like a namespace confliction.
>
> > > try 'tg-admin info' in other path, such as C:\>tg-admin info
>
> > > > C:\Program Files\turbogears>tg-admin info
> > > > Cannot find Python executable C:\Program


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

Reply via email to