We need to be smarter about when to try and populate the dropdowns in the GUI that require PYSYN_CDBS to be set.
Traceback (most recent call last):
File "/usr/stsci/ssbx/python/bin/webbpsfgui", line 4, in <module>
__import__('pkg_resources').run_script('webbpsf==0.3.2', 'webbpsfgui')
File "/usr/stsci/ssbx/python/lib/python2.7/site-packages/pkg_resources.py", line 517, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/stsci/ssbx/python/lib/python2.7/site-packages/pkg_resources.py", line 1436, in run_script
exec(code, namespace, namespace)
File "/grp/hst/ssb/rhel6/ssbx/python/lib/python2.7/site-packages/webbpsf-0.3.2-py2.7.egg/EGG-INFO/scripts/webbpsfgui", line 6, in <module>
webbpsf.gui()
File "/usr/stsci/ssbx/python/lib/python2.7/site-packages/webbpsf-0.3.2-py2.7.egg/webbpsf/__init__.py", line 136, in gui
tkgui()
File "/usr/stsci/ssbx/python/lib/python2.7/site-packages/webbpsf-0.3.2-py2.7.egg/webbpsf/tkgui.py", line 875, in tkgui
gui = WebbPSF_GUI()
File "/usr/stsci/ssbx/python/lib/python2.7/site-packages/webbpsf-0.3.2-py2.7.egg/webbpsf/tkgui.py", line 57, in __init__
self._create_widgets()
File "/usr/stsci/ssbx/python/lib/python2.7/site-packages/webbpsf-0.3.2-py2.7.egg/webbpsf/tkgui.py", line 107, in _create_widgets
self._add_labeled_dropdown("SpType", lf, label=' Spectral Type:', values=poppy.specFromSpectralType("",return_list=True), default='G0V', width=25, position=(0,0), sticky='W')
File "/usr/stsci/ssbx/python/lib/python2.7/site-packages/poppy/utils.py", line 1012, in specFromSpectralType
if os.path.exists( os.path.join(os.getenv('PYSYN_CDBS'), 'grid', 'phoenix')):
File "/home/jlong/ssbvirt/ssbx-rhel6/lib/python2.7/posixpath.py", line 77, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
We need to be smarter about when to try and populate the dropdowns in the GUI that require PYSYN_CDBS to be set.