Thanks! I updated the bug accordingly. Expect this to be fixed in next release 
of ActivePython (2.6.5.x) coming soon.

-srid

On 2010-03-10, at 12:22 PM, Aaron Rubinstein wrote:

> Hello Srid,
> 
> Thanks for opening the ticket.  Your patch below doesn't seem to work, which 
> is odd.  After some fiddling I got the following change to work:
> 
> from...
> 
> return proc.run_command(
>       '{0.python_exe} {2} -s -c "{1}"'.format(
> 
> to...
> 
> return proc.run_command(
>       '""{0.python_exe}" {2} -s -c "{1}"'.format(
> 
> ...note the extra double quote at the beginning.
> 
> Best,
> 
> Aaron
> 
> 
> On 3/1/2010 9:56 PM, Sridhar Ratnakumar wrote:
>> 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
>> <http://firefly.activestate.com/sridharr/pypm/ticket/126>
>> 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
>>> [email protected]
>>> <mailto:[email protected]>
>>> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>>> Other options:
>>> http://listserv.ActiveState.com/mailman/listinfo/ActivePython
>>> 
>> 

_______________________________________________
ActivePython mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to