Skip to content

rake aborted! marshal data too short #9

Description

@hinagiku

Hi, after i installed the gem, i got the 'marshal data too short' error when i ran any rake tasks.
The message below

rake aborted!
marshal data too short
/home/cl/.rvm/gems/ruby-2.0.0-p353@sasac_wan/gems/activesupport-4.0.2/lib/active_support/core_ext/marshal.rb:6:in load' /home/cl/.rvm/gems/ruby-2.0.0-p353@sasac_wan/gems/activesupport-4.0.2/lib/active_support/core_ext/marshal.rb:6:inload_with_autoloading'
/home/cl/.rvm/gems/ruby-2.0.0-p353@sasac_wan/gems/naive_bayes-0.0.3/lib/naive_bayes.rb:26:in load' /home/cl/.rvm/gems/ruby-2.0.0-p353@sasac_wan/gems/finmodeling-0.2.1/lib/finmodeling/has_string_classifer.rb:22:inblock in _load_vectors_and_train'
/home/cl/.rvm/gems/ruby-2.0.0-p353@sasac_wan/gems/finmodeling-0.2.1/lib/finmodeling/has_string_classifer.rb:18:in `each'

The code at naive_bayes.rb:26 is Marshal.load(data), the date is a string read from /home/cl/.finmodeling/classifiers/ai_oa.db
but this file is empty.
What can i do to fix the problem?(version:0.2.1 ubuntu14.04 ruby2.0.0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions