Tag Archives: osx 10.6.7

Veewee 0.1.16: ‘we tried to create a box or a box was here before but now it’s gone’

A few days ago I ran into a strange error using Veewee 0.1.16 on Mac OSX 10.6.7. Due to this error I couldn’t create a single basebox. No matter what I did. However thanks to @patrickdebois’ speedy support it was easily fixed.

For those who can’t wait for the fix to enter upstream I’ve included the patch below.
And also a direct link veewee_shell_osx10.6.7.patch, if you have trouble copy/pasting it.

# cat veewee_shell_osx10.6.7.patch 
*** shell.rb	Wed Apr  6 15:09:59 2011
--- shell.rb.new	Wed Apr  6 15:10:03 2011
***************
*** 3,16 ****
  module Veewee
    class Shell
   
!     def self.execute(command,options = {})
  
        IO.popen("#{command}") { |f| print f }
      end
      
      #pty allows you to gradually see the output of a local command
      #http://www.shanison.com/?p=415
!       def self.execute2(command, options = {} )
          require "pty"
              begin
                PTY.spawn( command ) do |r, w, pid|
--- 3,16 ----
  module Veewee
    class Shell
   
!     def self.execute2(command,options = {})
  
        IO.popen("#{command}") { |f| print f }
      end
      
      #pty allows you to gradually see the output of a local command
      #http://www.shanison.com/?p=415
!       def self.execute(command, options = {} )
          require "pty"
              begin
                PTY.spawn( command ) do |r, w, pid|

You can apply it using:

# sudo patch -i shell_osx10.6.7.patch \
/opt/local/lib/ruby/gems/1.8/gems/veewee-0.1.16/lib/veewee/shell.rb