Skip to content

fcntl No module Found Error #2

Description

@Yashwant00CR7

Bug Report: ModuleNotFoundError: No module named 'fcntl' on Windows

Description

I am attempting to run arcade-mcp on a Windows machine. When executing the command, the program crashes immediately with a ModuleNotFoundError because it attempts to import fcntl.

The fcntl module is specific to Unix/Linux systems and is not available in the standard Python library for Windows. It appears arcade_core (a dependency) is importing this unconditionally.

Environment

  • OS: Windows
  • Python Version: (Insert your python version here, e.g., Python 3.10)
  • Package: arcade-cli / arcade-core

Steps to Reproduce

  1. Install the package on a Windows environment.
  2. Run arcade-mcp.
  3. The error occurs during the import sequence.

Traceback

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "D:\Downloads\Projects\My College Projects\Legacy Project Maintainer\venv\Scripts\arcade-mcp.exe\__main__.py", line 4, in <module>
    from arcade_cli.main import cli
  File "D:\Downloads\Projects\My College Projects\Legacy Project Maintainer\venv\Lib\site-packages\arcade_cli\main.py", line 27, in <module>
    from arcade_cli.secret import app as secret_app
  File "D:\Downloads\Projects\My College Projects\Legacy Project Maintainer\venv\Lib\site-packages\arcade_cli\secret.py", line 9, in <module>
    from arcade_cli.usage.command_tracker import TrackedTyper, TrackedTyperGroup
  File "D:\Downloads\Projects\My College Projects\Legacy Project Maintainer\venv\Lib\site-packages\arcade_cli\usage\command_tracker.py", line 17, in <module>
    from arcade_core.usage import UsageIdentity, UsageService, is_tracking_enabled
  File "D:\Downloads\Projects\My College Projects\Legacy Project Maintainer\venv\Lib\site-packages\arcade_core\usage\__init__.py", line 1, in <module>
    from arcade_core.usage.identity import UsageIdentity
  File "D:\Downloads\Projects\My College Projects\Legacy Project Maintainer\venv\Lib\site-packages\arcade_core\usage\identity.py", line 9, in <module>
    import fcntl
ModuleNotFoundError: No module named 'fcntl'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions