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
Confusing error if ipynb-filters are used #1298
Comments
The error is a not an permission error about root access. It is Quarto is not installed. We will download and install it for you.
Installing or upgrading quarto -- this requires root access.
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.16/x64/bin/nbdev_filter", line 8, in <module>
sys.exit(nbdev_filter())
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/fastcore/script.py", line 119, in _f
return tfunc(**merge(args, args_from_prog(func, xtra)))
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/nbdev/cli.py", line 46, in nbdev_filter
with redirect_stdout(dn): filt(nb)
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/nbdev/processors.py", line 243, in __call__
def __call__(self, nb): return self.nb_proc(nb).process()
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/nbdev/process.py", line 126, in process
for proc in self.procs: self._proc(proc)
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/nbdev/process.py", line 120, in _proc
if hasattr(proc,'end'): proc.end()
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/nbdev/frontmatter.py", line 66, in end
self.fm.update({'output-file': _nbpath2html(Path(self.nb.path_)).name})
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/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 "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/fastcore/basics.py", line 216, in stop
raise e
AttributeError: path_
Error: Process completed with exit code 1. I had a look at https://github.com/fastai/workflows and didn't see any recent commits that may have broke things. So I followed the tutorial with https://github.com/tourdownunder/nbdev-hello-world and don't get this issue. It may have been intermittent. What happens if you run it again? |
I ran another 3 times and kept getting error: File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/fastcore/basics.py", line 216, in stop
raise e
AttributeError: path_
Error: Process completed with exit code 1. I'm using Jupyter notebooks in VSCode so I updated my code to use pre-commit as described in the nbdev tutorial , but I still got the same errors I added repos:
- repo: https://github.com/fastai/nbdev
rev: 2.2.10
hooks:
- id: nbdev_clean
- id: nbdev_export
|
What versions of fastcore==1.5.28
nbdev==2.3.12 If they are different it might be worth updating. |
I am getting the same error and have the same versions installed. It looks like
Will update if I figure it out |
This happened to me after upgrading |
Not sure how I ran into it while setting up from scratch but that definitely solved the issue. Much appreciated @ababino ! |
I am still getting github emails about I have updated to the latest versions of
|
I'm also getting this error while setting up from scratch using nbdev 2.2.10. |
I think this should be fixed by using the latest version of nbdev locally, and ensuring |
CI
and github pages
error Installing or upgrading quarto -- this requires root access.
We're introducing a more useful error message in #1332. Also see this forum post for fixes to related issues. |
Followed tutorial but getting error
Followed the nbdev tutorial for nbdev_cards example and did
git push
results. but I keep getting errors about CI and Github pages failing because quarto needs root access.Also ran
nbdev_clean
but the problem persistsMinimal reproducible example
https://github.com/rleyvasal/nbdev_cards
The text was updated successfully, but these errors were encountered: