{"action":"opened","issue":{"url":"https://api.github.com/repos/pyviz/panel/issues/555","repository_url":"https://api.github.com/repos/pyviz/panel","labels_url":"https://api.github.com/repos/pyviz/panel/issues/555/labels{/name}","comments_url":"https://api.github.com/repos/pyviz/panel/issues/555/comments","events_url":"https://api.github.com/repos/pyviz/panel/issues/555/events","html_url":"https://github.com/pyviz/panel/issues/555","id":473911047,"node_id":"MDU6SXNzdWU0NzM5MTEwNDc=","number":555,"title":"Datepicker fails to work","user":{"login":"randomstuff","id":946727,"node_id":"MDQ6VXNlcjk0NjcyNw==","avatar_url":"https://avatars3.githubusercontent.com/u/946727?v=4","gravatar_id":"","url":"https://api.github.com/users/randomstuff","html_url":"https://github.com/randomstuff","followers_url":"https://api.github.com/users/randomstuff/followers","following_url":"https://api.github.com/users/randomstuff/following{/other_user}","gists_url":"https://api.github.com/users/randomstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/randomstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randomstuff/subscriptions","organizations_url":"https://api.github.com/users/randomstuff/orgs","repos_url":"https://api.github.com/users/randomstuff/repos","events_url":"https://api.github.com/users/randomstuff/events{/privacy}","received_events_url":"https://api.github.com/users/randomstuff/received_events","type":"User","site_admin":false},"labels":[{"id":1468705918,"node_id":"MDU6TGFiZWwxNDY4NzA1OTE4","url":"https://api.github.com/repos/pyviz/panel/labels/TRIAGE","name":"TRIAGE","color":"999999","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-29T08:11:13Z","updated_at":"2019-07-29T08:11:13Z","closed_at":null,"author_association":"NONE","body":"### FOLLOW THESE INSTRUCTIONS CAREFULLY\r\n\r\n#### ALL software version info (Panel, bokeh, python, notebook, OS, browser, any other relevant packages)\r\n\r\n* Debian testing\r\n* Python 3.7.4\r\n\r\n<pre>\r\nbokeh           1.3.0  \r\nJinja2          2.10.1 \r\nMarkdown        3.1.1  \r\nMarkupSafe      1.1.1  \r\nnumpy           1.17.0 \r\npackaging       19.0   \r\npanel           0.6.0  \r\nparam           1.9.1  \r\nPillow          6.1.0  \r\npip             18.1   \r\npkg-resources   0.0.0  \r\npyct            0.4.6  \r\npyparsing       2.4.1.1\r\npython-dateutil 2.8.0  \r\npyviz-comms     0.7.2  \r\nPyYAML          5.1.1  \r\nsetuptools      40.8.0 \r\nsix             1.12.0 \r\ntornado         6.0.3 \r\n</pre>\r\n\r\n#### Description of expected behavior and the observed behavior\r\n\r\nWhen changing the value of a `Datepicker`, it fails with: `TypeError: 'datetime.date' object is not subscriptable`.\r\n\r\n#### Complete, minimal, self-contained example code that reproduces the issue\r\n\r\n```python\r\nimport panel.widgets as pnw\r\npnw.DatePicker().servable()\r\n```\r\n\r\n```sh\r\npanel serve test.py\r\n```\r\n\r\n#### Stack traceback and/or browser JavaScript console output\r\n\r\n<pre>\r\n2019-07-29 10:08:31,618 Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0x7f5a885a7150>>, <Future finished exception=TypeError(\"'datetime.date' object is not subscriptable\")>)\r\nTraceback (most recent call last):\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/tornado/ioloop.py\", line 743, in _run_callback\r\n    ret = callback()\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/tornado/ioloop.py\", line 767, in _discard_future_result\r\n    future.result()\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/tornado/gen.py\", line 748, in run\r\n    yielded = self.gen.send(value)\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/bokeh/server/session.py\", line 70, in _needs_document_lock_wrapper\r\n    result = yield yield_for_all_futures(func(self, *args, **kwargs))\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/bokeh/server/session.py\", line 191, in with_document_locked\r\n    return func(*args, **kwargs)\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/bokeh/document/document.py\", line 1127, in wrapper\r\n    return doc._with_self_as_curdoc(invoke)\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/bokeh/document/document.py\", line 1113, in _with_self_as_curdoc\r\n    return f()\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/bokeh/document/document.py\", line 1126, in invoke\r\n    return f(*args, **kwargs)\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/bokeh/document/document.py\", line 916, in remove_then_invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/panel/viewable.py\", line 653, in _change_event\r\n    self.set_param(**self._process_property_change(events))\r\n  File \"/home/gcorona/temp/test/venv/lib/python3.7/site-packages/panel/widgets/input.py\", line 118, in _process_property_change\r\n    msg['value'] = datetime.strptime(msg['value'][4:], '%b %d %Y')\r\nTypeError: 'datetime.date' object is not subscriptable\r\n</pre>\r\n\r\n#### Screenshots or screencasts of the bug in action\r\n"}}
{"actor":{"display_login":"randomstuff"}}