Hi @pierreguillou. Thanks for your medium post it is very useful. I followed your instructions and installed the following environment:
=== Software ===
python : 3.6.8
fastai : 1.0.46
fastprogress : 0.1.20
torch : 1.0.0
torch cuda : 9.0 / is available
torch cudnn : 7005 / is enabled
=== Hardware ===
torch devices : 1
- gpu0 : GeForce GTX 1080
=== Environment ===
platform : Windows-10-10.0.16299-SP0
conda env : fastai_v1
python : C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\python.exe
sys.path :
C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\python36.zip
C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\DLLs
C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib
C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1
C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages
no nvidia-smi is found
When I run any notebook I get an error which points to a problem with tornado and nbconvert.
Here are their versions:
# Name Version Build Channel
tornado 6.0.1 py36hfa6e2cd_0 conda-forge
(fastai_v1) C:\sandbox\course-v3>conda list nbconvert
# packages in environment at C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1:
#
# Name Version Build Channel
nbconvert 5.3.1 py36_0
There is in fact a bug report for this already:
I’m curious what versions of fastai, nbconvert, and tornado you are using successfully. Any suggestions on how to change/downgrade versions would be appreciated! When I try to uninstall tornado it wants to uninstall fastai and many other dependencies.
Exception details below:
E 17:15:24.511 NotebookApp] Uncaught exception GET /notebooks/nbs/dl1/00_notebook_tutorial.ipynb (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/notebooks/nbs/dl1/00_notebook_tutorial.ipynb', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\tornado\web.py", line 1697, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\tornado\web.py", line 3174, in wrapper
return method(self, *args, **kwargs)
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\notebook\notebook\handlers.py", line 59, in get
get_custom_frontend_exporters=get_custom_frontend_exporters
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\notebook\base\handlers.py", line 462, in render_template
return template.render(**ns)
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\jinja2\asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\jinja2\environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\jinja2\environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\jinja2\_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\notebook\templates\notebook.html", line 1, in top-level template code
{% extends "page.html" %}
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\notebook\templates\page.html", line 154, in top-level template code
{% block header %}
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\notebook\templates\notebook.html", line 120, in block "header"
{% for exporter in get_custom_frontend_exporters() %}
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\notebook\notebook\handlers.py", line 19, in get_custom_frontend_exporters
from nbconvert.exporters.base import get_export_names, get_exporter
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\nbconvert\__init__.py", line 7, in <module>
from . import postprocessors
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\nbconvert\postprocessors\__init__.py", line 5, in <module>
from .serve import ServePostProcessor
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\nbconvert\postprocessors\serve.py", line 19, in <module>
class ProxyHandler(web.RequestHandler):
File "C:\Users\lproc\AppData\Local\Continuum\anaconda3\envs\fastai_v1\lib\site-packages\nbconvert\postprocessors\serve.py", line 21, in ProxyHandler
@web.asynchronous
AttributeError: module 'tornado.web' has no attribute 'asynchronous'
[E 17:15:24.526 NotebookApp] {
"Host": "localhost:8888",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"Accept-Language": "en-US,en;q=0.5",
"Accept-Encoding": "gzip, deflate",
"Referer": "http://localhost:8888/tree/nbs/dl1",
"Connection": "keep-alive",
"Cookie": "username-localhost-8888=\"2|1:0|10:1551737682|23:username-localhost-8888|44:NWIwYjA5OTlhOGY1NGE5ZDg0ODhmYzBjM2NkMDc2N2Y=|d8ee8e494b7789f8ff2961c53344a3cb4003df5e89c5526312d0b95b605add10\"; _xsrf=2|7026f6dd|d73694ff5614dc301cc7515c72703e9d|1551734957",
"Upgrade-Insecure-Requests": "1"
}
[E 17:15:24.526 NotebookApp] 500 GET /notebooks/nbs/dl1/00_notebook_tutorial.ipynb (::1) 109.39ms referer=http://localhost:8888/tree/nbs/dl1
Thank you!