AttributeError:'PGDialect_psycopg2'对象没有属性'dbapi_type_map'

时间:2017-12-28 06:53:46

标签: python psycopg2 aiopg

更新python服务器上的所有插件后,它现在提升

File "D:\Python362\lib\site-packages\aiopg\utils.py", line 72, in __await__
    resp = yield from self._coro
  File "D:\Python362\lib\site-packages\aiopg\sa\connection.py", line 116, in _execute
    return ResultProxy(self, cursor, self._dialect, result_map)
  File "D:\Python362\lib\site-packages\aiopg\sa\result.py", line 234, in __init__
    self._metadata = ResultMetaData(self, cursor.description)
  File "D:\Python362\lib\site-packages\aiopg\sa\result.py", line 103, in __init__
    typemap = dialect.dbapi_type_map
AttributeError: 'PGDialect_psycopg2' object has no attribute 'dbapi_type_map'

Plugins List

1 个答案:

答案 0 :(得分:1)

所有关于sqlalchemy,降级到1.1.15解决了这个问题。