Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'attribute': 0.07; "subject:' ": 0.07; 'dan': 0.09; 'django,': 0.09; 'restart': 0.09; 'processes.': 0.16; 'relevant.': 0.16; 'skip:" 80': 0.16; 'subject:object': 0.16; 'to:name:python list': 0.16; 'wrote:': 0.18; "skip:' 30": 0.19; 'thu,': 0.19; 'looks': 0.24; 'skip:" 40': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'file': 0.32; '(most': 0.33; 'trouble': 0.34; 'received:google.com': 0.35; 'needed': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'new': 0.61; 'skip:* 10': 0.61; 'jul': 0.74; 'subject:skip:A 10': 0.78; 'subject:Solution': 0.84 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:to :content-type; bh=W1ujAf2DTtshte2LDI8ZmeUq+8/kz4zNh3ULTAC86wY=; b=rkEXhtwOe5faf2oxH0F0KMip+4LnKpqaB/Dcs3dZg59qD2axtpwQWm1wbr+zOIc2sY XJDo1AfaIITPIZG9759ZHzTxob4+JRSxfJAn+fWCLl6lxqgFcxD3iw06olLXvL35Jv77 jpN5y9K0V5JvtKHKDHyAKEvdZaPbw6H0fHhiwQ/I2zJOuRRbfDdFz0n2IFQtk56PW2ZF gmIK28EKDi4zxPNH2cNrQc/0JSBjdaeU3VNEl+lT/+Nt08u2DV2nEXxbjA3N013a3AB/ 9Ydb4qVa5tsZRpbFUarOb44PTvFCrOrCR8eJvCBKJYUeIrsK2Sd3Cm81NXdCR/FyhBZl i3pA== MIME-Version: 1.0 X-Received: by 10.58.30.15 with SMTP id o15mr1795107veh.34.1405013017487; Thu, 10 Jul 2014 10:23:37 -0700 (PDT) In-Reply-To: References: Date: Thu, 10 Jul 2014 10:23:37 -0700 Subject: Re: Solution-resistant AttributeError: 'modle' object has no attribute... From: Dan Stromberg To: Python List Content-Type: text/plain; charset=UTF-8 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1405013019 news.xs4all.nl 2921 [2001:888:2000:d::a6]:42268 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74322 On Thu, Jul 10, 2014 at 9:41 AM, Dan Stromberg wrote: > Hi folks. > > I'm having trouble with a strange AttributeError. I'm using RQ (Redis > Queue) and Django, both of which are new to me, so perhaps they are > somehow relevant. > > Anyway, the traceback looks like: > Traceback (most recent call last): > File "/home/ec2-user/miniconda/envs/sciencedb/lib/python2.7/site-packages/rq/worker.py", > line 479, in perform_job > rv = job.perform() > File "/home/ec2-user/miniconda/envs/sciencedb/lib/python2.7/site-packages/rq/job.py", > line 466, in perform > self._result = self.func(*self.args, **self.kwargs) > File "/home/ec2-user/science_server/higgins/tasks.py", line 276, in > session_retrieval_manager > dummy = higgins.models.extract_guid_from_visi_filename > AttributeError: 'module' object has no attribute > 'extract_guid_from_visi_filename' It turned out I needed to restart my RQ (Redis Queue) processes.