Kubernetes dateutil.parser.parse(value) AttributeError: module 'dateutil' has no attribute 'parser'

Locally I don’t get that error and everything works fine.

But running it on Google Cloud/Kubernetes I get the error above from the app pod with the action server.

I added: python-dateutil==2.8.1 to my requirements.txt and upgraded kubernetes with the helm upgrade command.

I also tried the following import statements:

  • import dateutil
  • from dateutil import parser
  • import dateutil.parser

no luck.

Any ideas?

Of course the moment I post this I found a fix. :sweat_smile:

I had to create a new tag for my custom action server so the action server pod would update correctly.

also I used:

import dateutil
from dateutil import parser

I don’t know if this is overkill but at this point I am too afraid to change it :laughing: