{"action":"opened","issue":{"url":"https://api.github.com/repos/astropy/photutils/issues/431","repository_url":"https://api.github.com/repos/astropy/photutils","labels_url":"https://api.github.com/repos/astropy/photutils/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/astropy/photutils/issues/431/comments","events_url":"https://api.github.com/repos/astropy/photutils/issues/431/events","html_url":"https://github.com/astropy/photutils/issues/431","id":179039564,"number":431,"title":"Odd error message","user":{"login":"russel","id":24420,"avatar_url":"https://avatars.githubusercontent.com/u/24420?v=3","gravatar_id":"","url":"https://api.github.com/users/russel","html_url":"https://github.com/russel","followers_url":"https://api.github.com/users/russel/followers","following_url":"https://api.github.com/users/russel/following{/other_user}","gists_url":"https://api.github.com/users/russel/gists{/gist_id}","starred_url":"https://api.github.com/users/russel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russel/subscriptions","organizations_url":"https://api.github.com/users/russel/orgs","repos_url":"https://api.github.com/users/russel/repos","events_url":"https://api.github.com/users/russel/events{/privacy}","received_events_url":"https://api.github.com/users/russel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-24T16:48:35Z","updated_at":"2016-09-24T16:48:35Z","closed_at":null,"body":"Using photutils (0.2.2) with Python 3 (3.5.2) and PIL (1.1.7 via packaging, actually pillow 3.3.1) on Debian Sid, the code:\r\n```python\r\nfrom PIL import Image\r\nfrom photutils import background, detect_threshold, detect_sources\r\n\r\ndata = Image.open('AHZ2001c0z.jpg')\r\nbkg = background.Background(data, (50, 50), filter_shape=(3, 3), method='median')\r\n```\r\n(strip down from the person's real code) results in the error:\r\n```\r\nTraceback (most recent call last):\r\n  File \"bug_report.py\", line 5, in <module>\r\n    bkg = background.Background(data, (50, 50), filter_shape=(3, 3), method='median')\r\n  File \"/usr/lib/python3/dist-packages/photutils/background.py\", line 134, in __init__\r\n    self.box_shape = (min(box_shape[0], data.shape[0]),\r\n  File \"/usr/lib/python3/dist-packages/PIL/Image.py\", line 627, in __getattr__\r\n    raise AttributeError(name)\r\nAttributeError: shape\r\n```\r\nThis error message is weird: there is no indication what is to be done in the user code to avoid this problem. Unless I am missing something."}}
{"actor":{"display_login":"russel"}}