[moved from ruby-talk] Re: hob x 0.2 .. blogink for ample abilities .. come into the arms of ..

William Morgan wmorgan-hobix-is-the-way at masanjin.net
Wed Sep 15 15:23:02 EDT 2004


Dear _why,

Excerpts from why the lucky stiff's mail of 14 Sep 2004 (EDT):
> >+ setup your blogs + [Yn] ?
> >-e:1: (eval):178:in `require': No such file to load -- hobix/commandline 
> >(LoadError)
> >       from (eval):178
> >       from (eval):124:in `each'
> >       from (eval):124
> >
> >(Presumably because the lib directory isn't in my ruby load path---yet.)
> >
> Also better.

I'm still getting the problem with today's download.

+ setup your blogs + [Yn] ?
-e:1: (eval):193:in `require': No such file to load -- hobix/commandline (LoadError)
        from (eval):193
        from (eval):131:in `each'
        from (eval):131

I suspect the solution is to force loading of hobix dependencies from
where they were just installed.

I'm also encountering a few problems when using 'hobix edit'. First,
the default hobix.yaml file doesn't seem to have hobix_yaml defined,
which raises this error when you save it out:

585$ hobix edit all-thing
/usr/local/stowed/hobix-09152004/lib/site_ruby/1.8/hobix/weblog.rb:293:in `initialize': cannot convert nil into String (TypeError)
        from /usr/local/stowed/hobix-09152004/lib/site_ruby/1.8/hobix/weblog.rb:293:in `open'
        from /usr/local/stowed/hobix-09152004/lib/site_ruby/1.8/hobix/weblog.rb:293:in `save'
        from /usr/local/stowed/hobix-09152004/lib/site_ruby/1.8/hobix/commandline.rb:180:in `edit_action'
        from /usr/local/bin/hobix:65:in `call'
        from /usr/local/bin/hobix:65

If I manually set it to the right thing, I then get:

586$ hobix edit all-thing
/usr/lib/ruby/1.8/yaml.rb:103:in `write': not opened for writing (IOError)
        from /usr/lib/ruby/1.8/yaml.rb:103:in `<<'
        from /usr/lib/ruby/1.8/yaml.rb:103:in `dump'
        from /usr/local/stowed/hobix-09152004/lib/site_ruby/1.8/hobix/weblog.rb:294:in `save'
        from /usr/local/stowed/hobix-09152004/lib/site_ruby/1.8/hobix/weblog.rb:293:in `open'
        from /usr/local/stowed/hobix-09152004/lib/site_ruby/1.8/hobix/weblog.rb:293:in `save'
        from /usr/local/stowed/hobix-09152004/lib/site_ruby/1.8/hobix/commandline.rb:180:in `edit_action'
        from /usr/local/bin/hobix:65:in `call'
        from /usr/local/bin/hobix:65

I have to change #save() in weblog.rb to use File::open(file, "w"),
and then it finally works. Maybe I've screwed something up with my
crazy setup, but that's what I've had to do to make it work.

-- 
William <wmorgan-hobix-is-the-way at masanjin.net>


More information about the Hobix-is-the-way mailing list