{"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":"closed","locked":false,"assignee":{"login":"gijzelaerr","id":326308,"node_id":"MDQ6VXNlcjMyNjMwOA==","avatar_url":"https://avatars1.githubusercontent.com/u/326308?v=4","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},"assignees":[{"login":"gijzelaerr","id":326308,"node_id":"MDQ6VXNlcjMyNjMwOA==","avatar_url":"https://avatars1.githubusercontent.com/u/326308?v=4","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}],"milestone":null,"comments":9,"created_at":"2018-11-15T10:57:16Z","updated_at":"2018-12-21T11:21:39Z","closed_at":"2018-12-21T11:21:39Z","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/449363070","html_url":"https://github.com/ska-sa/meqtrees-cattery/issues/86#issuecomment-449363070","issue_url":"https://api.github.com/repos/ska-sa/meqtrees-cattery/issues/86","id":449363070,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTM2MzA3MA==","user":{"login":"gijzelaerr","id":326308,"node_id":"MDQ6VXNlcjMyNjMwOA==","avatar_url":"https://avatars1.githubusercontent.com/u/326308?v=4","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},"created_at":"2018-12-21T11:21:39Z","updated_at":"2018-12-21T11:21:39Z","author_association":"MEMBER","body":"This should be solved with the release of tigger-lsm 1.5.0 https://github.com/ska-sa/tigger-lsm/releases/tag/1.5.0 and kittens 1.4.0 https://github.com/ska-sa/kittens/releases/tag/v1.4.0.\r\n\r\nplease let me know if you still experience issues."}}
{"actor":{"display_login":"gijzelaerr"}}