Hi Aaron,

Thanks for reporting this issue. I've opened a bug here: 
http://firefly.activestate.com/sridharr/pypm/ticket/126

As a workaround you could install ActivePython into a path that does not have 
space in it (eg: C:\ProgramFiles\Python26). Or you could try patching C\Program 
Files\Python26\Lib\site-packages\pypm\common\python.py - at around line 76:

        return sh.run(
            '{0.python_exe} {2} -s -c "{1}"'.format(

.. and replace that with:

        return sh.run(
            '"{0.python_exe}" {2} -s -c "{1}"'.format(

(note the double quotes)

-srid

On 2010-03-01, at 12:42 PM, Aaron Rubinstein wrote:

> I've just installed ActivePython 2.6.4.10 on Windows XP and I get the 
> following error when I try to install a package via pypm:
> 
> 
> ----
> C:\Documents and Settings\arubinst>pypm install lxml
> error: non-zero returncode: 1
> command: C:\Program Files\Python26\Python.exe -B -s -c "import sys;print 
> '%d.%d'
>  % sys.version_info[:2]"
> pwd: C:\Documents and Settings\arubinst
> stderr:
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.
> 
> stdout:
> ----
> 
> It looks like the space in the command hasn't been escaped.  I can't 
> seem to find any reference to this error online so I'm wondering if it 
> isn't a problem with my local setup.  Any help solving this problem 
> would be greatly appreciated.
> 
> Thanks!
> _______________________________________________
> ActivePython mailing list
> ActivePython@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
> 

_______________________________________________
ActivePython mailing list
ActivePython@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to