On Thu, Nov 11, 2010 at 9:08 AM, Soichi Ishida <soujiro0725+rubyforum / gmail.com> wrote: > My environment: > Mac OS 10.6.4 > Ruby 1.8 > RubyGems 1.3.7 > nokogiri -v: > > ruby: > ¨Âîçéîåº íò> ¨Âåòóéïî±®¸®> ¨Âìáôæïòíº õîéöåòóáìäáò÷éî±°®° > libxml: > ¨Âïáäåäº ²®·®> ¨Âéîäéîçåøôåîóéï> ¨Âïíðéìåäº ²®·®> nokogiri: 1.4.3.1 > > ------the question follows > > hi. executing a ruby program using nokogiri and open-uri gives errors > like, > > ------the error is ------- > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:32:in > `initialize': No such file or directory - Errno::ENOENT) The error message above looks like it tries to open the empty file name: 16:24:03 $ ruby19 -e 'File.open("")' -e:1:in `initialize': No such file or directory - (Errno::ENOENT) from -e:1:in `open' from -e:1:in `<main>' This means either you passed the empty string in or the code somehow converted what you passed to this. We would need to see more though in order to decide what's going on. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/