AnswerDotAI / AnswerDotAI/nbdev

nbdev_install_quarto doesn't work with Windows 10 system

Open
#1,404 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
5.3k
Forks
513
Avg merge
2d 30m
Merged PRs (30d)
8

Description

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

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by following the getting-started guide on Windows 10, then inspect the nbdev/quarto.py module identified in the traceback. Verify the behavior of the failing command on Windows and confirm that nbdev_new and nbdev_install_quarto complete without the ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, python
Domain
cli, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.