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
- Install the package on a Windows environment.
- Run
arcade-mcp.
- 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'
Bug Report:
ModuleNotFoundError: No module named 'fcntl'on WindowsDescription
I am attempting to run
arcade-mcpon a Windows machine. When executing the command, the program crashes immediately with aModuleNotFoundErrorbecause it attempts to importfcntl.The
fcntlmodule is specific to Unix/Linux systems and is not available in the standard Python library for Windows. It appearsarcade_core(a dependency) is importing this unconditionally.Environment
arcade-cli/arcade-coreSteps to Reproduce
arcade-mcp.Traceback