Closed clstaudt closed 1 year ago
Looks like stdout
is None
. Not sure how exactly you're using the library but here are few references to look at:
https://docs.python.org/3/library/sys.html#sys.__stderr__
https://stackoverflow.com/questions/67610859/show-stdout-with-pyinstaller-noconsole
@mandarons Since stdout can be None in some cases, this should be considered a bug in the library. The default argument should be set to None and the parameter should be determined later, with proper error handling. Would you agree?
Ohh yes. This case needs to be handled in icloudpy
.
@mandarons Can you give us an ETA for a new version?
@clstaudt Can you please try using main
branch and see if that fixes the issue?
https://github.com/mandarons/icloudpy/blob/e7edabd2f82fc217d8504cacf9e942e5d7a9808b/icloudpy/utils.py#L12
Running this from an app packaged with
pyinstaller
on Windows raises: