query from sqlalchemy returns AttributeError: 'NoneType' object

2013-05-02 Thread karthik . sharma
from pox.core import core import pox.openflow.libopenflow_01 as of import re import datetime from sqlalchemy import create_engine, ForeignKey from sqlalchemy import Column, Date, Integer, String from sqlalchemy.ext.declarative import declarative_base from

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

2013-05-02 Thread MRAB
On 02/05/2013 23:14, karthik.sha...@gmail.com wrote: [snip] class SourcetoPort(Base): __tablename__ = 'source_to_port' id = Column(Integer, primary_key=True) port_no=

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

2013-05-02 Thread Dave Angel
On 05/02/2013 06:14 PM, karthik.sha...@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