Hello all -
I'm having a bit of trouble passing an experiment through WinPython. I've include the code preceding the error, as well as the error message that pops up. The experiment works on the standalone version of psychopy as well as running it through an installed version of python 2.7.10 on my pc. Unfortunately the experiment needs to be run through WinPython.
# set up handler to look after randomisation of conditions etc
Introduction_Loop = data.TrialHandler(nReps=1, method='sequential',
extraInfo=expInfo, originPath=-1,
trialList=data.importConditions('procedure\\Introduction.csv'),
seed=None, name='Introduction_Loop')
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
==== No Subprocess ====
>>>
saved data to u'C:\\Users\\Owner\\Desktop\\SART\\send\\data/001_001_SART_4.csv'
Traceback (most recent call last):
File "C:\Users\Owner\Desktop\SART\send\SART_6.py", line 117, in <module>
seed=None, name='Introduction_Loop')
File "C:\Users\Owner\Desktop\SART\send\WinPython\WinPython-32bit-2.7.10.3\python-2.7.10\lib\site-packages\psychopy\data.py", line 773, in __init__
self.originPath, self.origin = self.getOriginPathAndFile(originPath)
File "C:\Users\Owner\Desktop\SART\send\WinPython\WinPython-32bit-2.7.10.3\python-2.7.10\lib\site-packages\psychopy\data.py", line 633, in getOriginPathAndFile
if originPath is None or not os.path.isfile(originPath):
File "C:\Users\Owner\Desktop\SART\send\WinPython\WinPython-32bit-2.7.10.3\python-2.7.10\lib\genericpath.py", line 37, in isfile
st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, int found