sunpy: AttributeError: module 'contextlib' has no attribute 'asynccontextmanager' in conda build
Dear sunpy developer,
I am trying to use sunpy 2.0.3 the build from conda in a jupyter notebook.
import sunpy
works but
import sunpy.map
returns:
AttributeError: module 'contextlib' has no attribute 'asynccontextmanager'
Is there a workaround?
I thank you in advance,
Yori Fournier
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (14 by maintainers)
Since https://github.com/conda-forge/sunpy-feedstock/pull/80 was merged, this is no longer an issue for sunpy. Doing
conda install sunpywill install a working version ofaioftpon python 3.6. If you have already installed sunpy, runningconda install 'aioftp<0.17'should fix the issue.Since there are upstream bugs open for the upstream issue, and it’s fixed for us, I’m going to close this. Thanks for reporting it!
I am going to reopen this so we remember to fix this!