{"action":"created","issue":{"url":"https://api.github.com/repos/gevent/gevent/issues/1136","repository_url":"https://api.github.com/repos/gevent/gevent","labels_url":"https://api.github.com/repos/gevent/gevent/issues/1136/labels{/name}","comments_url":"https://api.github.com/repos/gevent/gevent/issues/1136/comments","events_url":"https://api.github.com/repos/gevent/gevent/issues/1136/events","html_url":"https://github.com/gevent/gevent/issues/1136","id":303659153,"number":1136,"title":"TraitError while setting a python debbugger","user":{"login":"papachoco","id":244702,"avatar_url":"https://avatars2.githubusercontent.com/u/244702?v=4","gravatar_id":"","url":"https://api.github.com/users/papachoco","html_url":"https://github.com/papachoco","followers_url":"https://api.github.com/users/papachoco/followers","following_url":"https://api.github.com/users/papachoco/following{/other_user}","gists_url":"https://api.github.com/users/papachoco/gists{/gist_id}","starred_url":"https://api.github.com/users/papachoco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papachoco/subscriptions","organizations_url":"https://api.github.com/users/papachoco/orgs","repos_url":"https://api.github.com/users/papachoco/repos","events_url":"https://api.github.com/users/papachoco/events{/privacy}","received_events_url":"https://api.github.com/users/papachoco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-08T22:41:08Z","updated_at":"2018-03-09T00:32:25Z","closed_at":null,"author_association":"NONE","body":"* gevent version:1.3a2\r\n* Python version: Please be as specific as possible: \"cPython 2.7.9 downloaded from python.org\"\r\n* Operating System: macOS 10.13.3\r\n\r\n### Description:\r\n\r\nWhile setting an ipython brake-point we get an exception.\r\n\r\nThe brake-point set is ```from IPython.terminal.debugger import set_trace;set_trace()```\r\n\r\n```\r\n  from IPython.core.debugger import Tracer; Tracer()()\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/ipython-5.5.0-py2-none-any.ovo/IPython/core/debugger.py\", line 167, in __init__\r\n    self.debugger = Pdb(colors)\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/ipython-5.5.0-py2-none-any.ovo/IPython/core/debugger.py\", line 235, in __init__\r\n    self.shell = TerminalInteractiveShell.instance()\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/traitlets-4.3.2-py2.py3-none-any.ovo/traitlets/config/configurable.py\", line 412, in instance\r\n    inst = cls(*args, **kwargs)\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/ipython-5.5.0-py2-none-any.ovo/IPython/terminal/interactiveshell.py\", line 438, in __init__\r\n    super(TerminalInteractiveShell, self).__init__(*args, **kwargs)\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/ipython-5.5.0-py2-none-any.ovo/IPython/core/interactiveshell.py\", line 478, in __init__\r\n    self.init_history()\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/ipython-5.5.0-py2-none-any.ovo/IPython/core/interactiveshell.py\", line 1579, in init_history\r\n    self.history_manager = HistoryManager(shell=self, parent=self)\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/ipython-5.5.0-py2-none-any.ovo/IPython/core/history.py\", line 544, in __init__\r\n    self.save_flag = threading.Event()\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/traitlets-4.3.2-py2.py3-none-any.ovo/traitlets/traitlets.py\", line 585, in __set__\r\n    self.set(obj, value)\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/traitlets-4.3.2-py2.py3-none-any.ovo/traitlets/traitlets.py\", line 559, in set\r\n    new_value = self._validate(obj, value)\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/traitlets-4.3.2-py2.py3-none-any.ovo/traitlets/traitlets.py\", line 591, in _validate\r\n    value = self.validate(obj, value)\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/traitlets-4.3.2-py2.py3-none-any.ovo/traitlets/traitlets.py\", line 1677, in validate\r\n    self.error(obj, value)\r\n  File \"/Users/cutz/Documents/NextThought/nti.dataserver-buildout/eggs/traitlets-4.3.2-py2.py3-none-any.ovo/traitlets/traitlets.py\", line 1524, in error\r\n    raise TraitError(e)\r\nTraitError: The 'save_flag' trait of a HistoryManager instance must be a _Event or None, but a value of class 'gevent.event.Event' (i.e. <gevent.event.Event object at 0x1263362d0>) was specified.\r\n\r\n```\r\n\r\nThe error does not occur with version 1.3a1\r\n\r\nCarlos\r\n"},"comment":{"url":"https://api.github.com/repos/gevent/gevent/issues/comments/371673037","html_url":"https://github.com/gevent/gevent/issues/1136#issuecomment-371673037","issue_url":"https://api.github.com/repos/gevent/gevent/issues/1136","id":371673037,"user":{"login":"jamadden","id":1256082,"avatar_url":"https://avatars3.githubusercontent.com/u/1256082?v=4","gravatar_id":"","url":"https://api.github.com/users/jamadden","html_url":"https://github.com/jamadden","followers_url":"https://api.github.com/users/jamadden/followers","following_url":"https://api.github.com/users/jamadden/following{/other_user}","gists_url":"https://api.github.com/users/jamadden/gists{/gist_id}","starred_url":"https://api.github.com/users/jamadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamadden/subscriptions","organizations_url":"https://api.github.com/users/jamadden/orgs","repos_url":"https://api.github.com/users/jamadden/repos","events_url":"https://api.github.com/users/jamadden/events{/privacy}","received_events_url":"https://api.github.com/users/jamadden/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T00:32:25Z","updated_at":"2018-03-09T00:32:25Z","author_association":"OWNER","body":"(Also, if you're still using Python 2.7.9 I would highly encourage you to update to Python 2.7.14.)"}}
{"actor":{"display_login":"jamadden"}}