我有一个从csv导入的现有sqlite db file . 我尝试使用sqlalchemy来自动化db文件 . 但它总是给我......

回溯(最近一次调用最后一次):文件“", line 1, in File " C:\ Users \ Administrator \ AppData \ Local \ Programs \ Python \ Python36-32 \ lib \ site-packages \ sqlalchemy \ util_colle ctions.py”,第212行,在 getattr 加注AttributeError(key)AttributeError:destinationservices

任何帮助表示赞赏 .

from flask import Flask
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)

from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine

Base = automap_base()

# engine, suppose it has two tables 'user' and 'address' set up
engine = create_engine("sqlite:///destServ.db")

# reflect the tables
Base.prepare(engine, reflect=True)

# mapped classes are now created with names by default
# matching that of the table name.
Service = Base.classes.destinationServices