Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modeleditor fails to load #12

Open
joeastro opened this issue May 21, 2018 · 2 comments
Open

modeleditor fails to load #12

joeastro opened this issue May 21, 2018 · 2 comments
Assignees

Comments

@joeastro
Copy link
Contributor

Under the 'ModelEditor' section of the notebook Generating_XML_Models, the command "%system modeleditor" fails to open the tool. The error message indicates that python cannot import the ds9 module.

Currently investigating further.

@joeastro
Copy link
Contributor Author

OK, I found the issue and figured out a solution. The source of the problem is that ds9, which modeleditor uses, is installed a bit differently in the Docker container. We are using pyds9 in the container instead of plain-old ds9, which makes the following module fail when it tries to import the latter:

/home/astrosoft/sciencetools/glast/x86_64-unknown-linux-gnu-libc2.12/lib/python/DS9Connector.py

So, the best solution seems to be editing DS9Connector.py to look for pyds9, like so:

change this line:
from ds9 import *

to this:
try:
from ds9 import *
except Exception:
from pyds9 import *

Now modeleditor opens without issue. A patch file seems to be the best way to address this (i.e. overwrite the existing DS9Connector.py file with a fixed one).

@kialio kialio assigned not-kimiko and unassigned kialio May 24, 2018
@kialio
Copy link
Member

kialio commented May 24, 2018

I thought we weren't really developing model editor anymore. But tagging @not-kimiko anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants