Marshal version problem

G

Greg Willits

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
 
E

Eric Hodel

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?

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

Greg Willits

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

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

Thx.

-- gw
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top