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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'attribute': 0.05; 'error:': 0.05; 'subject:skip:t 10': 0.07; 'subject:How': 0.09; 'python': 0.09; 'expected.': 0.09; 'project?': 0.09; 'cc:addr:python-list': 0.10; '3.1.3': 0.16; 'normally.': 0.16; 'output?': 0.16; 'webapp': 0.16; 'wrote:': 0.17; 'module': 0.19; 'thanks.': 0.21; 'occurs': 0.22; 'wednesday,': 0.22; 'help.': 0.22; 'cheers,': 0.23; 'cc:2**0': 0.23; 'errors': 0.23; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'module.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'normal.': 0.29; 'thinks': 0.29; 'url:mailman': 0.29; 'maybe': 0.29; 'error': 0.30; 'december': 0.32; 'url:python': 0.32; 'file': 0.32; 'running': 0.32; 'could': 0.32; 'url:listinfo': 0.32; 'message.': 0.33; 'problem': 0.33; 'anyone': 0.33; 'received:google.com': 0.34; 'wrong': 0.34; 'server': 0.35; 'received:209.85': 0.35; 'explain': 0.36; 'url:org': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'header:Received:5': 0.40; 'url:mail': 0.40; 'your': 0.60; '26,': 0.65; 'subject:get': 0.81; 'sender:addr:chris': 0.84; 'url:rebertia': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=e+xl33YGm6u8WPWJ0IVv3TCaL3pf5e/iQex7RKVWZ2c=; b=WVR4R2HiR7MykIsJJ7izEBDsz3rquM3MzNd7m9IUAyJG2y80ZUAVc2fwYFmxprtg3n Q0bAhvfUBJlXAqClp+BAJ3mk5SQlTEF6+BSN7Jd87EVmMuAckxGwKDRuqKS00Sd+PaW8 t8nl1INXvqUBFpNTHjoNqUg7YkQ6k5xAtEGp0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=e+xl33YGm6u8WPWJ0IVv3TCaL3pf5e/iQex7RKVWZ2c=; b=JsYfdnf9ZnM2VM+oFar37wGhkMIG88d/NS3btwT54AVCYrGEqk3D5ZREffhZoFGQ6W OqBCkzrbmwuGuHAAdDjljjfuujpfYiRKplrNfybPeTUP+cjpsKZSuOJVL+xaYQkEjD/h YOaICSRhUhrqsLDJ1tchdt/n2ym+PeQHcfouc84KhLo1S5yFYX9PRDSYLm84x9oX/H62 fIKktfIuvkXb2Hxqo1sClbpsqKCFid6q3vWSSclAv76eUJfRZYtIL8ua0zDfbcapCXpT CmBPonCLgPIrKiQzPK8a/BbcaFEqRA392wr1nOgYFwsZQT7OQM5FSZrkaTlPUDNfpzWa NmXA== MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: <5692cd23-84e0-46d4-b48c-5c11a5377c0a@googlegroups.com> References: <5692cd23-84e0-46d4-b48c-5c11a5377c0a@googlegroups.com> Date: Wed, 26 Dec 2012 09:34:38 -0800 X-Google-Sender-Auth: 1MTnA-v4rX9txlhoBIG2oJdMtLo Subject: Re: How to get time.strptime()? From: Chris Rebert To: Gnarlodious Content-Type: multipart/alternative; boundary=f46d0447850d3ceedd04d1c4d848 X-Gm-Message-State: ALoCoQnq3GHMCyLSw6OB+inaJjeeEcKqr7htgszD4fOKGoljhCupqZsVnLv8lRHdD7pauBMGkFLY Cc: "python-list@python.org" 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: , Newsgroups: comp.lang.python Message-ID: Lines: 80 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356543281 news.xs4all.nl 6840 [2001:888:2000:d::a6]:43388 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35532 --f46d0447850d3ceedd04d1c4d848 Content-Type: text/plain; charset=UTF-8 On Wednesday, December 26, 2012, Gnarlodious wrote: > Error: AttributeError: 'module' object has no attribute '_strptime' > Please include the full Traceback, not just the final error message. This problem is driving me crazy. It only happens in Python 3.3.0, while on > my server running 3.1.3 it behaves as expected. When I try to access > time.strptime() it errors with > > AttributeError: 'module' object has no attribute '_strptime'. Might be the wrong `time` module. What's `print time.__file__` output? Did you perchance create a time.py file in your project? This error only occurs under mod_wsgi, when running as a one-shot webapp it > behaves normally. All other functionalities of the time module are normal. > > If anyone could explain why it thinks I want an underscored name maybe it > would help. > > Thanks. > > -- Gnarlie > -- > http://mail.python.org/mailman/listinfo/python-list > -- Cheers, Chris -- http://rebertia.com --f46d0447850d3ceedd04d1c4d848 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wednesday, December 26, 2012, Gnarlodious wrote:
Error: AttributeError: 'module' object has no attribu= te '_strptime'

=C2=A0Please include the full Traceback, n= ot just the final error message.

This problem is driving me crazy. It only happens in Python 3.3.0, while on= my server running 3.1.3 it behaves as expected. When I try to access time.= strptime() it errors with

AttributeError: 'module' object has no attribute '_strptime'= ;.

Might be the wrong `time` module. What&#= 39;s `print time.__file__` output?
Did you perchance= create a time.py file in your project?

This error only occurs under mod_wsgi, when running as a one-shot webapp it= behaves normally. All other functionalities of the time module are normal.=

If anyone could explain why it thinks I want an underscored name maybe it w= ould help.

Thanks.

-- Gnarlie
--
http://mail.python.org/mailman/listinfo/python-list


--
Cheers,
Chris
--
http://rebertia.com
--f46d0447850d3ceedd04d1c4d848--