Skip to content

parse_date does not work with google colab #2

@a333klm

Description

@a333klm

ValueError                                Traceback (most recent call last)

/usr/local/lib/python3.6/dist-packages/kickbase_api/models/_transforms.py in parse_date(s)
      7     try:
----> 8         return datetime.strptime(s, "%Y-%m-%dT%H:%M:%S%z")
      9     except:

6 frames

ValueError: time data '2020-11-22T14:23:29Z' does not match format '%Y-%m-%dT%H:%M:%S%z'


During handling of the above exception, another exception occurred:

ValueError                                Traceback (most recent call last)

/usr/lib/python3.6/_strptime.py in _strptime(data_string, format)
    360     if not found:
    361         raise ValueError("time data %r does not match format %r" %
--> 362                          (data_string, format))
    363     if len(data_string) != found.end():
    364         raise ValueError("unconverted data remains: %s" %

ValueError: time data '2020-11-22T14:23:29Z+0000' does not match format '%Y-%m-%dT%H:%M:%S%z'

This error is thrown when i run the suggested code in google colab:

from kickbase_api.kickbase import Kickbase
kickbase = Kickbase()
user, leagues = kickbase.login("user_email", "password")

When I run it in a python script from my PC in Germany it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions