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

Windows support? #1

Closed
ruboerner opened this issue Nov 20, 2023 · 3 comments
Closed

Windows support? #1

ruboerner opened this issue Nov 20, 2023 · 3 comments

Comments

@ruboerner
Copy link

Thanks for developing this kernel. I have used it under MacOS without problems. However, when running
quarto preview mkernel.qmd
on Windows, I get the following error messsage:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\rub\miniconda3\Lib\site-packages\mkernel\__main__.py", line 12, in <module>
    from .kernel import MKernel
  File "C:\Users\rub\miniconda3\Lib\site-packages\mkernel\kernel.py", line 20, in <module>
    from wurlitzer import pipes
  File "C:\Users\rub\miniconda3\Lib\site-packages\wurlitzer.py", line 30, in <module>
    from fcntl import F_GETFL, F_SETFL, fcntl
ModuleNotFoundError: No module named 'fcntl'

It seems that fcntl is not supported in Windows OS?

@allefeld
Copy link
Owner

That error comes from importing wurlitzer, and they have an open issue regarding that: minrk/wurlitzer#12. It's from 2018, so it seems it's not easy to resolve.

Wurlitzer is used to implement the "wrapper" method for output capture, which isn't used with Quarto by default anyway.

I just pushed 59dd311, which should catch the error and disable the "wrapper" method. Could you try this version and let me know whether it fixes the issue?

@ruboerner
Copy link
Author

Thanks for the update, mkernel seems to be fixed now!

Screenshot 2023-11-21 074208

@allefeld
Copy link
Owner

allefeld commented Dec 4, 2023

Fix released with v1.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants