Error in astropy.test()
See original GitHub issueHi,
I ran the test function and got things below. How can I help with my astropy? Thanks!
================================================================== ERRORS ==================================================================
______________________________ ERROR collecting .local/lib/python2.7/site-packages/astropy/tests/__init__.py _______________________________
.local/lib/python2.7/site-packages/_pytest/runner.py:212: in __init__
self.result = func()
.local/lib/python2.7/site-packages/_pytest/runner.py:272: in <lambda>
call = CallInfo(lambda: list(collector.collect()), "collect")
.local/lib/python2.7/site-packages/_pytest/python.py:443: in collect
self.session._fixturemanager.parsefactories(self)
.local/lib/python2.7/site-packages/_pytest/fixtures.py:1301: in parsefactories
holderobj = node_or_obj.obj
.local/lib/python2.7/site-packages/_pytest/python.py:248: in fget
self._obj = obj = self._getobj()
.local/lib/python2.7/site-packages/_pytest/python.py:440: in _getobj
return self._importtestmodule()
.local/lib/python2.7/site-packages/_pytest/python.py:493: in _importtestmodule
self.config.pluginmanager.consider_module(mod)
.local/lib/python2.7/site-packages/_pytest/config/__init__.py:498: in consider_module
self._import_plugin_specs(getattr(mod, "pytest_plugins", []))
.local/lib/python2.7/site-packages/_pytest/config/__init__.py:501: in _import_plugin_specs
plugins = _get_plugin_specs_as_list(spec)
.local/lib/python2.7/site-packages/_pytest/config/__init__.py:554: in _get_plugin_specs_as_list
"list/tuple of strings for plugin names. Given: %r" % specs
E UsageError: Plugin specs must be a ','-separated string or a list/tuple of strings for plugin names. Given: <module 'astropy.tests.pytest_plugins' from '/home/jiaqing/.local/lib/python2.7/site-packages/astropy/tests/pytest_plugins.pyc'>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================================== 11 skipped, 1 error in 21.87 seconds ===================================================
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (13 by maintainers)
Top Results From Across the Web
Testing Guidelines — Astropy v5.3.dev149+gd9cb18f5a
By default astropy.test() will skip tests which retrieve data from the internet. To turn these tests on use the remote_data flag:.
Read more >Known Issues — Astropy v3.2.dev994
The symptom of this bug is that no tests or only tests in RST files are collected. In addition, astropy 2.0.x (LTS) is...
Read more >Known Issues — Astropy v1.0.4
When running the Astropy tests using astropy.test() in an IPython interpreter some of the tests in the astropy/tests/test_logger.py might fail, depending on the ......
Read more >Error reading Kepler FITS file using astropy - Stack Overflow
This: fits.util.get_testdata_filepath(r'O:\MyWorks\keplar-test\kplr100000925-2009166043257_llc.fits') is not the correct function for ...
Read more >1936839 – python-astropy fails to build with Python 3.10
The errors area in the unit parser: astropy/units/tests/test_quantity_annotations.py FFFFFFFFFFFFFFFFFFFFFFF [ 82%] FFFFF [ 82%] ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Was able to get rid of the remaining failure on my machine by applying the tip found at https://coderwall.com/p/-k_93g/mac-os-x-valueerror-unknown-locale-utf-8-in-python, which is specific to macOS… So everything is okay now. And now the final output of
python3 setup.py test
is now as follows:=========== 12060 passed, 302 skipped, 67 xfailed in 337.52 seconds ============
That is, 0 fails, 0 errors.
@pllim No, the error is not present after I started with a development-version conda environment.