Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44647

Re: query from sqlalchemy returns AttributeError: 'NoneType' object

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.035
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'compiler': 0.07; 'matches': 0.07; "subject:' ": 0.07; 'subject:query': 0.07; 'received:74.208.4.195': 0.16; 'subject:object': 0.16; 'tabs': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'import': 0.22; 'header:User- Agent:1': 0.23; 'error': 0.23; 'interpret': 0.24; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'sense': 0.34; 'core': 0.34; 'subject:from': 0.34; 'editor': 0.35; 'version': 0.36; 'received:10': 0.37; 'question,': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'new': 0.61; "you're": 0.61; 'you.': 0.62; 'email addr:gmail.com': 0.63; 'show': 0.63; 'promise': 0.68; 'received:74.208': 0.68; 'subject:skip:A 10': 0.78
Date Thu, 02 May 2013 19:29:11 -0400
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5
MIME-Version 1.0
To python-list@python.org
Subject Re: query from sqlalchemy returns AttributeError: 'NoneType' object
References <cc9b6315-dcd5-42c7-a5ca-e5df1d51348c@googlegroups.com>
In-Reply-To <cc9b6315-dcd5-42c7-a5ca-e5df1d51348c@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:jGCAtnAjtjPkaravEsOlbq3FBbus2KmWiAyJCU1pb6k 1nvHSm7KBpI7qwWxfZZObVCbRvs1hEybqGZNq6qhlncedy1tZt K9mFgHmq9EIJDdOwbV2Fk3ELHM0sS0e2GNvYx/ZmVVMz3Zi/wR BUA3tvNdONdMTg1vAGYZIwY8PuNFQNA631XOdG/QWCDeEbhqh9 gnsgN6ma2iQ+jUkdzoxTPCQlemyAXJLp+Vbk3hW2nZA5xdU6no mLc32CPQcPvFh0FgXJ8N2oRJKD9PCTkL4tewVhZ7I64a/NhDuR 8d53toIeit1C1FpcH3PHkg42D2JkUvpIPMDdRhMFw8MtmfEiX3 3r5Lnd9mHuo95CzKQll8=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1256.1367537363.3114.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1367537363 news.xs4all.nl 15985 [2001:888:2000:d::a6]:41317
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:44647

Show key headers only | View raw


On 05/02/2013 06:14 PM, karthik.sharma@gmail.com wrote:
> from pox.core import core
>      import pox.openflow.libopenflow_01 as of
>      import re
>      import datetime
>


You're mixing tabs and space, so all bets are off.  No promise that the 
compiler will interpret the indentations the same way you see them.

Use your editor to expand all the tabs to space, then check whether the 
code still makes sense to you.  Then if you want to post a new question, 
show us the new version of code.

Also this time post the error traceback that matches the version of the 
code you're showing us.

And don't bother double-posting on tutor.

-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

query from sqlalchemy returns AttributeError: 'NoneType' object karthik.sharma@gmail.com - 2013-05-02 15:14 -0700
  Re: query from sqlalchemy returns AttributeError: 'NoneType' object MRAB <python@mrabarnett.plus.com> - 2013-05-03 00:17 +0100
  Re: query from sqlalchemy returns AttributeError: 'NoneType' object Dave Angel <davea@davea.name> - 2013-05-02 19:29 -0400

csiph-web