[AstroPy] SpecViz and SpecUtils

Nicholas Ross npross at roe.ac.uk
Mon Sep 2 08:53:54 EDT 2019


Dear All, 

I’m keen to starting using SpecViz and SpecUtils in my research analyses. 
I’ve followed the instructions at
	https://specviz.readthedocs.io/en/stable/installation.html

but when I come to run specviz on the command line, I get::

> specviz
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/specviz", line 11, in <module>
    load_entry_point('specviz==0.3.0', 'console_scripts', 'specviz')()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/specviz-0.3.0-py3.7.egg/specviz/__init__.py", line 17, in <module>
    from . import analysis
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/specviz-0.3.0-py3.7.egg/specviz/analysis/__init__.py", line 3, in <module>
    from .statistics import *
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/specviz-0.3.0-py3.7.egg/specviz/analysis/statistics.py", line 10, in <module>
    from ..core.data import Spectrum1DRef
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/specviz-0.3.0-py3.7.egg/specviz/core/data.py", line 15, in <module>
    from specutils.core.generic import Spectrum1DRef
ModuleNotFoundError: No module named ‘specutils.core'

However(!!) if I then do: 
	> ipython 
	In [1]: import specutils.core as core                                                                                                                                                                                                                
	WARNING: AstropyDeprecationWarning: astropy.extern.six will be removed in 4.0, use the six module directly if it is still needed [astropy.extern.six]
	In [2]: from specutils.core.generic import Spectrum1DRef                                                                                                                                                                                            
	In [3]:  


— it definitely seems as if I have specutils installed. 

Do we know what might be going on here??!!

Many thanks as usual, 
Nic


====================================
  Dr. Nicholas P. Ross
  STFC Ernest Rutherford Fellow
  Institute for Astronomy
  University of Edinburgh
  Royal Observatory, Blackford Hill 
  Edinburgh EH9 3HJ, United Kingdom
  +44 (0)131-668 8351
  d80b2t.github.io
====================================





More information about the AstroPy mailing list