Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andruum opened this issue Nov 7, 2023 · 3 comments
Open

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

andruum opened this issue Nov 7, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@andruum
Copy link
Contributor

andruum commented Nov 7, 2023

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 andruum added the bug Something isn't working label Nov 7, 2023
@deven367
Copy link
Contributor

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

@sei-msd
Copy link

sei-msd commented Feb 16, 2024

nbdev_export will export CRLF anyway.

@andruum
Copy link
Contributor Author

andruum commented Feb 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants