Skip to content
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

limit matplotlib version for windows #1259

Merged
merged 2 commits into from
May 22, 2024

Conversation

TomonobuTsujikawa
Copy link
Contributor

@TomonobuTsujikawa TomonobuTsujikawa commented May 22, 2024

With matplotlib latest version, we met an error on Windows platform for python>3.8.

The error was caused here:

>       plt.imshow(tile_images(digits.images[:64, None]), cmap='gray', interpolation='nearest')
(snip)
    @contextmanager
    def _restore_foreground_window_at_end():
>       foreground = _c_internal_utils.Win32_GetForegroundWindow()
E       ValueError: PyCapsule_New called with null pointer

This imshow is normal use, but the error was thrown by _c_internal_utils.Win32_GetForegroundWindow() which is a Windows system function, so we think this might be a permission or system environment issue for matplotlib 3.9.
So currently, we decide to limit matplotlib version to be lower than 3.9 for nnabla tests on Windows only.
The version on Linux will not be limited.

@YukioOobuchi YukioOobuchi merged commit 0ad25cd into master May 22, 2024
@YukioOobuchi YukioOobuchi deleted the feature/20240517-limit-matplotlib branch May 22, 2024 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants