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: 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 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: In-Reply-To: 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 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: 1367537363 news.xs4all.nl 15985 [2001:888:2000:d::a6]:41317 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44647 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