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

ModuleNotFoundError: No module named 'fcntl' #415

Open
1 task done
TheRealMkadmi opened this issue Dec 2, 2024 · 1 comment
Open
1 task done

ModuleNotFoundError: No module named 'fcntl' #415

TheRealMkadmi opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels

Comments

@TheRealMkadmi
Copy link

Describe the bug

When running on windows: python -m aiomonitor.cli, the following exception is thrown: ModuleNotFoundError: No module named 'fcntl'

To Reproduce

python -m aiomonitor.cli on Windows

Expected behavior

Console monitor shows up.

Logs/tracebacks

python -m aiomonitor.cli
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\Wahib\Desktop\Workbench\repos\cpanel-cracker\venv\Lib\site-packages\aiomonitor\cli.py", line 5, in <module>
    from .telnet import TelnetClient
  File "C:\Users\Wahib\Desktop\Workbench\repos\cpanel-cracker\venv\Lib\site-packages\aiomonitor\telnet.py", line 5, in <module>
    import fcntl
ModuleNotFoundError: No module named 'fcntl'

Python Version

Python 3.11.0

aiomonitor Version

Name: aiomonitor
Version: 0.7.1
Summary: Adds monitor and Python REPL capabilities for asyncio applications
Home-page: https://github.com/aio-libs/aiomonitor
Author: Nikolay Novik
Author-email: [email protected]
License: Apache-2.0
Location: C:\Users\Wahib\Desktop\Workbench\repos\cpanel-cracker\venv\Lib\site-packages
Requires: aioconsole, aiohttp, attrs, click, janus, jinja2, prompt-toolkit, telnetlib3, terminaltables, trafaret, typing-extensions
Required-by:

OS

Windows

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct
@webknjaz
Copy link
Member

webknjaz commented Dec 3, 2024

Based on Windows not being present in CI and the only Trove classifier from the OS category is POSIX, I'd say that it was never intended to be supported. So this is not a bug but maybe a documentation opportunity, as there's not many places one can deduce the supported platforms from, it seems.

But if @achimnol were to be open to adding support (making this a feature request), you @TheRealMkadmi would have to send a PR with both fallbacks for non-POSIX environments and test coverage (pytest + CI matrix).

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

No branches or pull requests

3 participants