Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Marshal version problem

0 views
Skip to first unread message

Greg Willits

unread,
Jul 26, 2008, 4:51:02 PM7/26/08
to
I have a script that generates a serialized file of native data
structures (hash of hashes & arrays and such).

In a short spike script I wanted to load up a particular file, and got a
version error:
incompatible marshal file format (can't be read) (TypeError)
format version 4.8 required; 47.85 given

Both scripts invoke the same ruby instance on my system (OS X)
#! /usr/local/bin/ruby

printing RUBY_VERSION at the top of both scripts yields 1.8.6 in both.

wassup widdat?

-- gw
--
Posted via http://www.ruby-forum.com/.

Eric Hodel

unread,
Jul 26, 2008, 8:21:46 PM7/26/08
to

You're not loading a Marshal file, you're loading a file that starts
with "/U"

Greg Willits

unread,
Jul 26, 2008, 10:14:13 PM7/26/08
to

Bah. Duh, I was giving load() a file path instead of the file data.

Thx.

0 new messages