psychopy.org | Reference | Downloads | Github

Cannot import anything from psychopy

When I try to import anything from psychopy, it errors. I have no issues with running this on my personal laptop, but when I try to run it on my Mac Mini, it errors.
I’m trying to run this on OS X 10.6.8. I installed all the packages via pip.

The code does not make it past initializing the import.

print("AAAA")
from psychopy import visual, event, core
print("@@@@@")

Here is what happens when I run my program:

AAAA
2018-09-28 19:34:01.530 Python[22221:60f] *** __NSAutoreleaseNoPool(): Object 0x10e86b1f0 of class NSCFString autoreleased with no pool in place - just leaking
2018-09-28 19:34:01.532 Python[22221:60f] *** __NSAutoreleaseNoPool(): Object 0x10e86bde0 of class NSCFArray autoreleased with no pool in place - just leaking
2018-09-28 19:34:01.533 Python[22221:60f] *** __NSAutoreleaseNoPool(): Object 0x7fff70f772b0 of class NSCFString autoreleased with no pool in place - just leaking
2018-09-28 19:34:01.533 Python[22221:60f] *** __NSAutoreleaseNoPool(): Object 0x10e86f990 of class NSCFArray autoreleased with no pool in place - just leaking
2018-09-28 19:34:01.534 Python[22221:60f] *** __NSAutoreleaseNoPool(): Object 0x10d436ba0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2018-09-28 19:34:01.534 Python[22221:60f] *** __NSAutoreleaseNoPool(): Object 0x10dc3f3b0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2018-09-28 19:34:01.535 Python[22221:60f] *** __NSAutoreleaseNoPool(): Object 0x100307ee0 of class NSCFString autoreleased with no pool in place - just leaking
2018-09-28 19:34:01.535 Python[22221:60f] *** __NSAutoreleaseNoPool(): Object 0x10dc71500 of class NSPathStore2 autoreleased with no pool in place - just leaking
2018-09-28 19:34:01.536 Python[22221:60f] *** __NSAutoreleaseNoPool(): Object 0x10e86fd60 of class NSConcreteData autoreleased with no pool in place - just leaking
Traceback (most recent call last):
  File "dot_stimulus.py", line 2, in <module>
    from psychopy import visual, monitors, event, core
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psychopy/visual/__init__.py", line 26, in <module>
    from .text import TextStim
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psychopy/visual/text.py", line 28, in <module>
    import psychopy.event
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psychopy/event.py", line 63, in <module>
    from pyglet.window.mouse import LEFT, MIDDLE, RIGHT
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyglet/window/__init__.py", line 1896, in <module>
    gl._create_shadow_window()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyglet/gl/__init__.py", line 208, in _create_shadow_window
    _shadow_window = Window(width=1, height=1, visible=False)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyglet/window/__init__.py", line 571, in __init__
    self._create()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyglet/window/cocoa/__init__.py", line 198, in _create
    self.context.attach(self.canvas)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyglet/gl/cocoa.py", line 264, in attach
    self._nscontext.view().setWantsBestResolutionOpenGLSurface_(1)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyglet/libs/darwin/cocoapy/runtime.py", line 989, in __getattr__
    raise AttributeError('ObjCInstance %s has no attribute %s' % (self.objc_class.name, name))
AttributeError: ObjCInstance PygletView has no attribute setWantsBestResolutionOpenGLSurface_

I appreciate any and all of your feedback.

Thank you,
Will