[TxMt] Re: PyMate broken

Alex Ross ajross at cs.pdx.edu
Fri Jul 4 08:21:39 UTC 2008


On Jul 3, 2008, at 10:21 PM, Michael Glassford wrote:

> Now:
>
>>>> numpy.__version__
> '1.2.0.dev5346'
>>>> scipy.__version__
> '0.7.0.dev4527'
>
> But the output still doesn't work.
>
> Note that importing scipy doesn't cause problems, but importing
> scipy.stats does. If I "Run Script" this script:
>
>> import numpy
>> print numpy.__version__
>>
>> import scipy
>> print scipy.__version__
>>
>> import scipy.stats
>> print 'Done'
>
> I see this output:
>
>> 1.2.0.dev5346
>> 0.7.0.dev4527
>
> But if I "Run Script (Terminal)", I see this:
>
>> 1.2.0.dev5346
>> 0.7.0.dev4527
>> Done


Hm... I can't reproduce this behaviour.

Try this:

open up executor.rb, it's in TextMate/Support/lib/tm/executor.rb.

Find the lines:

> callback = proc {|str, type| io << block.call(str,type)}
> process_output_wrapper(io) do
>        TextMate::Process.run(args, :env => options[:env], :echo =>  
> true, &callback)
> end

Change this line

>        TextMate::Process.run(args, :env => options[:env], :echo =>  
> true, &callback)

to

>        TextMate::Process.run(args, :env => options[:env], :echo =>  
> true, :interactive_input => false, &callback)

Save and try to run your example script from TextMate again.

Does that change anything?





More information about the textmate mailing list