QString errors in Windows

data.importConditions throws an error because, it seems, the strings are being converted to Qstring. This is with both PsychoPy 1.85.3 and 1.85.6 in Windows 10.
No issues on a Mac (have only tried 1.85.6).

I did have another Qstring issue on a Mac: It looks like strings are being saved as Qstrings and then can’t be unpickled because the unpickling function in PsychoPy assumes a string.

(stimList,fieldNames) = data.importConditions(fileName,returnFieldNames=True)

File “C:\Users\LupyanLab\Miniconda2\lib\site-packages\psychopy-1.85.6-py2.7.egg\psychopy\data.py”, line 2674, in importConditions
if fileName.endswith(’.csv’):
AttributeError: ‘QString’ object has no attribute ‘endswith’

Narrowed the problem down to the string being passed through the GUI. For some reason it’s being converted to a Qstring. Casting it as str() fixes this immediate issue, but this is worth looking at more closely…