Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'mode,': 0.07; '32-bit': 0.09; 'array.': 0.09; '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; 'linux': 0.11; '>>>': 0.12; 'binary': 0.14; 'wrote:': 0.14; 'answer,': 0.16; 'from:addr:yahoo.com.ar': 0.16; 'maybe,': 0.16; 'numpy': 0.16; 'invalid': 0.16; 'generic': 0.19; 'tue,': 0.20; 'maybe': 0.21; '64-bit': 0.23; 'error': 0.29; 'least': 0.30; 'does': 0.31; 'actual': 0.31; 'to:addr:python-list': 0.32; 'header:X-Complaints- To:1': 0.34; 'message.': 0.35; 'file': 0.35; 'open': 0.35; 'header :User-Agent:1': 0.35; 'quite': 0.36; 'list,': 0.36; 'case,': 0.36; 'problem.': 0.36; 'system.': 0.37; 'url:org': 0.38; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'comes': 0.39; 'header:Mime-Version:1': 0.39; 'would': 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'received:190': 0.69; '-0300,': 0.84; 'genellina': 0.84; 'message?': 0.84; 'gabriel': 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 21:47:06 -0300 References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: 190.2.4.25 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: 38 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305680109 news.xs4all.nl 49175 [::ffff:82.94.164.166]:41894 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5636 En Tue, 17 May 2011 15:26:53 -0300, Neal Becker escribió: > Gabriel Genellina wrote: > >> 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. >> > > Yes, that's the message. > > Part of what is pickled is a numpy array. I am writing on a 32-bit > linux system > and reading on a 64-bit system. Reading on the 64-bit system is no > problem. > > Maybe the message comes from numpy's unpickling? Maybe, at least 'invalid signature' makes sense in Numpy. In that case, a better place to ask would be a numpy specific list, see http://www.scipy.org/Mailing_Lists -- Gabriel Genellina