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: 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" Subject: Re: cPickle -> invalid signature Date: Tue, 17 May 2011 09:29:01 -0300 References: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 En Tue, 17 May 2011 08:41:41 -0300, Neal Becker 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