psychopy/psychopy — pull request #752 by ramvibhakar (2014-12-04 08:49:39+00:00)
Title: BF : ImportError cannot import name types while using Joystick on Windows

An Incorrect pyglet package name was causing the below issue which using Joystick on windows.

from psychopy.hardware import joystick

Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.81.02-py2.7.egg\psychopy\hardware\joystick\__init__.py", line 36, in
import pyglet_input
File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.81.02-py2.7.egg\psychopy\hardware\joystick\pyglet_input\__init__.py", line 163, in
from directinput import get_devices, get_joysticks
File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.81.02-py2.7.egg\psychopy\hardware\joystick\pyglet_input\directinput.py", line 6, in
import app
File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.81.02-py2.7.egg\psychopy\hardware\joystick\pyglet_input\app\__init__.py", line 150, in
from win32 import Win32EventLoop as PlatformEventLoop
File "C:\Program Files\PsychoPy2\lib\site-packages\psychopy-1.81.02-py2.7.egg\psychopy\hardware\joystick\pyglet_input\app\win32.py", line 44, in
from pyglet.window.win32 import _kernel32, _user32, types, constants
ImportError: cannot import name types