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)

Most upvoted comments

Since https://github.com/conda-forge/sunpy-feedstock/pull/80 was merged, this is no longer an issue for sunpy. Doing conda install sunpy will install a working version of aioftp on python 3.6. If you have already installed sunpy, running conda 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!