nbdev icon indicating copy to clipboard operation
nbdev copied to clipboard

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

Open andruum opened this issue 2 years ago • 3 comments

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.

andruum avatar Nov 07 '23 14:11 andruum

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

deven367 avatar Nov 13 '23 21:11 deven367

nbdev_export will export CRLF anyway.

sei-msd avatar Feb 16 '24 04:02 sei-msd

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.

andruum avatar Feb 16 '24 09:02 andruum