nbdev: nbdev_filter breaks on ghpages deploy

After pushing on my repo I get the following error on the deploy actions:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.6/x64/bin/nbdev_filter", line 8, in <module>
    sys.exit(nbdev_filter())
  File "/opt/hostedtoolcache/Python/3.10.6/x64/lib/python3.10/site-packages/fastcore/script.py", line 119, in _f
    return tfunc(**merge(args, args_from_prog(func, xtra)))
  File "/opt/hostedtoolcache/Python/3.10.6/x64/lib/python3.10/site-packages/nbdev/cli.py", line 57, in nbdev_filter
    try: filt = get_config().get('exporter', FilterDefaults)()
TypeError: 'str' object is not callable
Error: Process completed with exit code 1.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (6 by maintainers)

Most upvoted comments

OK I see the problem - a recent fastcore update required an nbdev release to go with it. Fixed now - please update to the latest released nbdev and this should be resolved.

If that helps, I am facing the same issue than @IgVelasco I use the same deploy.yaml than the one in the nbdev repo, except for the fact that I change the branch that triggers the workflow: https://github.com/Jaume-JCI/ds-blocks/blob/nbdev2_1/.github/workflows/deploy.yaml

This workflow was working correctly for me before, which makes me wonder if the issue might have started after later changes in nbdev?