Closed taldcroft closed 11 years ago
Can you install astroquery from a clean clone and let me know the full output? This is something I thought I'd fixed.
Here you go. Fresh virtualenv, fresh astropy-rc1, fresh git clone astroquery:
(astropy-rc1)weevil$ python setup.py install
Freezing version number to astroquery/version.py
running install
install_dir /Users/aldcroft/vpy/astropy-rc1/lib/python2.7/site-packages/
running bdist_egg
running egg_info
creating astroquery.egg-info
writing requirements to astroquery.egg-info/requires.txt
writing astroquery.egg-info/PKG-INFO
writing top-level names to astroquery.egg-info/top_level.txt
writing dependency_links to astroquery.egg-info/dependency_links.txt
writing requirements to astroquery.egg-info/requires.txt
writing astroquery.egg-info/PKG-INFO
writing top-level names to astroquery.egg-info/top_level.txt
writing dependency_links to astroquery.egg-info/dependency_links.txt
writing manifest file 'astroquery.egg-info/SOURCES.txt'
reading manifest file 'astroquery.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.pyx' under directory 'astroquery'
warning: no files found matching '*.c' under directory 'astroquery'
warning: no previously-included files found matching '*.pyc'
warning: no previously-included files found matching '*.o'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'build'
writing manifest file 'astroquery.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.5-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/astroquery
copying astroquery/__init__.py -> build/lib/astroquery
copying astroquery/conftest.py -> build/lib/astroquery
copying astroquery/version.py -> build/lib/astroquery
creating build/lib/astroquery/besancon
copying astroquery/besancon/__init__.py -> build/lib/astroquery/besancon
copying astroquery/besancon/besancon.py -> build/lib/astroquery/besancon
copying astroquery/besancon/besancon_reader.py -> build/lib/astroquery/besancon
creating build/lib/astroquery/extern
copying astroquery/extern/__init__.py -> build/lib/astroquery/extern
creating build/lib/astroquery/irsa
copying astroquery/irsa/__init__.py -> build/lib/astroquery/irsa
copying astroquery/irsa/irsa.py -> build/lib/astroquery/irsa
creating build/lib/astroquery/magpis
copying astroquery/magpis/__init__.py -> build/lib/astroquery/magpis
copying astroquery/magpis/magpis.py -> build/lib/astroquery/magpis
creating build/lib/astroquery/ned
copying astroquery/ned/__init__.py -> build/lib/astroquery/ned
copying astroquery/ned/nedpy.py -> build/lib/astroquery/ned
creating build/lib/astroquery/nist
copying astroquery/nist/__init__.py -> build/lib/astroquery/nist
copying astroquery/nist/atomic_lines.py -> build/lib/astroquery/nist
creating build/lib/astroquery/nrao
copying astroquery/nrao/__init__.py -> build/lib/astroquery/nrao
copying astroquery/nrao/nrao_image_archive.py -> build/lib/astroquery/nrao
creating build/lib/astroquery/simbad
copying astroquery/simbad/__init__.py -> build/lib/astroquery/simbad
copying astroquery/simbad/sim_parameters.py -> build/lib/astroquery/simbad
copying astroquery/simbad/sim_queries.py -> build/lib/astroquery/simbad
copying astroquery/simbad/sim_result.py -> build/lib/astroquery/simbad
copying astroquery/simbad/sim_votable.py -> build/lib/astroquery/simbad
creating build/lib/astroquery/splatalogue
copying astroquery/splatalogue/__init__.py -> build/lib/astroquery/splatalogue
copying astroquery/splatalogue/splatalogue.py -> build/lib/astroquery/splatalogue
creating build/lib/astroquery/tests
copying astroquery/tests/__init__.py -> build/lib/astroquery/tests
copying astroquery/tests/test_besancon.py -> build/lib/astroquery/tests
copying astroquery/tests/test_irsa.py -> build/lib/astroquery/tests
copying astroquery/tests/test_magpis.py -> build/lib/astroquery/tests
copying astroquery/tests/test_ned.py -> build/lib/astroquery/tests
copying astroquery/tests/test_nist.py -> build/lib/astroquery/tests
copying astroquery/tests/test_nrao.py -> build/lib/astroquery/tests
copying astroquery/tests/test_simbad.py -> build/lib/astroquery/tests
copying astroquery/tests/test_ukidss.py -> build/lib/astroquery/tests
copying astroquery/tests/test_vizier.py -> build/lib/astroquery/tests
creating build/lib/astroquery/ukidss
copying astroquery/ukidss/__init__.py -> build/lib/astroquery/ukidss
copying astroquery/ukidss/ukidss.py -> build/lib/astroquery/ukidss
creating build/lib/astroquery/utils
copying astroquery/utils/__init__.py -> build/lib/astroquery/utils
copying astroquery/utils/progressbar.py -> build/lib/astroquery/utils
creating build/lib/astroquery/vizier
copying astroquery/vizier/__init__.py -> build/lib/astroquery/vizier
copying astroquery/vizier/vizier.py -> build/lib/astroquery/vizier
creating build/lib/astroquery/data
copying astroquery/data/README.rst -> build/lib/astroquery/data
generating default astroquery.cfg file
Generation of default configuration item failed! Stdout and stderr are shown below.
Stdout:
ERROR: ImportError: No module named bs4 [unknown]
Stderr:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/astropy/config/configuration.py", line 625, in generate_all_config_items
for cfgitem in get_config_items(nm).itervalues():
File "/Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/astropy/config/configuration.py", line 512, in get_config_items
__import__(packageormod)
File "/Users/aldcroft/astroquery/build/lib/astroquery/nist/__init__.py", line 1, in <module>
from .atomic_lines import *
File "/Users/aldcroft/astroquery/build/lib/astroquery/nist/atomic_lines.py", line 8, in <module>
import bs4
ImportError: No module named bs4
creating build/bdist.macosx-10.5-x86_64
creating build/bdist.macosx-10.5-x86_64/egg
creating build/bdist.macosx-10.5-x86_64/egg/astroquery
copying build/lib/astroquery/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery
copying build/lib/astroquery/__init__.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/besancon
copying build/lib/astroquery/besancon/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/besancon
copying build/lib/astroquery/besancon/__init__.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/besancon
copying build/lib/astroquery/besancon/besancon.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/besancon
copying build/lib/astroquery/besancon/besancon.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/besancon
copying build/lib/astroquery/besancon/besancon_reader.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/besancon
copying build/lib/astroquery/besancon/besancon_reader.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/besancon
copying build/lib/astroquery/conftest.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery
copying build/lib/astroquery/conftest.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/data
copying build/lib/astroquery/data/README.rst -> build/bdist.macosx-10.5-x86_64/egg/astroquery/data
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/extern
copying build/lib/astroquery/extern/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/extern
copying build/lib/astroquery/extern/__init__.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/extern
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/irsa
copying build/lib/astroquery/irsa/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/irsa
copying build/lib/astroquery/irsa/__init__.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/irsa
copying build/lib/astroquery/irsa/irsa.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/irsa
copying build/lib/astroquery/irsa/irsa.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/irsa
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/magpis
copying build/lib/astroquery/magpis/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/magpis
copying build/lib/astroquery/magpis/__init__.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/magpis
copying build/lib/astroquery/magpis/magpis.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/magpis
copying build/lib/astroquery/magpis/magpis.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/magpis
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/ned
copying build/lib/astroquery/ned/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/ned
copying build/lib/astroquery/ned/__init__.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/ned
copying build/lib/astroquery/ned/nedpy.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/ned
copying build/lib/astroquery/ned/nedpy.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/ned
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/nist
copying build/lib/astroquery/nist/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/nist
copying build/lib/astroquery/nist/__init__.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/nist
copying build/lib/astroquery/nist/atomic_lines.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/nist
copying build/lib/astroquery/nist/atomic_lines.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/nist
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/nrao
copying build/lib/astroquery/nrao/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/nrao
copying build/lib/astroquery/nrao/nrao_image_archive.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/nrao
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad
copying build/lib/astroquery/simbad/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad
copying build/lib/astroquery/simbad/sim_parameters.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad
copying build/lib/astroquery/simbad/sim_queries.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad
copying build/lib/astroquery/simbad/sim_result.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad
copying build/lib/astroquery/simbad/sim_votable.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/splatalogue
copying build/lib/astroquery/splatalogue/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/splatalogue
copying build/lib/astroquery/splatalogue/splatalogue.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/splatalogue
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
copying build/lib/astroquery/tests/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
copying build/lib/astroquery/tests/test_besancon.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
copying build/lib/astroquery/tests/test_irsa.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
copying build/lib/astroquery/tests/test_magpis.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
copying build/lib/astroquery/tests/test_ned.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
copying build/lib/astroquery/tests/test_nist.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
copying build/lib/astroquery/tests/test_nrao.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
copying build/lib/astroquery/tests/test_simbad.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
copying build/lib/astroquery/tests/test_ukidss.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
copying build/lib/astroquery/tests/test_vizier.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/tests
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/ukidss
copying build/lib/astroquery/ukidss/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/ukidss
copying build/lib/astroquery/ukidss/ukidss.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/ukidss
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/utils
copying build/lib/astroquery/utils/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/utils
copying build/lib/astroquery/utils/__init__.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/utils
copying build/lib/astroquery/utils/progressbar.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/utils
copying build/lib/astroquery/utils/progressbar.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery/utils
copying build/lib/astroquery/version.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery
copying build/lib/astroquery/version.pyc -> build/bdist.macosx-10.5-x86_64/egg/astroquery
creating build/bdist.macosx-10.5-x86_64/egg/astroquery/vizier
copying build/lib/astroquery/vizier/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/vizier
copying build/lib/astroquery/vizier/vizier.py -> build/bdist.macosx-10.5-x86_64/egg/astroquery/vizier
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/nrao/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/nrao/nrao_image_archive.py to nrao_image_archive.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad/sim_parameters.py to sim_parameters.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad/sim_queries.py to sim_queries.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad/sim_result.py to sim_result.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/simbad/sim_votable.py to sim_votable.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/splatalogue/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/splatalogue/splatalogue.py to splatalogue.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/tests/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/tests/test_besancon.py to test_besancon.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/tests/test_irsa.py to test_irsa.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/tests/test_magpis.py to test_magpis.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/tests/test_ned.py to test_ned.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/tests/test_nist.py to test_nist.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/tests/test_nrao.py to test_nrao.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/tests/test_simbad.py to test_simbad.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/tests/test_ukidss.py to test_ukidss.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/tests/test_vizier.py to test_vizier.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/ukidss/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/ukidss/ukidss.py to ukidss.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/vizier/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/astroquery/vizier/vizier.py to vizier.pyc
creating build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
installing scripts to build/bdist.macosx-10.5-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-2.7
copying scripts/README.rst -> build/scripts-2.7
changing mode of build/scripts-2.7/README.rst from 644 to 755
creating build/bdist.macosx-10.5-x86_64/egg/EGG-INFO/scripts
copying build/scripts-2.7/README.rst -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.macosx-10.5-x86_64/egg/EGG-INFO/scripts/README.rst to 755
copying astroquery.egg-info/PKG-INFO -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying astroquery.egg-info/SOURCES.txt -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying astroquery.egg-info/dependency_links.txt -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying astroquery.egg-info/not-zip-safe -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying astroquery.egg-info/requires.txt -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying astroquery.egg-info/top_level.txt -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
creating dist
creating 'dist/astroquery-0.0.dev226-py2.7.egg' and adding 'build/bdist.macosx-10.5-x86_64/egg' to it
removing 'build/bdist.macosx-10.5-x86_64/egg' (and everything under it)
Processing astroquery-0.0.dev226-py2.7.egg
creating /Users/aldcroft/vpy/astropy-rc1/lib/python2.7/site-packages/astroquery-0.0.dev226-py2.7.egg
Extracting astroquery-0.0.dev226-py2.7.egg to /Users/aldcroft/vpy/astropy-rc1/lib/python2.7/site-packages
Adding astroquery 0.0.dev226 to easy-install.pth file
Installing README.rst script to /Users/aldcroft/vpy/astropy-rc1/bin
Installed /Users/aldcroft/vpy/astropy-rc1/lib/python2.7/site-packages/astroquery-0.0.dev226-py2.7.egg
Processing dependencies for astroquery==0.0.dev226
Searching for astropy==0.2rc1
Best match: astropy 0.2rc1
Adding astropy 0.2rc1 to easy-install.pth file
Using /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages
Searching for numpy==1.6.2
Best match: numpy 1.6.2
numpy 1.6.2 is already the active version in easy-install.pth
Using /Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages
Finished processing dependencies for astroquery==0.0.dev226
(astropy-rc1)weevil$
Ah, this is the culprit:
ERROR: ImportError: No module named bs4 [unknown]
Stderr:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/astropy/config/configuration.py", line 625, in generate_all_config_items
for cfgitem in get_config_items(nm).itervalues():
File "/Library/Frameworks/EPD64.framework/Versions/7.0/lib/python2.7/site-packages/astropy/config/configuration.py", line 512, in get_config_items
__import__(packageormod)
File "/Users/aldcroft/astroquery/build/lib/astroquery/nist/__init__.py", line 1, in <module>
from .atomic_lines import *
File "/Users/aldcroft/astroquery/build/lib/astroquery/nist/atomic_lines.py", line 8, in <module>
import bs4
ImportError: No module named bs4
The bs4
import should probably be inside query_line_html
to avoid import errors if the dependency is not installed (the config file generation needs to import all files, so it shouldn't trip up on optional dependencies).
I'm out of time for this week, so if someone else wants to fix this, please feel free to!
I think that PR fixed this issue; reopen if that's not true.
I installed the latest astroquery master with
python setup.py install
to an astropy-rc1 virtualenv. I then got a warning upon import:I was not importing from source.