spacetelescope / cubeviz

Data analysis package for cubes. https://cubeviz.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
15 stars 25 forks source link

Startup error on Windows #587

Closed zonca closed 3 years ago

zonca commented 5 years ago

I am testing on a Windows machine, glue works fine, but I tried installing cubeviz both with conda and pip but in both cases I have a startup error:

Nonetype has no attribute write

related to:

 self._stderr_original.write(message)
Click for full traceback ``` Traceback (most recent call last): File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\glue\utils\qt\decorators.py", line 63, in decorated return f(*args, **kwargs) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\cubeviz\cubeviz.py", line 157, in main app = create_app(datafiles, data_configs, data_configs_show) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\cubeviz\cubeviz.py", line 116, in create_app ga.run_startup_action('cubeviz') File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\glue\app\qt\application.py", line 354, in run_startup_action startup_action.members[name](self.session, self.data_collection) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\cubeviz\startup.py", line 11, in cubeviz_setup _manager = CubevizManager(session) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\cubeviz\listener.py", line 22, in __init__ self._empty_layout = self._app.add_fixed_layout_tab(CubeVizLayout) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\glue\app\qt\application.py", line 965, in add_fixed_layout_tab tab = tab_cls(session=self.session) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\cubeviz\layout.py", line 155, in __init__ SpecvizDataViewer(self.session, layout=self, include_line=True), File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\glue\viewers\common\qt\data_viewer.py", line 29, in __call__ obj = type.__call__(cls, *args, **kwargs) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\specviz\third_party\glue\viewer.py", line 296, in __init__ self.current_workspace = Workspace() File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\specviz\widgets\workspace.py", line 128, in __init__ plugin.mount(self) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\specviz\core\plugin.py", line 151, in mount plugin(workspace, filt=filt) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\specviz\core\plugin.py", line 189, in cls_wrapper plugin = cls() File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\specviz\plugins\line_labels\linelists_window.py", line 125, in __init__ linelist.populate_linelists_cache() File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\specviz\plugins\line_labels\linelist.py", line 107, in populate_linelists_cache linelist = get_from_file(linelist_path, yaml_filename) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\specviz\plugins\line_labels\linelist.py", line 74, in get_from_file yaml_object = yaml.load(open(filename, 'r')) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\yaml\__init__.py", line 109, in load load_warning('load') File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\yaml\__init__.py", line 55, in load_warning warnings.warn(message, YAMLLoadWarning, stacklevel=3) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\warnings.py", line 110, in _showwarnmsg msg.file, msg.line) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\astropy\logger.py", line 170, in _showwarning return self._showwarning_orig(*args, **kwargs) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\warnings.py", line 13, in showwarning _showwarnmsg_impl(msg) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\warnings.py", line 30, in _showwarnmsg_impl file.write(text) File "c:\users\zonca\anaconda3\envs\cubeviz030\lib\site-packages\glue\app\qt\application.py", line 152, in write self._stderr_original.write(message) AttributeError: 'NoneType' object has no attribute 'write' ```

Do you have any suggestion on how to fix this?

Glueviz version information:

Glue: 0.14.2
Python: 3.7.3
PyQt5: PyQt: 5.11.3 - Qt: 5.11.2
PySide2: Not installed
qtpy: 1.7.0
setuptools: 41.0.1
numpy: 1.16.3
bottleneck: 1.2.1
matplotlib: 3.0.3
pandas: 0.24.2
astropy: 3.1.2
dill: 0.2.9
h5py: 2.9.0
xlrd: 1.2.0
mpl-scatter-density: 0.5
cubeviz: 0.3.0
glue-core: 0.14.2
specviz: 0.7.0
IPython: 7.5.0
qtconsole: 4.4.3
ipykernel: 5.1.0
traitlets: 4.3.2
pygments: 2.3.1
pyzmq: 18.0.1
scipy: 1.2.1
scikit-image: Not installed
PyAVM: Not installed
spectral-cube: 0.4.3
astrodendro: Not installed
mock: Not installed
pytest: 4.4.1
plotly: Not installed