API Load Error with Python Executable
I have created a python script in PyCharm, the file has been running with no issues. I converted the file to .exe using PyInstaller and auto-py-to-exe but with both methods I receive the following error after running the .exe:
"Import Error! Could not load api or model class folders."
A screen shot of the command line is attached to this post. I am not sure if this is an issue with the my program or with the conversion tool. Has anyone else had this issue?
Answers
-
Also getting a very similar error...
-
I found a stackoverflow post about this that you may find helpful: https://stackoverflow.com/questions/39001131/including-smartsheet-sdk-in-a-bundled-app-via-pyinstaller
From what I can see, it looks like the code needs to explicitly import the objects, e.g. smartsheet.Sheets instead of import smartsheet.
I would recommend continuing the conversation on that stackoverflow thread if you have additional questions in case that user can provide more insight.
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives