I get a syntax error in PsychoPy’s PTB logging code.
My code:
from psychopy import logging
log = logging.LogFile("WS_Dev.log", level = logging.DEBUG, filemode = "w")
logging.log(logging.DEBUG, "in getArguments()")
and the error message:
File "./myProject.py", line 119, in getArguments
logging.log(logging.DEBUG, "in getArguments()")
File "./myProject-env/lib/python3.8/site-packages/psychopy/logging.py", line 410, in log
root.log(msg, level=level, t=t, obj=obj)
File "./myProject-env/lib/python3.8/site-packages/psychopy/logging.py", line 282, in log
if level < self.lowestTarget:
TypeError: '<' not supported between instances of 'str' and 'int'
macOS 12.2.1 (Monterey), 2017 MacBook Pro
PsychoPy 2021.2.3
psychtoolbox 3.0.18.2
Python 3.8