{"action":"created","issue":{"url":"https://api.github.com/repos/aplpy/aplpy/issues/248","labels_url":"https://api.github.com/repos/aplpy/aplpy/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/aplpy/aplpy/issues/248/comments","events_url":"https://api.github.com/repos/aplpy/aplpy/issues/248/events","html_url":"https://github.com/aplpy/aplpy/issues/248","id":59807326,"number":248,"title":"Problems running inside docker container and using python3","user":{"login":"gijzelaerr","id":326308,"avatar_url":"https://avatars.githubusercontent.com/u/326308?v=3","gravatar_id":"","url":"https://api.github.com/users/gijzelaerr","html_url":"https://github.com/gijzelaerr","followers_url":"https://api.github.com/users/gijzelaerr/followers","following_url":"https://api.github.com/users/gijzelaerr/following{/other_user}","gists_url":"https://api.github.com/users/gijzelaerr/gists{/gist_id}","starred_url":"https://api.github.com/users/gijzelaerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gijzelaerr/subscriptions","organizations_url":"https://api.github.com/users/gijzelaerr/orgs","repos_url":"https://api.github.com/users/gijzelaerr/repos","events_url":"https://api.github.com/users/gijzelaerr/events{/privacy}","received_events_url":"https://api.github.com/users/gijzelaerr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T14:47:27Z","updated_at":"2015-03-04T14:53:26Z","closed_at":null,"body":"Hi! i'm using a aplpy in a django project using python3, which works fine, but as soon as I try to run this inside a docker container with WSGI I run into troubles. I get the idea something goes wrong with the stdin handling in that case, but I'm not sure. I've been trying to replicate the problem in a more simple case, but have not been successful yet. Will update this issue if I know more.\r\n```\r\nInternal Server Error: /\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py\", line 364, in urlconf_module\r\n    return self._urlconf_module\r\nAttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module'\r\ndjango_1 |\r\nDuring handling of the above exception, another exception occurred:\r\ndjango_1 |\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py\", line 98, in get_response\r\n    resolver_match = resolver.resolve(request.path_info)\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py\", line 343, in resolve\r\n    for pattern in self.url_patterns:\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py\", line 372, in url_patterns\r\n    patterns = getattr(self.urlconf_module, \"urlpatterns\", self.urlconf_module)\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py\", line 366, in urlconf_module\r\n    self._urlconf_module = import_module(self.urlconf_name)\r\n  File \"/usr/lib/python3.4/importlib/__init__.py\", line 109, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 2231, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 2214, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 2203, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 1200, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 1129, in _exec\r\n  File \"<frozen importlib._bootstrap>\", line 1448, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 321, in _call_with_frames_removed\r\n  File \"./rodrigues/urls.py\", line 16, in <module>\r\n    viewer_url = url(r'^viewer/', include('viewer.urls'))\r\n  File \"/usr/local/lib/python3.4/dist-packages/django/conf/urls/__init__.py\", line 28, in include\r\n    urlconf_module = import_module(urlconf_module)\r\n  File \"/usr/lib/python3.4/importlib/__init__.py\", line 109, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 2231, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 2214, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 2203, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 1200, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 1129, in _exec\r\n  File \"<frozen importlib._bootstrap>\", line 1448, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 321, in _call_with_frames_removed\r\n  File \"./viewer/urls.py\", line 4, in <module>\r\n    from .views import FitsView,  ListDirView, SomethingView\r\n  File \"./viewer/views.py\", line 16, in <module>\r\n    import aplpy\r\n  File \"/usr/local/lib/python3.4/dist-packages/aplpy/__init__.py\", line 9, in <module>\r\n    from ._astropy_init import *\r\n  File \"/usr/local/lib/python3.4/dist-packages/aplpy/_astropy_init.py\", line 17, in <module>\r\n    from .version import version as __version__\r\n  File \"/usr/local/lib/python3.4/dist-packages/aplpy/version.py\", line 151, in <module>\r\n    version = update_git_devstr(_last_generated_version)\r\n  File \"/usr/local/lib/python3.4/dist-packages/aplpy/version.py\", line 34, in update_git_devstr\r\n    devstr = get_git_devstr(sha=True, show_warning=False, path=path)\r\n  File \"/usr/local/lib/python3.4/dist-packages/aplpy/version.py\", line 144, in get_git_devstr\r\n    return _decode_stdio(stdout)[:40]\r\n  File \"/usr/local/lib/python3.4/dist-packages/aplpy/version.py\", line 17, in _decode_stdio\r\n    text = stream.decode(stdio_encoding)\r\nAttributeError: 'str' object has no attribute 'decode'\r\n```"},"comment":{"url":"https://api.github.com/repos/aplpy/aplpy/issues/comments/77171193","html_url":"https://github.com/aplpy/aplpy/issues/248#issuecomment-77171193","issue_url":"https://api.github.com/repos/aplpy/aplpy/issues/248","id":77171193,"user":{"login":"astrofrog","id":314716,"avatar_url":"https://avatars.githubusercontent.com/u/314716?v=3","gravatar_id":"","url":"https://api.github.com/users/astrofrog","html_url":"https://github.com/astrofrog","followers_url":"https://api.github.com/users/astrofrog/followers","following_url":"https://api.github.com/users/astrofrog/following{/other_user}","gists_url":"https://api.github.com/users/astrofrog/gists{/gist_id}","starred_url":"https://api.github.com/users/astrofrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrofrog/subscriptions","organizations_url":"https://api.github.com/users/astrofrog/orgs","repos_url":"https://api.github.com/users/astrofrog/repos","events_url":"https://api.github.com/users/astrofrog/events{/privacy}","received_events_url":"https://api.github.com/users/astrofrog/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T14:53:26Z","updated_at":"2015-03-04T14:53:26Z","body":"@gijzelaerr - this is an issue that I thought should be fixed in APLpy 1.0. Which version are you using?"}}