{"action":"created","issue":{"url":"https://api.github.com/repos/spacetelescope/imexam/issues/137","repository_url":"https://api.github.com/repos/spacetelescope/imexam","labels_url":"https://api.github.com/repos/spacetelescope/imexam/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/spacetelescope/imexam/issues/137/comments","events_url":"https://api.github.com/repos/spacetelescope/imexam/issues/137/events","html_url":"https://github.com/spacetelescope/imexam/issues/137","id":320117379,"number":137,"title":"ds9 not being registered","user":{"login":"KathleenLabrie","id":2152829,"avatar_url":"https://avatars3.githubusercontent.com/u/2152829?v=4","gravatar_id":"","url":"https://api.github.com/users/KathleenLabrie","html_url":"https://github.com/KathleenLabrie","followers_url":"https://api.github.com/users/KathleenLabrie/followers","following_url":"https://api.github.com/users/KathleenLabrie/following{/other_user}","gists_url":"https://api.github.com/users/KathleenLabrie/gists{/gist_id}","starred_url":"https://api.github.com/users/KathleenLabrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KathleenLabrie/subscriptions","organizations_url":"https://api.github.com/users/KathleenLabrie/orgs","repos_url":"https://api.github.com/users/KathleenLabrie/repos","events_url":"https://api.github.com/users/KathleenLabrie/events{/privacy}","received_events_url":"https://api.github.com/users/KathleenLabrie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-03T23:52:58Z","updated_at":"2018-05-09T19:52:39Z","closed_at":null,"author_association":"NONE","body":"I start ds9, I start Python.  Then import imexam, and list_active_ds9(), and nothing, no active sessions registered.\r\n\r\n```\r\n(geminiconda)  klabrie$ ds9&\r\n[1] 2881\r\n(geminiconda)  klabrie$ python\r\nPython 2.7.15 |Anaconda, Inc.| (default, May  1 2018, 18:37:05) \r\n[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import imexam\r\n>>> imexam.list_active_ds9()\r\nNo active sessions registered\r\n{}\r\n>>> \r\n>>> imexam.__version__\r\nu'0.8.0'\r\n```\r\n\r\nI've had it work too.  It seems to be random whether it works or not.  I haven't been able to find a pattern.\r\n\r\nThe conda environment is created as follow: `conda create -n geminiconda python=2.7 iraf-all pyraf-all stsci gemini`\r\n\r\nThe ds9 version is v7.5."},"comment":{"url":"https://api.github.com/repos/spacetelescope/imexam/issues/comments/387855606","html_url":"https://github.com/spacetelescope/imexam/issues/137#issuecomment-387855606","issue_url":"https://api.github.com/repos/spacetelescope/imexam/issues/137","id":387855606,"user":{"login":"sosey","id":503615,"avatar_url":"https://avatars3.githubusercontent.com/u/503615?v=4","gravatar_id":"","url":"https://api.github.com/users/sosey","html_url":"https://github.com/sosey","followers_url":"https://api.github.com/users/sosey/followers","following_url":"https://api.github.com/users/sosey/following{/other_user}","gists_url":"https://api.github.com/users/sosey/gists{/gist_id}","starred_url":"https://api.github.com/users/sosey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosey/subscriptions","organizations_url":"https://api.github.com/users/sosey/orgs","repos_url":"https://api.github.com/users/sosey/repos","events_url":"https://api.github.com/users/sosey/events{/privacy}","received_events_url":"https://api.github.com/users/sosey/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T19:52:39Z","updated_at":"2018-05-09T19:52:39Z","author_association":"MEMBER","body":"you're getting the xpa.h file probably because the cextern directory needs to be initialized after the repo pull. `git submodule update --init -- cextern/xpa` should do it. Then you can `python setup.py install`\r\n\r\nThat's a really old xpa, you should consider updating to be at 2.1.18, as shown here: `https://github.com/spacetelescope/imexam/tree/master/cextern`\r\n\r\nThere are multiple methods that the XPA can use to talk to the dS9 windows, the one that is working looks like it's using an `inet` socket, the other one looks likes it's using a unix local host (though I don't know why it's going into a qt directory) that filename that you see is the communication socket. You could try `setenv XPA_METHOD=inet` on the failing system, that may force it. ds9 should default to inet, local sockets are sometimes used when there is no internet connection. The xpa server prefers that all connections for active ds9 windows are of the same socket type.  `imexam` uses inet by default, but I imagine, if another xpaserver was started by a different program running a different type of connection, and one connected to the other, then it may have issues like you are seeing. \r\n\r\nwhere is the xpa pulling from for you? `which xpainfo`, that should be the environment you're expecting it from, and not a system folder higher on your path. "}}
{"actor":{"display_login":"sosey"}}