Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5561

Re: cPickle -> invalid signature

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.019
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'mode,': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'binary': 0.14; 'answer,': 0.16; 'from:addr:yahoo.com.ar': 0.16; 'invalid': 0.16; 'generic': 0.19; 'tue,': 0.20; 'error': 0.29; 'charset:iso-8859-15': 0.31; 'does': 0.31; 'actual': 0.31; 'to:addr:python-list': 0.32; 'header:X-Complaints-To:1': 0.34; 'file': 0.35; 'open': 0.35; 'header:User-Agent:1': 0.35; 'quite': 0.36; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'header :Mime-Version:1': 0.39; 'header:Received:5': 0.40; '2011': 0.62; '-0300,': 0.84; 'genellina': 0.84; 'message?': 0.84; 'gabriel': 0.91; 'received:186': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From "Gabriel Genellina" <gagsl-py2@yahoo.com.ar>
Subject Re: cPickle -> invalid signature
Date Tue, 17 May 2011 09:29:01 -0300
References <iqtmtl$77g$1@dough.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-15; format=flowed; delsp=yes
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host 186.19.171.200
User-Agent Opera Mail/11.10 (Win32)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1669.1305635340.9059.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 82.94.164.166
X-Trace 1305635340 news.xs4all.nl 49178 [::ffff:82.94.164.166]:36543
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5561

Show key headers only | View raw


En Tue, 17 May 2011 08:41:41 -0300, Neal Becker <ndbecker2@gmail.com>  
escribió:

> What does it mean when cPickle.load says:
> RuntimeError: invalid signature
>
> Is binary format not portable?

Are you sure that's the actual error message?
I cannot find such message anywhere in the sources.
The pickle format is quite portable, even cross-version. As a generic  
answer, make sure you open the file in binary mode, both when writing and  
reading.

-- 
Gabriel Genellina

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: cPickle -> invalid signature "Gabriel Genellina" <gagsl-py2@yahoo.com.ar> - 2011-05-17 09:29 -0300

csiph-web