Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'importing': 0.04; 'startup': 0.05; 'subject:skip:t 10': 0.07; 'works.': 0.07; 'subject:How': 0.09; 'python': 0.09; 'solution,': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'nick': 0.16; 'sharp': 0.16; 'sqlite3': 0.16; 'wrote:': 0.17; 'script.': 0.17; 'module': 0.19; 'import': 0.21; 'mention': 0.23; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'cc:addr:gmail.com': 0.27; 'fixed': 0.28; 'occurred': 0.29; 'problem': 0.33; 'received:google.com': 0.34; 'server': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'should': 0.36; 'thank': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'gone': 0.64; 'subject:get': 0.81 Newsgroups: comp.lang.python Date: Wed, 26 Dec 2012 19:09:51 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=68.35.77.244; posting-account=jlipmwoAAADSfz4kpKbm5Rql2Y-Es3yG References: <5692cd23-84e0-46d4-b48c-5c11a5377c0a@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 68.35.77.244 MIME-Version: 1.0 Subject: Re: How to get time.strptime()? From: Gnarlodious To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: "python-list@python.org" , Gnarlodious X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356577800 news.xs4all.nl 6935 [2001:888:2000:d::a6]:44536 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35569 Nick Cash wrote: > I was able to work around this by simply importing _strptime myself at server startup time. THANK YOU! That fixed it, I simply put import _strptime in my *.wsgi script. It feels like a kludgy solution, but it works. I should also mention that I had a similar problem with the "threading" module that I fixed in the same way. This problem occurred inside of sqlite3 because evidently threadlocking has gone standard as of Py 3.3.x This is problem that has unduly vexed me. When you start learning Python they don't tell you about these sharp edges. Someone needs to explain. -- Gnarlie