1

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

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

这也是我想要运行的(TOKEN # Garbled)

import smartsheet
import logging
import os.path


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

1 回答 1

0

代码工作正常,错误链接到ipython.

如果您直接在 python shell 中运行此代码,您应该不会有任何错误。如果可能的话,你应该避免ipython。有关此错误的更多信息,请参阅https://stackoverflow.com/a/56317537/2320342

于 2019-07-19T19:41:52.497 回答