fastai / nbdev

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

ImportError: cannot import name 'uname' from 'os' [Windows] #1382

Open andruum opened 7 months ago

andruum commented 7 months ago

In new version 2.3.13 there is a bug of os lib import (for example, when command nbdev_new is used), I guess this was not tested in Windows environment:

nbdev_new

site-packages\nbdev\quarto.py", line 6, in from os import system, uname ImportError: cannot import name 'uname' from 'os'

Version 2.3.12 works fine.

deven367 commented 7 months ago

@andruum Since, nbdev is not intended to be used on Windows, you could try to initialize a new project through, WSL. image

sei-msd commented 4 months ago

nbdev_export will export CRLF anyway.

andruum commented 4 months ago

nbdev_export will export CRLF anyway.

But how is it related to the issue?

I proposed a fix in the pull request, it works fine for my team at least, it works.