Reputation: 1
so i went through the workaround in order to be able to run bpython on a windows 10 PC (64 bit, Python 3.10.2). installed the necessary curses from http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses
installed bpython (pip install bpython)
and ran bpython-curses.exe. I still get the long error ending with " from fcntl import ioctl ModuleNotFoundError: No module named 'fcntl'"
Any ideas?
Upvotes: 0
Views: 570
Reputation: 13963
pip install -U windows-curses bpython
Then comment/remove lines 35 and 221 from %APPDATA\..\Local\Programs\Python\Python38\Lib\site-packages\bpython\args.py
or similar location. Those will be the lines with the string curtsies
in them, (see below for sample).
Then run
bpython-curses
Technical details...:
args.py
:
import argparse
from typing import Tuple, List, Optional, NoReturn, Callable
import code
# import curtsies ### REMOVE
import cwcwidth
...
logger.info("Python %s: %s", sys.executable, sys.version_info)
# versions of required dependencies
# logger.info("curtsies: %s", curtsies.__version__) ### REMOVE
logger.info("cwcwidth: %s", cwcwidth.__version__)
Upvotes: 2