Skip to content

nbdev_new fails with AttributeError: path_ #1063

Closed
@lgonzalezsa

Description

@lgonzalezsa

@seeM another issue with nbdev_new
I am running this versions:

fastcore                  1.5.26                     py_0    fastai
ghapi                     1.0.3                    pypi_0    pypi
nbdev                     2.3.2                     dev_0    <develop>
git clone [email protected]:enterprise/the_repo.git
Cloning into 'the_repo'...
remote: Enumerating objects: 1293, done.
remote: Counting objects: 100% (61/61), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 1293 (delta 10), reused 61 (delta 10), pack-reused 1232
Receiving objects: 100% (1293/1293), 79.61 MiB | 2.61 MiB/s, done.
Resolving deltas: 100% (787/787), done.
(dev_env) gonluisr@gonluisr-hp-zbook-15-g3:~/tmp$ cd the_repo/
(dev_env) gonluisr@gonluisr-hp-zbook-15-g3:~/tmp/the_repo$ nbdev_new
repo = the_repo # Automatically inferred from git
user = enterprise # Automatically inferred from git
author = Luis Rolando Gonzalez # Automatically inferred from git
author_email = [email protected] # Automatically inferred from git
description = To support Process Improvements # Automatically inferred from git
settings.ini created.
Traceback (most recent call last):
  File "/home/gonluisr/miniconda3/envs/dev_env/bin/nbdev_filter", line 33, in <module>
    sys.exit(load_entry_point('nbdev', 'console_scripts', 'nbdev_filter')())
  File "/home/gonluisr/miniconda3/envs/dev_env/lib/python3.10/site-packages/fastcore/script.py", line 119, in _f
    return tfunc(**merge(args, args_from_prog(func, xtra)))
  File "/home/gonluisr/github/nbdev/nbdev/cli.py", line 46, in nbdev_filter
    with redirect_stdout(dn): filt(nb)
  File "/home/gonluisr/github/nbdev/nbdev/processors.py", line 218, in __call__
    def __call__(self, nb): return self.nb_proc(nb).process()
  File "/home/gonluisr/github/nbdev/nbdev/process.py", line 126, in process
    for proc in self.procs: self._proc(proc)
  File "/home/gonluisr/github/nbdev/nbdev/process.py", line 120, in _proc
    if hasattr(proc,'end'): proc.end()
  File "/home/gonluisr/github/nbdev/nbdev/frontmatter.py", line 66, in end
    self.fm.update({'output-file': _nbpath2html(Path(self.nb.path_)).name})
  File "/home/gonluisr/miniconda3/envs/dev_env/lib/python3.10/site-packages/fastcore/basics.py", line 247, in __getattr__
    def __getattr__(self,k): return self[k] if k in self else stop(AttributeError(k))
  File "/home/gonluisr/miniconda3/envs/dev_env/lib/python3.10/site-packages/fastcore/basics.py", line 216, in stop
    raise e
AttributeError: path_

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