josephwilk / tlearn-rb

Recurrent Neural Network library for Ruby
96 stars 15 forks source link

ERROR: Can't open .cf file: No such file or directory #12

Open bartkamphorst opened 11 years ago

bartkamphorst commented 11 years ago

Cloning the tlearn-rb repo and running rake gives me the following error:

~/.rvm/rubies/ruby-1.9.3-p448/bin/ruby -S rspec spec_integration/tlearn_ext_spec.rb spec_integration/tlearn_spec.rb ..ERROR: Can't open .cf file: No such file or directory

Any pointers?

josephwilk commented 11 years ago

Odd, I'll investigate.

bartkamphorst commented 11 years ago

Thanks @josephwilk!

dmitry commented 10 years ago

@bartkamphorst It's actually ok. Because there are checks in the specs that trying to load not existent files. And actually stderr outputs an error using the perror C function:

  sprintf(cfile, "%s.cf", root);
  cfp = fopen(cfile, "r");
  if (cfp == NULL) {
    perror("ERROR: Can't open .cf file");
    return(1);
  }
bartkamphorst commented 10 years ago

@dmitry Thanks for looking into this. The question is whether it's indeed harmless that those .cf files don't exist. I mean, why would an error be thrown (and not a warning) if .cf files don't matter?