pythondatetimepycharmoserror

OSError: [Errno 22] Invalid argument in PyCharm


enter image description hereI have got following code which works in google colab but unfortunately not in PyCharm: https://stackoverflow.com/a/72197385/18745566

I got this Error:

OSError: [Errno 22] Invalid argument

Can anyone help me? Thanks a lotenter image description here


Solution

  • You can try File -> Settings -> Project: -> Project Structure -> Click on Timestamp (folder) -> Click on Mark as Sources -> Apply -> OK.

    I hope it help you!