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
Categories
- All Categories
- 14 Welcome to the Community
- 10.9K Get Help
- 65 Global Discussions
- 69 Industry Talk
- 385 Announcements
- 3.6K Ideas & Feature Requests
- 56 Brandfolder
- 125 Just for fun
- 50 Community Job Board
- 464 Show & Tell
- 40 Member Spotlight
- 44 Power Your Process
- 28 Sponsor X
- 234 Events
- 7.3K Forum Archives