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.004 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; 'binary': 0.14; 'wrote:': 0.14; 'answer,': 0.16; 'escribi\xc3\xb3:': 0.16; 'numpy': 0.16; 'invalid': 0.16; 'generic': 0.19; 'tue,': 0.20; 'maybe': 0.21; '64-bit': 0.23; 'error': 0.29; '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; 'problem.': 0.36; 'system.': 0.37; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'comes': 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; 'received:139': 0.84; 'gabriel': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Neal Becker Subject: Re: cPickle -> invalid signature Followup-To: gmane.comp.python.general Date: Tue, 17 May 2011 14:26:53 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Gmane-NNTP-Posting-Host: 139.85.237.105 User-Agent: KNode/4.4.11 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: 24 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305656830 news.xs4all.nl 49183 [::ffff:82.94.164.166]:59245 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5588 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?