{"action":"created","issue":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/1622","repository_url":"https://api.github.com/repos/sunpy/sunpy","labels_url":"https://api.github.com/repos/sunpy/sunpy/issues/1622/labels{/name}","comments_url":"https://api.github.com/repos/sunpy/sunpy/issues/1622/comments","events_url":"https://api.github.com/repos/sunpy/sunpy/issues/1622/events","html_url":"https://github.com/sunpy/sunpy/issues/1622","id":122008468,"number":1622,"title":"0.6.1: `python setup.py test` fails","user":{"login":"olebole","id":397223,"avatar_url":"https://avatars.githubusercontent.com/u/397223?v=3","gravatar_id":"","url":"https://api.github.com/users/olebole","html_url":"https://github.com/olebole","followers_url":"https://api.github.com/users/olebole/followers","following_url":"https://api.github.com/users/olebole/following{/other_user}","gists_url":"https://api.github.com/users/olebole/gists{/gist_id}","starred_url":"https://api.github.com/users/olebole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olebole/subscriptions","organizations_url":"https://api.github.com/users/olebole/orgs","repos_url":"https://api.github.com/users/olebole/repos","events_url":"https://api.github.com/users/olebole/events{/privacy}","received_events_url":"https://api.github.com/users/olebole/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-12-14T09:52:35Z","updated_at":"2016-03-30T13:22:15Z","closed_at":null,"body":"Hi,\r\n\r\nI am currently packaging sunpy for Debian. However, I failed running the tests:\r\n```\r\n$ python setup.py test\r\nUnexpected output from `git submodule status`:\r\n\r\nWill attempt import from 'astropy_helpers' regardless.\r\nrunning test\r\nrunning build\r\nrunning build_py\r\nrunning egg_info\r\nwriting requirements to sunpy.egg-info/requires.txt\r\nwriting sunpy.egg-info/PKG-INFO\r\nwriting top-level names to sunpy.egg-info/top_level.txt\r\nwriting dependency_links to sunpy.egg-info/dependency_links.txt\r\nreading manifest file 'sunpy.egg-info/SOURCES.txt'\r\nwriting manifest file 'sunpy.egg-info/SOURCES.txt'\r\ncopying sunpy/_compiler.c -> build/lib.linux-x86_64-2.7/sunpy\r\nrunning build_ext\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 136, in <module>\r\n    **package_info\r\n  File \"/usr/lib/python2.7/distutils/core.py\", line 151, in setup\r\n    dist.run_commands()\r\n  File \"/usr/lib/python2.7/distutils/dist.py\", line 953, in run_commands\r\n    self.run_command(cmd)\r\n  File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n    cmd_obj.run()\r\n  File \"/home/oles/Projects/2011/debian/python/sunpy/.eggs/astropy_helpers-1.0.6-py2.7.egg/astropy_helpers/test_helpers.py\", line 150, in run\r\n    self._build_temp_install()\r\n  File \"/home/oles/Projects/2011/debian/python/sunpy/.eggs/astropy_helpers-1.0.6-py2.7.egg/astropy_helpers/test_helpers.py\", line 207, in _build_temp_install\r\n    os.path.basename(self.docs_path))\r\n  File \"/usr/lib/python2.7/posixpath.py\", line 114, in basename\r\n    i = p.rfind('/') + 1\r\nAttributeError: 'NoneType' object has no attribute 'rfind'\r\n```\r\n\r\nWhen I try to use the latest astropy_helpers 1.1, I get\r\n```\r\n$ python setup.py test\r\n/usr/lib/python2.7/dist-packages/astropy_helpers/setup_helpers.py:102: AstropyDeprecationWarning: Direct use of the adjust_compiler function in setup.py is deprecated and can be removed from your setup.py.  This functionality is now incorporated directly into the build_ext command.\r\n  'command.', AstropyDeprecationWarning)\r\nrunning test\r\nrunning build\r\nrunning build_py\r\nrunning egg_info\r\nwriting requirements to sunpy.egg-info/requires.txt\r\nwriting sunpy.egg-info/PKG-INFO\r\nwriting top-level names to sunpy.egg-info/top_level.txt\r\nwriting dependency_links to sunpy.egg-info/dependency_links.txt\r\nreading manifest file 'sunpy.egg-info/SOURCES.txt'\r\nwriting manifest file 'sunpy.egg-info/SOURCES.txt'\r\ncopying sunpy/_compiler.c -> build/lib.linux-x86_64-2.7/sunpy\r\nrunning build_ext\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 136, in <module>\r\n    **package_info\r\n  File \"/usr/lib/python2.7/distutils/core.py\", line 151, in setup\r\n    dist.run_commands()\r\n  File \"/usr/lib/python2.7/distutils/dist.py\", line 953, in run_commands\r\n    self.run_command(cmd)\r\n  File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n    cmd_obj.run()\r\n  File \"/usr/lib/python2.7/dist-packages/astropy_helpers/commands/_test_compat.py\", line 165, in run\r\n    self._build_temp_install()\r\n  File \"/usr/lib/python2.7/dist-packages/astropy_helpers/commands/_test_compat.py\", line 216, in _build_temp_install\r\n    dir=self.temp_root)\r\n  File \"/usr/lib/python2.7/distutils/cmd.py\", line 105, in __getattr__\r\n    raise AttributeError, attr\r\nAttributeError: temp_root\r\n```"},"comment":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/comments/203429486","html_url":"https://github.com/sunpy/sunpy/issues/1622#issuecomment-203429486","issue_url":"https://api.github.com/repos/sunpy/sunpy/issues/1622","id":203429486,"user":{"login":"pllim","id":2090236,"avatar_url":"https://avatars.githubusercontent.com/u/2090236?v=3","gravatar_id":"","url":"https://api.github.com/users/pllim","html_url":"https://github.com/pllim","followers_url":"https://api.github.com/users/pllim/followers","following_url":"https://api.github.com/users/pllim/following{/other_user}","gists_url":"https://api.github.com/users/pllim/gists{/gist_id}","starred_url":"https://api.github.com/users/pllim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pllim/subscriptions","organizations_url":"https://api.github.com/users/pllim/orgs","repos_url":"https://api.github.com/users/pllim/repos","events_url":"https://api.github.com/users/pllim/events{/privacy}","received_events_url":"https://api.github.com/users/pllim/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T13:22:15Z","updated_at":"2016-03-30T13:22:15Z","body":"@Cadair , I pulled the template off GitHub yesterday, so pretty sure it is master. My suspicion (as I thought about it before I fell asleep; yes, I have no life) is that maybe some of the subpackage directories are missing `tests` folders. I'll see if that is the case today... Will keep you updated."}}