question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

import fcntl - error

See original GitHub issue

I’ve just installed pymux, but can’t run it. Error:

C:\Windows\system32>pymux
Traceback (most recent call last):
  File "c:\python\python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python\python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python\Python36\Scripts\pymux.exe\__main__.py", line 5, in <module>
  File "c:\python\python36\lib\site-packages\pymux\entry_points\run_pymux.py", line 28, in <module>
    from pymux.main import Pymux
  File "c:\python\python36\lib\site-packages\pymux\main.py", line 9, in <module>
    from prompt_toolkit.eventloop.posix import PosixEventLoop
  File "c:\python\python36\lib\site-packages\prompt_toolkit\eventloop\posix.py", line 2, in <module>
    import fcntl
ModuleNotFoundError: No module named 'fcntl'

P.S. installation output:

C:\Windows\system32>pip install pymux
Collecting pymux
  Downloading pymux-0.14-py3-none-any.whl (78kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 81kB 495kB/s
Collecting prompt-toolkit<1.1.0,>=1.0.8 (from pymux)
  Downloading prompt_toolkit-1.0.15-py3-none-any.whl (247kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 256kB 1.6MB/s
Collecting pyte<0.6.0,>=0.5.1 (from pymux)
  Downloading pyte-0.5.2-py2.py3-none-any.whl
Collecting docopt>=0.6.2 (from pymux)
  Downloading docopt-0.6.2.tar.gz
Requirement already satisfied: six>=1.9.0 in c:\python\python36\lib\site-packages (from pymux)
Collecting wcwidth (from prompt-toolkit<1.1.0,>=1.0.8->pymux)
  Downloading wcwidth-0.1.7-py2.py3-none-any.whl
Installing collected packages: wcwidth, prompt-toolkit, pyte, docopt, pymux
  Running setup.py install for docopt ... done
Successfully installed docopt-0.6.2 prompt-toolkit-1.0.15 pymux-0.14 pyte-0.5.2 wcwidth-0.1.7

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jonathanslenderscommented, Aug 17, 2018

Hi @dCosminn,

The latest master branch should run on Windows 10, but only using pymux standalone for now. I didn’t release it yet, because it’s not completely stable yet.

It depends on prompt_toolkit 2.0 and uses yawinpty. Given that yawinpty was removed from GitHub and that winpty is already a hack to begin with, I’m waiting for the next Windows release that supports true PTYs. This will make the Windows implementation super clean. See: https://blogs.msdn.microsoft.com/commandline/2018/08/02/windows-command-line-introducing-the-windows-pseudo-console-conpty/

Also see: https://github.com/jonathanslenders/pymux/issues/58

0reactions
SLAYER-CODEcommented, Jul 26, 2021

Error IPYTHON (tensor) C:\Windows\system32>ipython Traceback (most recent call last): File β€œc:\users\admin\anaconda3\envs\tensor\lib\runpy.py”, line 194, in _run_module_as_main return run_code(code, main_globals, None, File β€œc:\users\admin\anaconda3\envs\tensor\lib\runpy.py”, line 87, in run_code exec(code, run_globals) File "C:\Users\ADMIN\anaconda3\envs\tensor\Scripts\ipython.exe_main.py", line 4, in <module> File "c:\users\admin\anaconda3\envs\tensor\lib\site-packages\IPython_init.py", line 56, in <module> from .terminal.embed import embed File β€œc:\users\admin\anaconda3\envs\tensor\lib\site-packages\IPython\terminal\embed.py”, line 16, in <module> from IPython.terminal.interactiveshell import TerminalInteractiveShell File β€œc:\users\admin\anaconda3\envs\tensor\lib\site-packages\IPython\terminal\interactiveshell.py”, line 21, in <module> from prompt_toolkit.formatted_text import PygmentsTokens ModuleNotFoundError: No module named β€˜prompt_toolkit.formatted_text’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: No module named 'fcntl' - python - Stack Overflow
The issue is that 'fcntl' is not available on windows. The alternative that can be used, as suggested by Alexey Grigorov in Ml...
Read more >
ModuleNotFoundError: No Module Named 'fcntl' (Python)
The minimal occurrence of the error is when using Windows, for example, and you run import fcntl or any derivative of the import...
Read more >
ModuleNotFoundError: No module named 'fcntl' #1414 - GitHub
While installing ansible in my windows, I ma getting this error "ERROR: No module named 'fcntl' ". How to resolve this?
Read more >
How To Fix Python Error fcntl On Windows - YouTube
How To Fix Python Error fcntl On Windows [re-edit]This video show you how to Python fix Error fcntl on Windows, I use urwid...
Read more >
ModuleNotFoundError: No module named 'fcntl' - Django
Hi everyone, I'm currently taking the Django Part 3 course using Windows 10, and I came across this error when running the command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found