pygame.camera.init() fails with Python 3

Issue #122 resolved
Arfrever Frehtes Taifersar Arahesis created an issue

pygame.camera.init() contains Python-2-style import, which does not work with Python 3: {{{ $ python3.2 -c 'import pygame.camera; pygame.camera.init()' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib64/python3.2/site-packages/pygame/camera.py", line 42, in init import _camera ImportError: No module named _camera }}} I am attaching the patch.

Comments (7)

  1. Bartek Kowalski

    I installed "pygame-1.9.2a0.win32-py3.3.msi" for my python3 and the issue is still present. (for example when using camera.py in examples folder). Why?

  2. Arfrever Frehtes Taifersar Arahesis reporter

    1.9.2a0 is too old. Download recent snapshot from Mercurial repository of Pygame and build Pygame manually.

  3. Log in to comment