Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'importing': 0.05; 'subject:Python': 0.06; 'debugging': 0.07; 'here?': 0.09; 'cc:addr :python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'refactoring': 0.16; 'sys.modules': 0.16; 'there?': 0.16; 'traceback.': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'module': 0.19; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'print': 0.22; 'this?': 0.23; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'subject: (': 0.35; 'subject:with': 0.35; 'anywhere': 0.35; 'anybody': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'half': 0.37; 'ben': 0.38; 'whatever': 0.38; 'does': 0.39; 'changed': 0.39; 'how': 0.40; '2nd': 0.60; 'catch': 0.60; '30,': 0.65; '2015': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=VVfh2KA2Vzp+8Tk6S3bByvN43g68Aq/8sSDDSiV/V9E=; b=zaXIgvATbI3xLkUjqyJxUvsjUTpQhIkS7HuTudTbejmzMgMhC+rlJ36LkM3ml+KgnX ce1/nOHSIjqD8cVhIMSVRVNzqoesswe2AlTsgirnaOeCwMsmFBco2jAdtSbo9/XS5NMf 10fmJXPnQe62yTSFhLCc8gEgzdbyUNOg+OQGa/1XU529Gf3BIkfw8v6zwZT6yuqe69VG yDH4u23qqp07N+MrtpqbXz+rfipl/u/WZ36hWeiVc2BVIyeJeL4GWd13yNx3eDyQjzzw ks8gc2S+OSdmmicsvWzGkoRd9OG6jmLXhmcLQbWUEWJexV3nRw204OozlNjRmiqMU86/ 3njA== MIME-Version: 1.0 X-Received: by 10.50.43.196 with SMTP id y4mr378617igl.14.1430354693181; Wed, 29 Apr 2015 17:44:53 -0700 (PDT) In-Reply-To: <494551ca-532f-4d4d-aff0-a3932416c8f4@googlegroups.com> References: <494551ca-532f-4d4d-aff0-a3932416c8f4@googlegroups.com> Date: Thu, 30 Apr 2015 10:44:53 +1000 Subject: Re: ImportError with pickle (Python 2.7.9), possibly platform dependent From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430354695 news.xs4all.nl 2861 [2001:888:2000:d::a6]:39649 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89592 On Thu, Apr 30, 2015 at 2:01 AM, Ben Sizer wrote: > 1) There clearly is a module named OMDBMap, and it's importable - it's there in the 2nd line of the traceback. > > Does anybody have any suggestions on how I can go about debugging this? Or refactoring it to avoid whatever is happening here? Are you half way through importing it when this load() call happens? That might cause some issues. Has your current directory been changed anywhere in there? What happens if you catch this exception and print out sys.modules at that point? ChrisA