2

I have compiled Pygame for Python 3.4 on Ubuntu 14.04 following the instructions listed here. However, when I try to compile a Pygame program, I get the following error:

Traceback (most recent call last):
  File "game.py", line 4, in <module>
    import pygame
  File "/usr/local/lib/python3.4/dist-packages/pygame/__init__.py", line 133, in <module>
    from pygame.base import *
ImportError: /usr/local/lib/libSDL-1.2.so.0: undefined symbol: _XGetRequest

I have read that this might be due to a library mismatch. If that's true, how can I find out what libraries are involved (other than SDL) and how can I fix it?

4

1 Answer 1

1

It looks like I had two SDL-1.2 libraries installed: one in /usr/local/lib/ and one in /usr/lib/i386-linux-gnu/, the latter of which is the default path on Ubuntu, I believe. Removing all the SDL files at /usr/local/lib/ solved the problem.

1
  • 1
    Nice find. I never would have guessed that.
    – Elder Geek
    Apr 20, 2015 at 13:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .