Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After 'conda install -c fastai nbdev', an error "‘HTMLExporter’ object has no attribute ‘template_path’" occurred. #431

Closed
yunlongYoung opened this issue Feb 20, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@yunlongYoung
Copy link

yunlongYoung commented Feb 20, 2021

converting: /mnt/c/Users/drago/Documents/jupyter/young/00_core.ipynb
‘HTMLExporter’ object has no attribute ‘template_path’
‘HTMLExporter’ object has no attribute ‘template_path’

as mentioned in https://forums.fast.ai/t/htmlexporter-object-has-no-attribute-template-path/80775

That's because the Anaconda's default nbdev version is 0.2.40

' pip3 install -U nbdev' fixed that.

Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting nbdev

...

Installing collected packages: nbconvert, nbdev
  Attempting uninstall: nbconvert
    Found existing installation: nbconvert 6.0.7
    Uninstalling nbconvert-6.0.7:
      Successfully uninstalled nbconvert-6.0.7
  Attempting uninstall: nbdev
    Found existing installation: nbdev 0.2.40
    Uninstalling nbdev-0.2.40:
      Successfully uninstalled nbdev-0.2.40

...

Successfully installed nbconvert-6.0.7 nbdev-1.1.12
(base) ➜  young git:(master) ✗ nbdev_build_lib
Converted 00_core.ipynb.
Converted index.ipynb.
(base) ➜  young git:(master) ✗ nbdev_build_docs
converting: /mnt/c/Users/drago/Documents/jupyter/young/00_core.ipynb
converting: /mnt/c/Users/drago/Documents/jupyter/young/index.ipynb
converting /mnt/c/Users/drago/Documents/jupyter/young/index.ipynb to README.md
(base) ➜  young git:(master) ✗

When I run 'pip3 install nbdev', it not worked on ubuntu20.04 under wsl2. So I install nbdev by install anaconda first, then use 'conda install -c fastai nbdev', it succeed. and then because of default nbdev version is 0.2.40 in conda, an error "'HTMLExporter' object has no attribute 'template_path'" occured. But 'pip3 install -U nbdev' fixed that.

Strongly suggest everyone should run 'pip3 install -U nbdev' after install nbdev by anaconda.

@hamelsmu hamelsmu added the bug Something isn't working label Feb 20, 2021
@hamelsmu
Copy link
Member

Thanks for reporting this issue

@yunlongYoung
Copy link
Author

Thanks for reporting this issue

You are welcome.

@hamelsmu
Copy link
Member

We fixed this issue yesterday by bumping the Anaconda release to the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants