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

问题描述 投票:1回答:1

在更新了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

python psycopg2 aiopg
1个回答
1
投票

这完全是关于sqlalchemy,降级到1.1.15解决了这个问题。

© www.soinside.com 2019 - 2024. All rights reserved.