pyinstaller 在执行我的 python 应用程序后导入模块失败

pyinstaller failed to import a module after executing my python application

我创建了一个应用程序并通过pyinstaller将其捆绑到exe,但是在我测试exe应用程序后,它响应了一条错误消息。看来我的基本 api 模块没有正确导入。请指教,谢谢!

ImportError! Could not load api or model class Sheets
Exception in Tkinter callback
Traceback (most recent call last):
  File "tkinter\__init__.py", line 1883, in __call__
  File "D:\Python Projects\Concept Number Generator\Concept Number Generator.py", line 12, in concept_num
    my_sheet=smartsheet_client.Sheets.get_sheet(8743006875477892)
AttributeError: 'str' object has no attribute 'get_sheet'

根据此处在 Stack Overflow 中的搜索,看起来其他人 运行 过去曾处理过此问题。尝试导入 smartsheet.Sheets——如本问题标题 EDIT 2 所述:including smartsheet sdk in a bundled app via pyinstaller.