I am attempting to use Willow/python to conduct my thesis. The python script I have works on a colleagues laptop, but my laptop seems to have an issue with the willow.py file. The error I receive is copy and pasted here:
Traceback (most recent call last):
File "/Users/heathsharp1990/Documents/Catholic University Human Factors Masters Docs/Thesis/Python Script/drive-download-20180628T195743Z-001/RunExperimentKM.py", line 1, in <module>
from willow.willow import *
File "/Users/heathsharp1990/Documents/Catholic University Human Factors Masters Docs/Thesis/Python Script/drive-download-20180628T195743Z-001/willow.py", line 38, in <module>
_log_csv = csv.writer(open(_log_fn + ".csv","w",0))
IOError: [Errno 2] No such file or directory: 'log/2018-06-28-16-39-22.csv'</module></module>
When looking into the willow.py file the specific lines that give it trouble are as follows (line 38 in bold):
_log_fn = os.path.join("log",time.strftime("%Y-%m-%d-%H-%M-%S"))
_log_csv = csv.writer(open(_log_fn + ".csv","w",0))
_log_txt = open(_log_fn + ".txt", "w", 0)
_log_lock = threading.Lock()
I was wondering if you had any idea what the issue could be and how I can fix it, as the script we have written works on a colleagues laptop, but not mine. We both use macs. Thank you for your time and would appreciate any input you may have!