fastai / nbdev

Create delightful software with Jupyter Notebooks
https://nbdev.fast.ai/
Apache License 2.0
4.88k stars 488 forks source link

nbdev_build_docs----ModuleNotFoundError: No module named 'fastcore' #390

Closed jumbojing closed 3 years ago

jumbojing commented 3 years ago
(base) liguimei@xixi-lovers-MacBook-Pro nbdev % nbdev_build_lib
Converted 00_export.ipynb.
Converted 01_sync.ipynb.
Converted 02_showdoc.ipynb.
Converted 03_export2html.ipynb.
Converted 04_test.ipynb.
Converted 05_merge.ipynb.
Converted 06_cli.ipynb.
Converted 07_clean.ipynb.
Converted 99_search.ipynb.
Converted example.ipynb.
Converted index.ipynb.
Converted tutorial.ipynb.
(base) liguimei@xixi-lovers-MacBook-Pro nbdev % nbdev_build_docs
converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/99_search.ipynb
converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/03_export2html.ipynb
converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/06_cli.ipynb
converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/04_test.ipynb
converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/00_export.ipynb
An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-748d64ac7847> in <module>
----> 1 from nbdev.showdoc import show_doc

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
from nbdev.export2html import *
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-b9cc7cc9488b> in <module>
----> 1 from nbdev.showdoc import show_doc
      2 from nbdev.export2html import *

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/01_sync.ipynb
converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/example.ipynb
An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
from nbdev.test import *
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-d12369643a41> in <module>
----> 1 from nbdev.showdoc import show_doc
      2 from nbdev.test import *

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
from nbdev.cli import *
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-fe2ca62b761c> in <module>
----> 1 from nbdev.showdoc import show_doc
      2 from nbdev.cli import *

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
from nbdev.export import *
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-df42789a0f4b> in <module>
----> 1 from nbdev.showdoc import show_doc
      2 from nbdev.export import *

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/02_showdoc.ipynb
converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/07_clean.ipynb
An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-748d64ac7847> in <module>
----> 1 from nbdev.showdoc import show_doc

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
from nbdev.sync import *
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-57e456f8cdc6> in <module>
----> 1 from nbdev.showdoc import show_doc
      2 from nbdev.sync import *

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/index.ipynb
An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
from nbdev.showdoc import *
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-e5d446f0a7a2> in <module>
----> 1 from nbdev.showdoc import show_doc
      2 from nbdev.showdoc import *

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
from nbdev.clean import *
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-fff520f946f7> in <module>
----> 1 from nbdev.showdoc import show_doc
      2 from nbdev.clean import *

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/tutorial.ipynb
converting: /Users/liguimei/Documents/GitHub/nbdev/nbs/05_merge.ipynb
An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-748d64ac7847> in <module>
----> 1 from nbdev.showdoc import show_doc

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
from nbdev.tutorial import *
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-386760f05a23> in <module>
----> 1 from nbdev.showdoc import show_doc
      2 from nbdev.tutorial import *

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

An error occurred while executing the following cell:
------------------
from nbdev.showdoc import show_doc
from nbdev.merge import *
------------------

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-51c0dc00f42c> in <module>
----> 1 from nbdev.showdoc import show_doc
      2 from nbdev.merge import *

~/Documents/GitHub/nbdev/nbdev/__init__.py in <module>
      1 __version__ = "1.1.12"
      2
----> 3 from fastcore.imports import IN_IPYTHON
      4 from .imports import *
      5

ModuleNotFoundError: No module named 'fastcore'
ModuleNotFoundError: No module named 'fastcore'

Conversion failed on the following:
99_search.ipynb
06_cli.ipynb
04_test.ipynb
03_export2html.ipynb
01_sync.ipynb
00_export.ipynb
example.ipynb
02_showdoc.ipynb
07_clean.ipynb
index.ipynb
tutorial.ipynb
05_merge.ipynb
converting /Users/liguimei/Documents/GitHub/nbdev/nbs/index.ipynb to README.md
hamelsmu commented 3 years ago

pip install -U nbdev or pip install fastcore

jumbojing commented 3 years ago

image

igorbrigadir commented 3 years ago

Is there a way to execute this command nbdev_build_docs directly on the notebook?

you can run

!nbdev_build_docs

in a cell in a notebook, or:

import nbdev
nbdev.export2html.nbdev_build_docs()

and it'll give you the equivalent of running nbdev_build_docs in the console.

jumbojing commented 3 years ago

@igorbrigadir谢谢! However, unfortunately. . . The result is the same as before... 可是,很不幸。。。结果和以前一样

image