prompt-toolkit / prompt-toolkit/python-prompt-toolkit

IronPython: Windows: No module named fcntl

Open
#526 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.6k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

Hello,

I am not sure if this is supported but trying to import prompt-toolkit (1.0.15) on Windows w/IronPython, and get Unhandled Exception: IronPython.Runtime.Exceptions.ImportException: No module named fcntl


sys.path.append(r"C:\Python27\Lib")
sys.path.append(r"C:\Python27\Lib\site-packages")

from prompt_toolkit import prompt

How does such import pick up fcntl on Windows, and is there a way to override/explicitly force the module to be aware of Windows platform so it can load appropriate dependencies?

Thank you.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the prompt_toolkit 1.0.15 import on Windows with IronPython, using the reported sys.path entries. Trace which import requests fcntl and compare the platform-specific dependency handling; done means establishing whether IronPython is supported and documenting or implementing the appropriate Windows behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.