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

Date 2013-05-02 19:29 -0400
From Dave Angel <davea@davea.name>
Subject Re: query from sqlalchemy returns AttributeError: 'NoneType' object
References <cc9b6315-dcd5-42c7-a5ca-e5df1d51348c@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.1256.1367537363.3114.python-list@python.org> (permalink)

Show all headers | 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