{"action":"created","issue":{"url":"https://api.github.com/repos/sdss/marvin/issues/519","repository_url":"https://api.github.com/repos/sdss/marvin","labels_url":"https://api.github.com/repos/sdss/marvin/issues/519/labels{/name}","comments_url":"https://api.github.com/repos/sdss/marvin/issues/519/comments","events_url":"https://api.github.com/repos/sdss/marvin/issues/519/events","html_url":"https://github.com/sdss/marvin/issues/519","id":352687989,"node_id":"MDU6SXNzdWUzNTI2ODc5ODk=","number":519,"title":"Can't get the SDSS image using Marvin tools","user":{"login":"margudo","id":7560892,"node_id":"MDQ6VXNlcjc1NjA4OTI=","avatar_url":"https://avatars1.githubusercontent.com/u/7560892?v=4","gravatar_id":"","url":"https://api.github.com/users/margudo","html_url":"https://github.com/margudo","followers_url":"https://api.github.com/users/margudo/followers","following_url":"https://api.github.com/users/margudo/following{/other_user}","gists_url":"https://api.github.com/users/margudo/gists{/gist_id}","starred_url":"https://api.github.com/users/margudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/margudo/subscriptions","organizations_url":"https://api.github.com/users/margudo/orgs","repos_url":"https://api.github.com/users/margudo/repos","events_url":"https://api.github.com/users/margudo/events{/privacy}","received_events_url":"https://api.github.com/users/margudo/received_events","type":"User","site_admin":false},"labels":[{"id":483352563,"node_id":"MDU6TGFiZWw0ODMzNTI1NjM=","url":"https://api.github.com/repos/sdss/marvin/labels/needs-reproduction","name":"needs-reproduction","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-21T20:01:10Z","updated_at":"2018-11-20T23:55:26Z","closed_at":"2018-11-20T23:55:26Z","author_association":"NONE","body":"<!-- **NEVER INCLUDE PLAINTEXT PASSWORDS OR PRIVATE INFORMATION IN THE BUG REPORT** -->\r\n\r\n**Describe the bug**\r\nA clear and concise description of what the bug is.\r\n\r\nI'm checking the tutorial in the SDSS web and I'm getting an error when plotting the SDSS image of a MaNGA galaxy. \r\n\r\n**To Reproduce**\r\nSteps to reproduce the behaviour:\r\n\r\nI'm running the tutorial https://testng.sdss.org/dr15/manga/manga-tutorials/marvin-tutorial/marvin-tools/ in a jupyter notebook.\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-14-5eb4cfc79873> in <module>()\r\n----> 1 image = showImage(plateifu='7443-12703', show_image=False)\r\n      2 fig, ax = plt.subplots()\r\n      3 ax.imshow(image)\r\n      4 ax.axis('off')\r\n\r\n~/anaconda/envs/python3/lib/python3.6/site-packages/marvin/utils/general/images.py in wrapper(*args, **kwargs)\r\n     64             raise MarvinError('sdss_access is not installed')\r\n     65         else:\r\n---> 66             return func(*args, **kwargs)\r\n     67     return wrapper\r\n     68 \r\n\r\n~/anaconda/envs/python3/lib/python3.6/site-packages/marvin/utils/general/images.py in wrapper(*args, **kwargs)\r\n     52             kwargs['mode'] = marvin.config.mode\r\n     53         assert kwargs['mode'] in ['auto', 'local', 'remote'], 'Mode must be either auto, local, or remote'\r\n---> 54         return func(*args, **kwargs)\r\n     55     return wrapper\r\n     56 \r\n\r\n~/anaconda/envs/python3/lib/python3.6/site-packages/marvin/utils/general/images.py in showImage(path, plateifu, release, return_image, show_image, mode)\r\n    467     # Open the image\r\n    468     try:\r\n--> 469         image = PIL.Image.open(fileobj)\r\n    470     except IOError as e:\r\n    471         print('Error: cannot open image')\r\n\r\nAttributeError: module 'PIL' has no attribute 'Image'\r\n\r\n```\r\n**Expected behaviour**\r\nA clear and concise description of what you expected to happen.\r\n\r\nTo plot the SDSS image of a MaNGA galaxy\r\n\r\n**Screenshots**\r\nIf applicable, add screenshots to help explain your problem.\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: [e.g. iOS] \r\nOS X\r\n - Browser [e.g. chrome, safari]  safari\r\n - Version of Marvin [e.g. 2.0.2] \r\n2.2.6\r\n\r\n**Additional context**\r\nAdd any other context about the problem here.\r\n\r\nI'm not getting this error in a terminal in ubuntu."},"comment":{"url":"https://api.github.com/repos/sdss/marvin/issues/comments/440472476","html_url":"https://github.com/sdss/marvin/issues/519#issuecomment-440472476","issue_url":"https://api.github.com/repos/sdss/marvin/issues/519","id":440472476,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDQ3MjQ3Ng==","user":{"login":"havok2063","id":1836302,"node_id":"MDQ6VXNlcjE4MzYzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1836302?v=4","gravatar_id":"","url":"https://api.github.com/users/havok2063","html_url":"https://github.com/havok2063","followers_url":"https://api.github.com/users/havok2063/followers","following_url":"https://api.github.com/users/havok2063/following{/other_user}","gists_url":"https://api.github.com/users/havok2063/gists{/gist_id}","starred_url":"https://api.github.com/users/havok2063/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havok2063/subscriptions","organizations_url":"https://api.github.com/users/havok2063/orgs","repos_url":"https://api.github.com/users/havok2063/repos","events_url":"https://api.github.com/users/havok2063/events{/privacy}","received_events_url":"https://api.github.com/users/havok2063/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T23:55:26Z","updated_at":"2018-11-20T23:55:26Z","author_association":"CONTRIBUTOR","body":"Closing this.  The `showImage` tool is deprecated.  `pillow` is a `PIL` fork.  Here is the documentation on installing `pillow`.  https://pillow.readthedocs.io/en/5.3.x/installation.html.   marvin has the correct package in its requirements.  We've never supported the old `PIL` package.  `Pillow v2.0+` supports the `Image` class tool.   All users should make sure they are using the correct package.  According to their docs, `PIL` and `Pillow` cannot coexist.  "}}
{"actor":{"display_login":"havok2063"}}