psychopy.org | Reference | Downloads | Github

Atlas issue, pyglet

Hey All, Im having an issue with psychopy. I get the following issue below im not sure what to do. Ive tried googling with no luck. Any help would be apperciated. im using python 2.7.15, and psychopy 2

File “C:\Python27\lib\site-packages\psychopy\visual\text.py”, line 159, in init
self.setHeight(height, log=False) # calls setFont() at some point
File “C:\Python27\lib\site-packages\psychopy\visual\text.py”, line 207, in setHeight
setAttribute(self, ‘height’, height, log)
File “C:\Python27\lib\site-packages\psychopy\tools\attributetools.py”, line 141, in setAttribute
setattr(self, attrib, value)
File “C:\Python27\lib\site-packages\psychopy\tools\attributetools.py”, line 32, in set
newValue = self.func(obj, value)
File “C:\Python27\lib\site-packages\psychopy\visual\text.py”, line 202, in height
self.setFont(self.font, log=False)
File “C:\Python27\lib\site-packages\psychopy\visual\text.py”, line 270, in setFont
setAttribute(self, ‘font’, font, log)
File “C:\Python27\lib\site-packages\psychopy\tools\attributetools.py”, line 141, in setAttribute
setattr(self, attrib, value)
File “C:\Python27\lib\site-packages\psychopy\tools\attributetools.py”, line 32, in set
newValue = self.func(obj, value)
File “C:\Python27\lib\site-packages\psychopy\visual\text.py”, line 216, in font
self.font = pyglet.font.load(font, int(self.heightPix),
File "C:\Python27\lib\site-packages\pyglet_init
.py", line 357, in getattr
import(import_name)
File "C:\Python27\lib\site-packages\pyglet\font_init
.py", line 580, in
from pyglet.font.win32 import GDIPlusFont
File “C:\Python27\lib\site-packages\pyglet\font\win32.py”, line 47, in
from pyglet.font import base
File “C:\Python27\lib\site-packages\pyglet\font\base.py”, line 141, in
class Glyph(image.TextureRegion):
File “C:\Python27\lib\site-packages\pyglet_init_.py”, line 357, in getattr
import(import_name)
File “C:\Python27\lib\site-packages\pyglet\image_init_.py”, line 150, in
from pyglet.image import atlas
ImportError: cannot import name atlas

This looks to me like your installatoin of pyglet is broken. Try removing and reinstalling that (or use a Standalone version of PsychoPy)