python - IOError: [Errno 22] invalid mode ('wb') or filename: -


i keep getting following error.

ioerror: [errno 22] invalid mode ('wb') or filename: 'c:\\users\\viral patel\\documents\\github\\3dphotovoltaics\\data_output\\simulation_data\\raw_data\\raw_simulation_data_2014-03-24 17:21:20.545000.csv' 

i think due timestamp @ end of filename. ideas?

you cannot use : in windows filenames, see naming files, paths, , namespaces ; 1 of reserved characters:

  • the following reserved characters:

    • < (less than)
    • > (greater than)
    • : (colon)
    • " (double quote)
    • / (forward slash)
    • \ (backslash)
    • | (vertical bar or pipe)
    • ? (question mark)
    • * (asterisk)

use different character not on reserved character list.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -