Closed tamhanepd closed 3 years ago
Severely outdated attrs, please updated attrs
@tamhanepd - what astropy
version is pulled? Looking at the stacktrace it seems like astropy
is using very old pytest
:
File "/home/user/.local/lib/python3.6/site-packages/astropy/visualization/wcsaxes/init.py", line 7, in
import pytest
File "/usr/lib/python3/dist-packages/pytest.py", line 13, in
from _pytest.fixtures import fixture, yield_fixture
File "/usr/lib/python3/dist-packages/_pytest/fixtures.py", line 842, in
class FixtureFunctionMarker(object):
File "/usr/lib/python3/dist-packages/_pytest/fixtures.py", line 844, in FixtureFunctionMarker
params = attr.ib(convert=attr.converters.optional(tuple))
TypeError: attrib() got an unexpected keyword argument 'convert'
convert
argument was removed from _pytest/fixtures.py
since https://github.com/pytest-dev/pytest/pull/3228/files
I updated attrs
version to 20.3.0 and astropy
version of pytest to 0.8.0 ( I think the earlier pytest-astropy
version was 0.2.0 or something). Now the problem is resolved. Thank you for your help.
When I import aplpy package in jupyter notebook, I get the following error. Looks like the problem is in the Pytest package:
Relevant package versions from
pip list
: pytest 6.2.2 APLpy 2.0.3 attrs 19.3.0Python version: 3.6.9 OS: Ubuntu 18.04.5 LTS
What is going wrong here?