[BioRuby] Problem with autoload in lib/bio.rb

Michael Barton mail at michaelbarton.me.uk
Fri Aug 8 14:02:09 UTC 2008


Thanks Pjotr, that works. I'm having some trouble getting something similar
to work with active_resource though, where I have to explicitly require each
app.

For example

require 'bio'
require 'bio/appl/iprscan'

I wonder if you have ever come across something like this before?

Thanks

Mike


On Thu, Aug 7, 2008 at 4:30 PM, Pjotr Prins <pjotr2008 at thebird.nl> wrote:

> Are you giving an include path (-I with ruby, or RUBYLIB environment
> variable)? In irb you may be able to do:
>
> $: << 'pathtobioruby/bioruby/lib'
> require 'bio'
>
>
> On Thu, Aug 07, 2008 at 04:20:23PM +0100, Michael Barton wrote:
> > Hello,
> >
> > I'm currently having some problems trying to use BioRuby from the source.
> > Specifically I'm having problems try to access some of the applications
> > defined using autoload in irb.
> >
> > For example
> >
> > > require 'lib/bio'
> > > Bio::Iprscan
> > LoadError: no such file to load -- bio/appl/iprscan/report
> >     from (irb):4
> >
> > Could anyone provide a suggestion as to what I'm doing wrong? I'm some
> what
> > stuck at this point.
> >
> > Thanks
> >
> > Mike
> > _______________________________________________
> > BioRuby mailing list
> > BioRuby at lists.open-bio.org
> > http://lists.open-bio.org/mailman/listinfo/bioruby
>



More information about the BioRuby mailing list