[mlpack-git] [mlpack] stream error when running hmm_train (#489)

Ryan Curtin notifications at github.com
Fri Dec 4 09:33:08 EST 2015


Hmm, the exception is being called from the following code, in `hmm_util_impl.hpp:128` (frame 11):

```
std::ofstream ofs(modelFile);
ArchiveType ar(ofs);
```

In this particular case, `ArchiveType = boost::archive::xml_oarchive`.

My off-the-cuff guess is that `ofs` is not opened correctly, which then causes the `xml_oarchive` to throw the stream error exception.  One thing I can do here is add checks to make sure the stream opened, which I did in 2720ddc.  So if you update and recompile, I think you will get a more useful error message, but my best guess here is that the file 'output.xml' cannot be opened... maybe you don't have permissions to write in the directory, or maybe for some reason 'output.xml' already exists as a directory or is owned by some other user?

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/489#issuecomment-161981048
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20151204/ab7f0f87/attachment-0001.html>


More information about the mlpack-git mailing list