Python ImportModuleError:没有名为';单击房屋驱动程序。变量';升级clickhouse驱动程序后

Python ImportModuleError:没有名为';单击房屋驱动程序。变量';升级clickhouse驱动程序后,python,clickhouse,Python,Clickhouse,当我将clickhouse驱动程序版本从0.0.20升级到0.2.0时,我遇到了一个问题 我的代码: from variables import aws as config from clickhouse_driver import Client host = "localhost" port = 9000 user = "root" password = "password" database = "my_database

当我将clickhouse驱动程序版本从0.0.20升级到0.2.0时,我遇到了一个问题

我的代码:

from variables import aws as config
from clickhouse_driver import Client

host = "localhost"
port = 9000
user = "root"
password = "password"
database = "my_database"

client = Client(host, port=port, database=database, user=user, password=password)


def execute(query):
    return client.execute(query)


if __name__ == '__main__':
    execute("SELECT * FROM my_table WHERE date = today()")

当我运行上面的代码时,我收到了这个没有堆栈跟踪的响应:

"errorMessage": "Unable to import module 'main': No module named 'clickhouse_driver.varint'",
"errorType": "Runtime.ImportModuleError",
"stackTrace": []
如果我将版本降级到0.0.20,一切正常,但是0.2.0发生了什么

我在AWS Lambda和Python 3.7中使用此函数


谢谢你的帮助

我无法重现此错误,它看起来与AWS有关。您能否在不依赖AWS的情况下本地运行此代码?如何检查安装在AWS Lambda中的clickhouse_驱动程序的版本?