Skip to content

AttributeError: 'NoneType' object has no attribute 'write' when use numpy >= 2.0.0 with --windowed option #8679

Answered by rokm
tiantian1645 asked this question in Help
Discussion options

You must be logged in to vote

Read https://pyinstaller.org/en/stable/common-issues-and-pitfalls.html#sys-stdin-sys-stdout-and-sys-stderr-in-noconsole-windowed-applications-windows-only for work-around.

And report the bug to numpy - numpy/f2py/cfuncs.py should account for possibility that sys.stderr is None, and in that case set errmess to a no-op lambda.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rokm
Comment options

rokm Jul 25, 2024
Maintainer

Answer selected by tiantian1645
Comment options

You must be logged in to vote
1 reply
@bwoodsend
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants