URL of experiment: Pavlovia
Description of the problem:
I am using a freshly installed psychopy builder v2022.2.5 on a windows computer via conda. I am having trouble creating a new project on pavlovia git, there seems to be some incompatibility with the ways dates are formatted at the backend, the project gets created but no files are synchronized. See the error tracebacks I get pasted below.
I tried deleting the project, deleting the folder, regenerating javascript code from the builder, but the issues persist.
Please let me know how to resolve the issue!
Thank you very much!
Best wishes,
Milan
Traceback (most recent call last):
File “C:\Users\user0050.conda\envs\psychopydig\lib\site-packages\psychopy\app\pavlovia_ui\sync.py”, line 162, in submit
self.project.refresh()
File “C:\Users\user0050.conda\envs\psychopydig\lib\site-packages\psychopy\projects\pavlovia.py”, line 664, in refresh
self._info[key] = pandas.to_datetime(self._info[key], format=“%Y-%m-%d %H:%M:%S.%f”)
File “C:\Users\user0050.conda\envs\psychopydig\lib\site-packages\pandas\core\tools\datetimes.py”, line 1084, in to_datetime
result = convert_listlike(np.array([arg]), format)[0]
File “C:\Users\user0050.conda\envs\psychopydig\lib\site-packages\pandas\core\tools\datetimes.py”, line 453, in _convert_listlike_datetimes
return _array_strptime_with_fallback(arg, name, utc, format, exact, errors)
File “C:\Users\user0050.conda\envs\psychopydig\lib\site-packages\pandas\core\tools\datetimes.py”, line 484, in _array_strptime_with_fallback
result, timezones = array_strptime(arg, fmt, exact=exact, errors=errors, utc=utc)
File “pandas_libs\tslibs\strptime.pyx”, line 530, in pandas._libs.tslibs.strptime.array_strptime
File “pandas_libs\tslibs\strptime.pyx”, line 351, in pandas._libs.tslibs.strptime.array_strptime
ValueError: time data “2023-10-31 02:36:29” doesn’t match format “%Y-%m-%d %H:%M:%S.%f”, at position 0. You might want to try:
- passing format
if your strings have a consistent format;
- passing format='ISO8601'
if your strings are all ISO8601 but not necessarily in exactly the same format;
- passing format='mixed'
, and the format will be inferred for each element individually. You might want to use dayfirst
alongside this.