Skip to content

Commit 4a80060

Browse files
committed
RF: import readline early for systems where this must be done before visual
It isn't actually clear to be why (only) some systems crash if readline is imported by sound (later on in the script) but reports are that importing earlier fixes the problem
1 parent fd257ca commit 4a80060

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

psychopy/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@
4747

4848
from psychopy.tools.versionchooser import useVersion, ensureMinimal
4949

50+
# import readline here to get around an issue with sounddevice
51+
# https://github.com/psychopy/psychopy/issues/2230
52+
# https://github.com/psychopy/psychopy/issues/2344
53+
# https://github.com/psychopy/psychopy/issues/2662
54+
import readline

0 commit comments

Comments
 (0)