Python 用于 Smartsheet - 获取 _ipython_canary_method_should_not_exist_

Python for Smartsheet - Getting _ipython_canary_method_should_not_exist_

全部 - 我在加载 Smartsheet 客户端时收到此错误 我根据要求加载了所有依赖项。 我应该修复什么?

导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_ 导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_ 导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_ 导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_ 导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_ 导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_ 导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_ 导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_ 导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_ 导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_ 导入错误!无法加载 api 或模型 class _ipython_canary_method_should_not_exist_

这也是我正在尝试的 运行(TOKEN # 乱码)

import smartsheet
import logging
import os.path


access_token = 'TOKENNUMBER'
smartsheet_client = smartsheet.Smartsheet(access_token)
smartsheet_client.errors_as_exceptions(True)

代码运行良好,错误链接到 ipython

如果你运行这段代码直接在pythonshell你应该不会有任何错误。如果可能,您应该避免使用 ipython。有关此错误的详细信息,请参阅