pyinstaller

Smartsheet pyinstaller Not Allowing Connection to API

南楼画角 提交于 2020-08-26 13:36:45
问题 I'm new to pyinstaller and trying to package a script I wrote that connects to Smartsheet. The code runs fine in PyCharm, but when I go to run the executable that it outputs the client object is just treated as a string and won't let me access any attributes. ImportError! Could not load api or model class Users Traceback (most recent call last): File "filename.py", line XX, in <module> AttributeError: 'str' object has no attribute 'get_current_user' [1480] Failed to execute script filename

Smartsheet pyinstaller Not Allowing Connection to API

此生再无相见时 提交于 2020-08-26 13:32:48
问题 I'm new to pyinstaller and trying to package a script I wrote that connects to Smartsheet. The code runs fine in PyCharm, but when I go to run the executable that it outputs the client object is just treated as a string and won't let me access any attributes. ImportError! Could not load api or model class Users Traceback (most recent call last): File "filename.py", line XX, in <module> AttributeError: 'str' object has no attribute 'get_current_user' [1480] Failed to execute script filename

PyInstaller unbuffered stdio

妖精的绣舞 提交于 2020-08-22 05:16:59
问题 Problem Docker image sizes should commonly be as small as possible. Using full-blown environments like a standard python image results often, with all dependencies installed, in heavily bloated images. Packaging python into stand-alone executables (e.g. using pyinstaller) is a perfect way of reducing image sizes and overall complexity. Environment : python3.6 , pyinstaller==3.4 The problem arising is, that python uses per default buffered stdio. This can be mitigated by running python scripts