quarto-emacs icon indicating copy to clipboard operation
quarto-emacs copied to clipboard

ModuleNotFoundError: No module named 'nbclient'

Open hugo-pires opened this issue 2 years ago • 5 comments

Hello and congratulations for your work

When I try to run quarto-preview I get the error ModuleNotFoundError: No module named 'nbclient'. But when I use the python mode, I can manage to do use the module without any problem.

Could you help me?

Regards

Hugo

hugo-pires avatar Dec 29 '22 11:12 hugo-pires

It is likely this is related to the python environment that your instance of VS code is using (Quarto in VS Code will use the python environment that you have configured for VS Code). Can you see whether updating or changing that will get things going?

dragonstyle avatar Dec 29 '22 13:12 dragonstyle

Thank you. I am actually using Emacs, so I don't know if VS code will cause the problem. But I will give it a try.

hugo-pires avatar Dec 29 '22 14:12 hugo-pires

Ah, sorry, then you should definitely disregard what I wrote - that definitely will not help.

dragonstyle avatar Dec 29 '22 14:12 dragonstyle

Ok. Thank you once again.

hugo-pires avatar Dec 29 '22 14:12 hugo-pires

What's probably happening is that your emacs setup is probably missing some of the environment variables that you have configured for your shell. Try opening a shell inside emacs and inspecting the environment for differences.

cscheid avatar Dec 30 '22 22:12 cscheid