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

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

Closed
jumbojing opened this issue Jan 19, 2021 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@jumbojing
Copy link

(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
Copy link
Contributor

pip install -U nbdev
or pip install fastcore

@hamelsmu hamelsmu added the bug Something isn't working label Jan 21, 2021
@jumbojing
Copy link
Author

image

  • nbdev and fastcore had pip installed, but still the same error
  • nbdev can run on the notebook(see above), but an error occurs when executing the terminal command nbdev_build_docs
  • Is there a way to execute this command nbdev_build_docs directly on the notebook?

@igorbrigadir
Copy link

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
Copy link
Author

jumbojing commented Jan 22, 2021

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

image

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

3 participants