← All tasks
pythonjupyter/nbclient #118Not a task: already works

Issue with typing.AscyncGenerator for python 3.6.0

envgap__jupyter__nbclient-118

01 / FAILURE SIGNATURE

As reported upstream

AttributeError: module 'typing' has no attribute 'AsyncGenerator'
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
cac82a3fe6a6e1c2fff13d0b3a946536610a7405
Manifest
setup.py
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

jupyter/nbclient #118 · read the original issue
Hi there,



I upgraded to `nbconvert 6.0.7` from from `5.6.1` recently, so as part of that I installed `nbclient 0.5.1`. 



```

python 3.6.0

typing 3.7.4.3

notebook 6.1.4

```



I'm running python 3.6.0 on this machine. After the upgraded I started getting these errors when I tried to start a notebook (500, internal error page):





```

#....

File "h:\anaconda3\lib\site-packages\nbclient\client.py", line447, in NotebookClient

  async def async_setup_kernel(self, **kwargs) -> t.AsyncGenerator:

AttributeError: module 'typing' has no attribute 'AsyncGenerator'

```



If I revert back to `nbconvert 5.6.1` life is back to normal again, notebooks can be opened. 



On another machine with python 3.7, I do not see this issue. This might be specifically related to `python 3.6.0`. 



Unfortunately I couldn't upgrade the machine to 3.7 easily... Any idea how / why this was happening to 3.6.0?



Thanks.

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]