From: Sean C. <se...@ch...> - 2002-10-10 19:20:54
|
> > Anyone been seeing this in their error logs? I foolishly upgraded > > mod_ruby, postgres (ruby module), PostgreSQL, DBD::Pg, and DBI all at > > the same time and am now getting the following: > > > > [Thu Oct 10 11:40:20 2002] [error] mod_ruby: error in ruby > > /usr/local/lib/ruby/site_ruby/1.7/DBD/Pg/Pg.rb:33:in `require': wrong argument type false (expected Module) (TypeError) > > from /usr/local/lib/ruby/site_ruby/1.7/DBD/Pg/Pg.rb:33 > > from /usr/local/lib/ruby/site_ruby/1.7/dbi/dbi.rb:444:in `require' > > from /usr/local/lib/ruby/site_ruby/1.7/dbi/dbi.rb:444:in `load_driver' > > from /usr/local/lib/ruby/site_ruby/1.7/dbi/dbi.rb:384:in `_get_full_driver' > > from /usr/local/lib/ruby/site_ruby/1.7/dbi/dbi.rb:364:in `connect' > > As line 33 contains "require 'postgres'" the problem is either in > postgres (ruby module) or PostgreSQL, but not DBI or DBD::Pg. > > Try > > % ruby -r postgres -e "" > > Don't think that there's a problem with PostgreSQL. Agreed. This list at the moment has the largest agregate set of DB users on it though so I thought I'd try my luck here. I'm importing the postgres source into rubynet at the moment and plan on tracking its changes and progress there since it doesn't look like postgres is under any kind of revision control. I'll let folks know here when I figure out the problem. FWIW, I'm writing unit tests for postgres that'll run under rubytest. -sc -- Sean Chittenden |