Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:bug': 0.05; 'threads,': 0.09; 'thread': 0.10; 'importing': 0.15; 'intermittent': 0.16; 'wall,': 0.16; 'attribute': 0.18; 'issue.': 0.20; 'suggested': 0.20; 'to:name:python-list@python.org': 0.20; 'trying': 0.22; 'seems': 0.23; 'this:': 0.23; 'figure': 0.27; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; 'workaround': 0.29; 'mention': 0.30; "i'd": 0.31; 'fixed': 0.31; 'anyone': 0.32; 'problem': 0.33; 'received:google.com': 0.35; 'fail': 0.35; 'to:addr:python-list': 0.36; 'there,': 0.37; 'thought': 0.37; 'starting': 0.37; 'to:addr:python.org': 0.40; 'where': 0.40; 'your': 0.60; 'our': 0.64; 'here': 0.66; 'banging': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PvMCMTunCoKdg+xfH2SfAp9L0pRXb3GKsscy45oo2nY=; b=coI63Vsmq9PgI3ajF3qTgxwBovkpapas/1r1ig2WtXUh6NqCtKc60YlWTDY6imMg+b n+BuE/tdgrModlmXSKAWpiQJ7rfiAEk7CkIWHU3DMz5CJ4pVehtNTxHXjlqUS0QMsYqk jvvUPXs7kLJmXYZo4NBDm9rxEMVYa7OirR7vYfn0DQhDNAonp/gDonMv6mQdMXXvgxMt O3i/P/vOm/yfDJGJLe0BT52wfuXgT1TchJGXM6Zbtmqt5xjVfEK2wzWHICuzGbgh2VGD tvltADJbx/811Tpr4s1FwPC9U/X/JGvcDbqakFUpY1VyBSH2WEAoobHWJHm47+udwIB8 Rbqw== MIME-Version: 1.0 X-Received: by 10.107.166.201 with SMTP id p192mr37567229ioe.0.1444083093677; Mon, 05 Oct 2015 15:11:33 -0700 (PDT) Date: Mon, 5 Oct 2015 18:11:33 -0400 Subject: threading bug in strptime From: Larry Martell To: "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: 1444083096 news.xs4all.nl 23726 [2001:888:2000:d::a6]:58253 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:97426 We have been trying to figure out an intermittent problem where a thread would fail with this: AttributeError: 'module' object has no attribute '_strptime' Even though we were importing datetime. After much banging our heads against the wall, we found this: http://code-trick.com/python-bug-attribute-error-_strptime/ The workaround suggested there, to call strptime before starting your threads, seems to have fixed the issue. I thought I'd mention it here in case anyone else is facing this.