Psychopy: TextStim position when using Pyglet 1.4+

Created on 29 Aug 2019  路  7Comments  路  Source: psychopy/psychopy

I have tried the latest TESTING version (as in master), because I have noticed that it has gammaErrorPolicy implemented.
However, running the same script as I used in 3.1.5, caused TextStim severely misaligned horizontally (shifted leftwards), even though stim.pos = (0,0).

Most helpful comment

Until this is fixed, can we update installation instructions or change the requirements when installed from pip? It took me a while to understand this bug on Linux, and it would be nice is there was a note or the dependency requirements are changed.

https://www.psychopy.org/download.html

All 7 comments

Were you using a Standalone installation? If not, what version of pyglet do you have installed?

I installed from the GitHub via pip, so it was the latest pyglet (1.4.2). Switching back to version 1.3.2 solved the issue. Thank you for the hint.

Pyglet 1.4 overhauled how text positioning works. I haven't figured out yet how to convert the old positioning system to work with the new one without breaking anything.

This also comes up if you follow the conda installation instructions on https://www.psychopy.org/download.html.

I've proposed a change (https://github.com/psychopy/psychopy/commit/6a287ee4c8cf369cac98a1733cbb6f208c501d70) that should work.

Until this is fixed, can we update installation instructions or change the requirements when installed from pip? It took me a while to understand this bug on Linux, and it would be nice is there was a note or the dependency requirements are changed.

https://www.psychopy.org/download.html

Master branch now supports pyglet 1.4 with correct text alignment. Additionally now supports text alignment of multiline text (center left or right)

Fixed in #2693

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tpetric7 picture tpetric7  路  7Comments

heaton2016 picture heaton2016  路  11Comments

janfreyberg picture janfreyberg  路  7Comments

luketudge picture luketudge  路  14Comments

trettenbrein picture trettenbrein  路  5Comments