Skip to content

fastcore.dispatch dependence issue #1517

Open
@s01st

Description

@s01st

Provide a minimally reproducible example

Environment File:

name: scuppernong

channels:
- conda-forge
- fastai
- - defaults

dependencies:
- python>=3.12


# nbdev
# --------------------------------------------------------------------------------
- fastai::nbdev>=2.3.12
- plum-dispatch

Then create a new project with nbdev new and then run

#| hide
from nbdev.showdoc import *

to get:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[7], line 2
      1 #| hide
----> 2 from nbdev.showdoc import *

File ~/mamba/envs/scuppernong/lib/python3.12/site-packages/nbdev/__init__.py:4
      1 __version__ = "2.3.34"
      3 from .doclinks import nbdev_export
----> 4 from .showdoc import show_doc

File ~/mamba/envs/scuppernong/lib/python3.12/site-packages/nbdev/showdoc.py:10
      7 from .doclinks import *
      8 from .config import get_config
---> 10 from fastcore.dispatch import TypeDispatch
     11 from fastcore.docments import *
     12 from fastcore.utils import *

File ~/mamba/envs/scuppernong/lib/python3.12/site-packages/fastcore/dispatch.py:2, in __getattr__(name)
      1 def __getattr__(name):
----> 2      raise ImportError(
      3          f"Could not import '{name}' from fastcore.dispatch - this module has been moved to the fasttransform package.\n"
      4          "To migrate your code, please see the migration guide at: https://answerdotai.github.io/fasttransform/fastcore_migration_guide.html"
      5      )

ImportError: Could not import '__path__' from fastcore.dispatch - this module has been moved to the fasttransform package.
To migrate your code, please see the migration guide at: https://answerdotai.github.io/fasttransform/fastcore_migration_guide.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions