Skip to content

fix sys.__stderr__.write #5211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

miaopass-future
Copy link

Using pyinstaller packaging, an error is reported when the parameter console configures False

sys.stderr.write(console_encode(stderr, stream=sys.stderr))
AttributeError: 'NoneType' object has no attribute 'write'

@pekkaklarck
Copy link
Member

Could you submit an issue about this problem? We use issues for tracking purposes and, for example, need to decide is this something we should fix in RF 7.1.1 or is waiting for RF 7.2 enough.

Someone setting sys.__stderr__ to None sounds pretty odd. If you have more information about this, please clarify it in the issue.

@miaopass-future
Copy link
Author

Could you submit an issue about this problem? We use issues for tracking purposes and, for example, need to decide is this something we should fix in RF 7.1.1 or is waiting for RF 7.2 enough.

Someone setting sys.__stderr__ to None sounds pretty odd. If you have more information about this, please clarify it in the issue.

#5212

@pekkaklarck
Copy link
Member

pekkaklarck commented Oct 17, 2024

This wasn't the only place where sys.__strderr__ was accessed without checking is it None or not. I went all those case through and fixed them in 5efbcde. That fixed #5212 and the fix will be included in RF 7.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants