Skip to content

macOS duplicate SDL warnings with opencv-python 4.13.0.92 and pygame #1219

@lola831

Description

@lola831

Hi,

I updated opencv-python from 4.12.0.88 to 4.13.0.92, and now I’m seeing duplicate SDL class warnings when opencv-python and pygame are imported in the same process.

For example:

import pygame
import cv2

gives warnings like:

Class SDLApplication is implemented in both .../site-packages/pygame/.dylibs/libSDL2-2.0.0.dylib and .../site-packages/cv2/.dylibs/libSDL2-2.0.0.dylib. This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

Do you have any advice on how this should be handled? Thanks!

Environment:
macOS Sequoia (Apple M1)
Python 3.12.11
opencv-python 4.13.0.92
pygame 2.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions