{"action":"created","issue":{"url":"https://api.github.com/repos/ska-sa/meqtrees-cattery/issues/86","repository_url":"https://api.github.com/repos/ska-sa/meqtrees-cattery","labels_url":"https://api.github.com/repos/ska-sa/meqtrees-cattery/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/ska-sa/meqtrees-cattery/issues/86/comments","events_url":"https://api.github.com/repos/ska-sa/meqtrees-cattery/issues/86/events","html_url":"https://github.com/ska-sa/meqtrees-cattery/issues/86","id":381107175,"node_id":"MDU6SXNzdWUzODExMDcxNzU=","number":86,"title":"cannot import TiggerSkyModel because of astropy 2.0.4?","user":{"login":"lord-blueberry","id":1262464,"node_id":"MDQ6VXNlcjEyNjI0NjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1262464?v=4","gravatar_id":"","url":"https://api.github.com/users/lord-blueberry","html_url":"https://github.com/lord-blueberry","followers_url":"https://api.github.com/users/lord-blueberry/followers","following_url":"https://api.github.com/users/lord-blueberry/following{/other_user}","gists_url":"https://api.github.com/users/lord-blueberry/gists{/gist_id}","starred_url":"https://api.github.com/users/lord-blueberry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lord-blueberry/subscriptions","organizations_url":"https://api.github.com/users/lord-blueberry/orgs","repos_url":"https://api.github.com/users/lord-blueberry/repos","events_url":"https://api.github.com/users/lord-blueberry/events{/privacy}","received_events_url":"https://api.github.com/users/lord-blueberry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-15T10:57:16Z","updated_at":"2018-11-17T12:04:05Z","closed_at":null,"author_association":"NONE","body":"I can reproduce this behaviour in a clean 18.04 install. After adding the KERN repo, I use:\r\n```\r\nsudo apt-get install python\r\nsudo apt-get install meqtrees\r\nsudo apt-get install python-astropy\r\n```\r\nIt installs astropy version 2.0.4-4 and meqtrees\r\n\r\nWhen using the meqtree browser, turbo-sim.py fails to load tigger with the following stack trace:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/Cattery/Siamese/turbo-sim.py\", line 80, in <module>\r\n    models.insert(0,TiggerSkyModel());\r\n  File \"/usr/lib/python2.7/dist-packages/Cattery/Siamese/OMS/tigger_lsm.py\", line 44, in TiggerSkyModel\r\n    classobj = importTigger(verbose=verbose);\r\n  File \"/usr/lib/python2.7/dist-packages/Cattery/Siamese/OMS/tigger_lsm.py\", line 14, in importTigger\r\n    import Tigger.SiameseInterface\r\n  File \"/usr/lib/python2.7/dist-packages/Tigger/SiameseInterface.py\", line 49, in <module>\r\n    from Tigger.Models.Formats import ModelHTML\r\n  File \"/usr/lib/python2.7/dist-packages/Tigger/Models/Formats/ModelHTML.py\", line 39, in <module>\r\n    from Tigger.Models import SkyModel\r\n  File \"/usr/lib/python2.7/dist-packages/Tigger/Models/SkyModel.py\", line 32, in <module>\r\n    from Tigger.Coordinates import angular_dist_pos_angle,DEG\r\n  File \"/usr/lib/python2.7/dist-packages/Tigger/Coordinates.py\", line 62, in <module>\r\n    from astLib.astWCS import WCS\r\n  File \"/usr/lib/python2.7/dist-packages/astLib/astWCS.py\", line 27, in <module>\r\n    from astropy.io import fits as pyfits\r\n  File \"/usr/lib/python2.7/dist-packages/astropy/__init__.py\", line 116, in <module>\r\n    _check_numpy()\r\n  File \"/usr/lib/python2.7/dist-packages/astropy/__init__.py\", line 105, in _check_numpy\r\n    requirement_met = minversion(numpy, __minimum_numpy_version__)\r\n  File \"/usr/lib/python2.7/dist-packages/astropy/utils/introspection.py\", line 156, in minversion\r\n    from pkg_resources import parse_version\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py\", line 50, in <module>\r\n    from pkg_resources.extern import six\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources/extern/__init__.py\", line 44, in load_module\r\n    mod = sys.modules[extant]\r\nAttributeError: 'NoneType' object has no attribute 'modules'\r\n```\r\nThis seems related to the issue reported here: [https://github.com/ska-sa/tigger/issues/74](https://github.com/ska-sa/tigger/issues/74) . But now with astropy/numpy as the culprit, as far as I can tell.\r\n\r\nI've found an ugly hack for __init__.py, which is inserting `import sys` to line 43. It \"fixes\" the issue in pkg_resources, but fails later on the astropy package with the trace:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/Cattery/Siamese/turbo-sim.py\", line 80, in <module>\r\n    models.insert(0,TiggerSkyModel());\r\n  File \"/usr/lib/python2.7/dist-packages/Cattery/Siamese/OMS/tigger_lsm.py\", line 44, in TiggerSkyModel\r\n    classobj = importTigger(verbose=verbose);\r\n  File \"/usr/lib/python2.7/dist-packages/Cattery/Siamese/OMS/tigger_lsm.py\", line 14, in importTigger\r\n    import Tigger.SiameseInterface\r\n  File \"/usr/lib/python2.7/dist-packages/Tigger/SiameseInterface.py\", line 49, in <module>\r\n    from Tigger.Models.Formats import ModelHTML\r\n  File \"/usr/lib/python2.7/dist-packages/Tigger/Models/Formats/ModelHTML.py\", line 39, in <module>\r\n    from Tigger.Models import SkyModel\r\n  File \"/usr/lib/python2.7/dist-packages/Tigger/Models/SkyModel.py\", line 32, in <module>\r\n    from Tigger.Coordinates import angular_dist_pos_angle,DEG\r\n  File \"/usr/lib/python2.7/dist-packages/Tigger/Coordinates.py\", line 62, in <module>\r\n    from astLib.astWCS import WCS\r\n  File \"/usr/lib/python2.7/dist-packages/astLib/astWCS.py\", line 27, in <module>\r\n    from astropy.io import fits as pyfits\r\n  File \"/usr/lib/python2.7/dist-packages/astropy/__init__.py\", line 287, in <module>\r\n    log = _init_log()\r\n  File \"/usr/lib/python2.7/dist-packages/astropy/logger.py\", line 100, in _init_log\r\n    log._set_defaults()\r\n  File \"/usr/lib/python2.7/dist-packages/astropy/logger.py\", line 484, in _set_defaults\r\n    self.disable_warnings_logging()\r\n  File \"/usr/lib/python2.7/dist-packages/astropy/logger.py\", line 253, in disable_warnings_logging\r\n    if warnings.showwarning != self._showwarning:\r\nAttributeError: 'NoneType' object has no attribute 'showwarning'\r\n```\r\nSomething seems royally screwed. Did I install everything correctly?"},"comment":{"url":"https://api.github.com/repos/ska-sa/meqtrees-cattery/issues/comments/439611728","html_url":"https://github.com/ska-sa/meqtrees-cattery/issues/86#issuecomment-439611728","issue_url":"https://api.github.com/repos/ska-sa/meqtrees-cattery/issues/86","id":439611728,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTYxMTcyOA==","user":{"login":"sjperkins","id":3530212,"node_id":"MDQ6VXNlcjM1MzAyMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3530212?v=4","gravatar_id":"","url":"https://api.github.com/users/sjperkins","html_url":"https://github.com/sjperkins","followers_url":"https://api.github.com/users/sjperkins/followers","following_url":"https://api.github.com/users/sjperkins/following{/other_user}","gists_url":"https://api.github.com/users/sjperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/sjperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjperkins/subscriptions","organizations_url":"https://api.github.com/users/sjperkins/orgs","repos_url":"https://api.github.com/users/sjperkins/repos","events_url":"https://api.github.com/users/sjperkins/events{/privacy}","received_events_url":"https://api.github.com/users/sjperkins/received_events","type":"User","site_admin":false},"created_at":"2018-11-17T12:04:05Z","updated_at":"2018-11-17T12:04:05Z","author_association":"MEMBER","body":"See my comments in the montblanc issue\n\nOn Sat, 17 Nov 2018, 13:58 Oleg Smirnov <notifications@github.com wrote:\n\n> Yeah it does smell like ska-sa/tigger#74\n> <https://github.com/ska-sa/tigger/issues/74>. @gijzelaerr\n> <https://github.com/gijzelaerr> @sjperkins <https://github.com/sjperkins>\n> any comments? This is some kind of python2/3 shizzle going badly wrong.\n>\n> Feeling very astropy-irritated just now 😠 See this too:\n> ska-sa/montblanc#261 <https://github.com/ska-sa/montblanc/issues/261>\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/ska-sa/meqtrees-cattery/issues/86#issuecomment-439611417>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ADXd5HANE4-kHTev1AFged4nQOUM_jHuks5uv_n8gaJpZM4Yfjqa>\n> .\n>\n"}}
{"actor":{"display_login":"sjperkins"}}