1. pygame
  2. pygame
  3. pygame

Issues

Issue #167 new

[osx] duplicate SDL locations warning

ellmo
created an issue

Hello, I installed pygame for python3.3 following some advice in https://bitbucket.org/pygame/pygame/issue/82/homebrew-on-leopard-fails-to-install#comment-627494

This specific python was installed through pythonz and is ran through regular virtualenv. I think it's working fine, but during installation it gave thse warnings:

(…)
running install_egg_info
Writing /Users/ellmo/p3/lib/python3.3/site-packages/pygame-1.9.2pre-py3.3.egg-info
objc[66794]: Class SDLTranslatorResponder is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Users/ellmo/Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined.
objc[66794]: Class SDL_QuartzWindow is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Users/ellmo/Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined.
objc[66794]: Class SDL_QuartzWindowDelegate is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Users/ellmo/Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined.
objc[66794]: Class SDL_QuartzView is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Users/ellmo/Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined.

It gives similar warnings when I import pygame:

(p3)ellmo@ellmo~/python/pygame$ python

Python 3.3.0 (default, May 30 2013, 20:25:49)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import pygame

objc[66957]: Class SDLTranslatorResponder is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Users/ellmo/Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined.
objc[66957]: Class SDL_QuartzWindow is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Users/ellmo/Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined.
objc[66957]: Class SDL_QuartzWindowDelegate is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Users/ellmo/Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined.
objc[66957]: Class SDL_QuartzView is implemented in both /usr/local/lib/libSDL-1.2.0.dylib and /Users/ellmo/Library/Frameworks/SDL.framework/Versions/A/SDL. One of the two will be used. Which one is undefined.

>>> pygame

<module 'pygame' from '/Users/ellmo/p3/lib/python3.3/site-packages/pygame/__init__.py'>

>>> exit()

(p3)ellmo@ellmo~/python/pygame$

Pretty sure that's because I have two SDLs, one installed from a OSX package and one installed via Homebrew. Since I trust the Homebrew one more, can you help me with properly removing the ~Library/Frameworks/SDL.framework one? Is it enough to remove the entire directory?

Comments (5)

  1. Dan Ross

    I had the same error. Once I deleted the ~/Library/Frameworks/SDL.framework and related SDL frameworks in Library, I had to rebuild pygame so that it linked against the Homebrew versions.

    One large difference is that I'm using Homebrew Python as well. I'm not sure how that affects things. My thought was if I'm going to use Homebrew SDL the safest bet would be to use as many Homebrewed items as possible.

  2. Log in to comment