{"action":"created","issue":{"url":"https://api.github.com/repos/psychopy/psychopy/issues/1779","repository_url":"https://api.github.com/repos/psychopy/psychopy","labels_url":"https://api.github.com/repos/psychopy/psychopy/issues/1779/labels{/name}","comments_url":"https://api.github.com/repos/psychopy/psychopy/issues/1779/comments","events_url":"https://api.github.com/repos/psychopy/psychopy/issues/1779/events","html_url":"https://github.com/psychopy/psychopy/issues/1779","id":308499816,"number":1779,"title":"TypeError: unsupported operand type(s) for &: 'long' and 'LP_c_void' when using the pyglet backend","user":{"login":"alpinho","id":10830228,"avatar_url":"https://avatars1.githubusercontent.com/u/10830228?v=4","gravatar_id":"","url":"https://api.github.com/users/alpinho","html_url":"https://github.com/alpinho","followers_url":"https://api.github.com/users/alpinho/followers","following_url":"https://api.github.com/users/alpinho/following{/other_user}","gists_url":"https://api.github.com/users/alpinho/gists{/gist_id}","starred_url":"https://api.github.com/users/alpinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpinho/subscriptions","organizations_url":"https://api.github.com/users/alpinho/orgs","repos_url":"https://api.github.com/users/alpinho/repos","events_url":"https://api.github.com/users/alpinho/events{/privacy}","received_events_url":"https://api.github.com/users/alpinho/received_events","type":"User","site_admin":false},"labels":[{"id":459920539,"url":"https://api.github.com/repos/psychopy/psychopy/labels/bug","name":"bug","color":"b60205","default":true},{"id":459920130,"url":"https://api.github.com/repos/psychopy/psychopy/labels/library","name":"library","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-03-26T09:40:20Z","updated_at":"2018-05-24T09:47:22Z","closed_at":null,"author_association":"NONE","body":"Under python 2.7 and psychopy 1.90.0 I get the following error:\r\n\r\n```python-traceback\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\nC:\\Users\\analuisa\\gitrepos\\cognitive_protocols\\visual_protocols\\retinotopy\\retinoto.py in <module>()\r\n    275         fixation_callback, pref_color = get_retino_fixation(number)\r\n    276\r\n--> 277         window = visual.Window(fullscr=False)\r\n    278         show_init_screen(\r\n    279             window, u\"Chargement... \\n\", wait_key=None, with_fixation=False)\r\n\r\nC:\\Users\\analuisa\\Anaconda2\\lib\\site-packages\\psychopy\\visual\\window.pyc in __init__(self, size, pos, color, colorSpace, rgb, dkl, lms, fullscr, allowGUI, monitor, bitsMode, winType, units, gamma, blendMode, screen, viewScale, viewPos, viewOri, waitBlanking, allowStencil, multiSample, numSamples, stereo, name, checkTiming, useFBO, useRetina, autoLog, *args, **kwargs)\r\n    373\r\n    374         # setup the context\r\n--> 375         self.backend = backends.getBackend(win=self, *args, **kwargs)\r\n    376         self.winHandle = self.backend.winHandle\r\n    377         global GL\r\n\r\nC:\\Users\\analuisa\\Anaconda2\\lib\\site-packages\\psychopy\\visual\\backends\\__init__.pyc in getBackend(win, *args, **kwargs)\r\n     30                              \"there is no backend definition to match that \"\r\n     31                              \"winType.\".format(win.winType))\r\n---> 32     return Backend(win, *args, **kwargs)\r\n     33\r\n\r\nC:\\Users\\analuisa\\Anaconda2\\lib\\site-packages\\psychopy\\visual\\backends\\pygletbackend.pyc in __init__(self, win, *args, **kwargs)\r\n    221         # store properties of the system\r\n    222         self._driver = pyglet.gl.gl_info.get_renderer()\r\n--> 223         self._origGammaRamp = self.getGammaRamp()\r\n    224         self._rampSize = getGammaRampSize(self.screenID, self.xDisplay)\r\n    225         self._TravisTesting = (os.environ.get('TRAVIS') == 'true')\r\n\r\nC:\\Users\\analuisa\\Anaconda2\\lib\\site-packages\\psychopy\\visual\\backends\\pygletbackend.pyc in getGammaRamp(self)\r\n    320\r\n    321     def getGammaRamp(self):\r\n--> 322         return getGammaRamp(self.screenID, self.xDisplay)\r\n    323\r\n    324     @property\r\n\r\nC:\\Users\\analuisa\\Anaconda2\\lib\\site-packages\\psychopy\\visual\\backends\\pygletbackend.pyc in screenID(self)\r\n    332                 _screenID = 0xFFFFFFFF & int.from_bytes(scrBytes, byteorder='little')\r\n    333             else:\r\n--> 334                 _screenID = 0xFFFFFFFF & scrBytes\r\n    335         elif sys.platform == 'darwin':\r\n    336             try:\r\n\r\nTypeError: unsupported operand type(s) for &: 'long' and 'LP_c_void'\r\n```\r\n\r\nThis protocol works fine with psychopy 1.85.3.\r\n"},"comment":{"url":"https://api.github.com/repos/psychopy/psychopy/issues/comments/391655536","html_url":"https://github.com/psychopy/psychopy/issues/1779#issuecomment-391655536","issue_url":"https://api.github.com/repos/psychopy/psychopy/issues/1779","id":391655536,"user":{"login":"peircej","id":380582,"avatar_url":"https://avatars2.githubusercontent.com/u/380582?v=4","gravatar_id":"","url":"https://api.github.com/users/peircej","html_url":"https://github.com/peircej","followers_url":"https://api.github.com/users/peircej/followers","following_url":"https://api.github.com/users/peircej/following{/other_user}","gists_url":"https://api.github.com/users/peircej/gists{/gist_id}","starred_url":"https://api.github.com/users/peircej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peircej/subscriptions","organizations_url":"https://api.github.com/users/peircej/orgs","repos_url":"https://api.github.com/users/peircej/repos","events_url":"https://api.github.com/users/peircej/events{/privacy}","received_events_url":"https://api.github.com/users/peircej/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T09:47:22Z","updated_at":"2018-05-24T09:47:22Z","author_association":"MEMBER","body":"Thanks @sherdim I didn't know that works. But there are other installations where it's needed, so I'll apply that using a try...except and hopefully everything will be happy!"}}
{"actor":{"display_login":"peircej"}}