fastai / nbdev

Create delightful software with Jupyter Notebooks
https://nbdev.fast.ai/
Apache License 2.0
4.8k stars 484 forks source link

nbdev_install_quarto doesn't work with Windows 10 system #1404

Open ronfan opened 2 months ago

ronfan commented 2 months ago

Bug description This is the error code that I received when I attempted nbdev_install_quarto:

User

PS C:\Users\RongFangLi\test> nbdev_new --lib_name test_repo
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\RongFangLi\anaconda3\Scripts\nbdev_new.exe_main.py", line
4, in
File "C:\Users\RongFangLi\anaconda3\Lib\site-packages\nbdev\cli.py", line 13
, in
from .quarto import nbdev_readme, refresh_quarto_yml
File "C:\Users\RongFangLi\anaconda3\Lib\site-packages\nbdev\quarto.py", line
6, in
from os import system, uname
ImportError: cannot import name 'uname' from 'os' (C:\Users\RongFangLi\anacond
a3\Lib\os.py)

Steps to reproduce

Follow this guide on a windows 10 system: https://nbdev.fast.ai/getting_started.html

Expected behavior

No error

Actual behavior

Error code above

Your environment

Windows 10 system on a standard i7 Lenovo laptop

Quarto check output

There was no other output other than the error message above. I believe it is simply a issue because the package is produced with Linux and Mac system in mind.

Thanks

deven367 commented 2 months ago

Hi @ronfan, you check the solution to this problem over here https://forums.fast.ai/t/strugling-to-install-nbdev/109852/4