You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\Elliot\dev\Spond\venv37\Scripts\python.exe C:\Users\Elliot\dev\Spond\attendance.py
Traceback (most recent call last):
File "C:\Users\Elliot\dev\Spond\attendance.py", line 59, in <module>
loop.run_until_complete(main())
File "C:\Users\Elliot\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 587, in run_until_complete
return future.result()
File "C:\Users\Elliot\dev\Spond\attendance.py", line 24, in main
with open(filename, 'w', newline='') as csvfile:
OSError: [Errno 22] Invalid argument: './exports\\2023-04-11T17:45:00Z-Redacted Redacted.csv'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000002362A4D7748>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x000002362A4F8C18>, 2373424.39)]']
connector: <aiohttp.connector.TCPConnector object at 0x000002362A4D7788>
Process finished with exit code 1
I think the issue is that ":" characters are not valid in Windows filenames.
(What's best practice for timestamps in filenames?
This is only a sample script, and there will be other, potentially invalid characters in event headings...)
The text was updated successfully, but these errors were encountered:
A simple rule is just to replace anything other than "A-z0-9_.-" with "_".
One could also first replacce ":" wilth "." and then replace everything else with "_".
Following on from #27
Run wth no parameters:
I think the issue is that ":" characters are not valid in Windows filenames.
(What's best practice for timestamps in filenames?
This is only a sample script, and there will be other, potentially invalid characters in event headings...)
The text was updated successfully, but these errors were encountered: