-
Notifications
You must be signed in to change notification settings - Fork 487
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_new
fails with AttributeError: path_
#1063
Comments
Do you have latest |
Although I think |
Sorry, ignore above messages, I can repro this locally. Looking into it! |
oh ok, but yes I do have execnb 0.1.3 execnb 0.1.3 py_0 fastai
fastcore 1.5.26 py_0 fastai
ghapi 1.0.3 pypi_0 pypi
nbdev 2.3.2 dev_0 <develop> |
nbdev_new
fails with AttributeError: path_
fix #1063: ignore `_quarto.yml` from `nbdev-template`
I did git pull and pip install -e nbdev again to check, but not sure if I am doing something wrong because still failing: 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
/home/gonluisr/github/nbdev/nbdev/config.py:173: UserWarning: Config file already exists: /home/gonluisr/tmp/the_repo/settings.ini and will be used as a base
if cfg.config_file.exists(): warn(f'Config file already exists: {cfg.config_file} and will be used as a base')
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_ |
Remove the |
Yes, removing that file the nbdev_new command completes with no issues. 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
/home/gonluisr/github/nbdev/nbdev/config.py:173: UserWarning: Config file already exists: /home/gonluisr/tmp/the_repo/settings.ini and will be used as a base
if cfg.config_file.exists(): warn(f'Config file already exists: {cfg.config_file} and will be used as a base')
settings.ini created.
pandoc -o README.md
to: gfm+footnotes+tex_math_dollars-yaml_metadata_block
output-file: index.html
standalone: true
default-image-extension: png
metadata
description: To support Process Improvements
title: the_repo
Output created: _docs/README.md |
Can confirm. I ran into this when updating an existing repo.
removing the |
@seeM another issue with
nbdev_new
I am running this versions:
The text was updated successfully, but these errors were encountered: