You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 11, 2023. It is now read-only.
Well right now I don't get very far. When I try to run ./setup.py build it sits there for a long time and then I get
Traceback (most recent call last):
File "./setup.py", line 37, in <module>
__import__(PACKAGENAME)
File "/internal/1/root/src/stsynphot/refac-modeling/stsynphot/__init__.py", line 14, in <module>
from .spectrum import band, ebmvx, Vega
File "/internal/1/root/src/stsynphot/refac-modeling/stsynphot/spectrum.py", line 22, in <module>
from synphot.models import Empirical1D
ImportError: No module named models
This is using the latest synphot package. When I do import synphot.models in the Python command-line I also get an import error as well as this message:
INFO: synphot config is searching for the most current spectra files. Please be patient... [synphot]
I fixed it by changing setup.py package data definition from 'data/*' to 'data/*.*' (and in my case, also added 'data/wavecats/*'). Because 'data/*' glob includes 'data/wavecats/' directory itself.
Activity
embray commentedon Apr 28, 2014
Could you link to a branch or something with this exact setup and code hierarchy? It would be easier to check what's going on that way.
pllim commentedon Apr 28, 2014
@embray , here it is https://github.com/pllim/stsynphot/tree/refac-modeling
embray commentedon Apr 28, 2014
Well right now I don't get very far. When I try to run
./setup.py buildit sits there for a long time and then I getThis is using the latest synphot package. When I do
import synphot.modelsin the Python command-line I also get an import error as well as this message:Should it be doing that when running setup.py?
pllim commentedon Apr 30, 2014
Update: https://github.com/spacetelescope/pysynphot should be fully functional now but it still needs
jwstlib.modelingpllim commentedon May 1, 2014
I fixed it by changing
setup.pypackage data definition from'data/*'to'data/*.*'(and in my case, also added'data/wavecats/*'). Because'data/*'glob includes'data/wavecats/'directory itself.