Python 刮痧+;sqlalchemy+;mysql错误

Python 刮痧+;sqlalchemy+;mysql错误,python,sqlalchemy,scrapy,Python,Sqlalchemy,Scrapy,我正在构建一个供个人使用的网络爬虫 这是蜘蛛档案 这是模型文件 这是管道 我的数据库设置是 DATABASE = {'drivername': 'mysql+mysqldb', 'host': 'localhost', 'port': '3306', 'username': 'user', # fill in your username here 'password': 'pass', # fill in your passw

我正在构建一个供个人使用的网络爬虫

这是蜘蛛档案

这是模型文件

这是管道

我的数据库设置是

DATABASE = {'drivername': 'mysql+mysqldb',
        'host': 'localhost',
        'port': '3306',
        'username': 'user', # fill in your username here
        'password': 'pass', # fill in your password here
        'database': 'scrapydb'}
但是我收到了这个错误

  .............., line 19, in process_item
  vehicle = vehicles(**item)
  exceptions.TypeError: vehicles() got an unexpected keyword argument 'odometer'

我尝试过很多事情,但都没有成功。请帮忙

车辆
应为
,而非功能:

class vehicles(DeclarativeBase):
    ...