jolly-midnight-72759
10/17/2020, 3:05 AM./pants repl --shell=ipython or ./pants repl --shell=ipython project/src/python/project I get the following error:
ERROR: Could not find a version that satisfies the requirement ipython==7.16.1 (from versions: 0.10, 0.10.1, 0.10.2, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.13.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 4.0.0b1, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0rc1, 4.1.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0rc1, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.2.2, 5.3.0, 5.4.0, 5.4.1, 5.5.0, 5.6.0, 5.7.0, 5.8.0, 5.9.0, 5.10.0)
ERROR: No matching distribution found for ipython==7.16.1
When I constrain with version = "ipython<6" I get following ipython error:
<the ipython help screen>
[TerminalIPythonApp] CRITICAL | Bad config encountered during initialization:
[TerminalIPythonApp] CRITICAL | Unrecognized flag: '--ignore-cwd'jolly-midnight-72759
10/17/2020, 3:07 AMpants repl --shell=python works for both python2 and python3 targets.fast-nail-55400
10/17/2020, 3:08 AMjolly-midnight-72759
10/17/2020, 3:10 AMjolly-midnight-72759
10/17/2020, 3:11 AMfast-nail-55400
10/17/2020, 3:11 AMSubsystem defines that option though for the repl goaljolly-midnight-72759
10/17/2020, 3:11 AMfast-nail-55400
10/17/2020, 3:11 AMfast-nail-55400
10/17/2020, 3:12 AM--no-ipython-ignore-cwdfast-nail-55400
10/17/2020, 3:12 AMfast-nail-55400
10/17/2020, 3:12 AMjolly-midnight-72759
10/17/2020, 3:14 AMpants.option.errors.UnknownFlagsError: Unknown flags --no-ignore-cwd on scope ipython with --no-ipython-ignore-cwd.fast-nail-55400
10/17/2020, 3:16 AMoptions_scopefast-nail-55400
10/17/2020, 3:17 AMjolly-midnight-72759
10/17/2020, 3:21 AM--ipython-ignore-cwd=<str>
PANTS_IPYTHON_IGNORE_CWD
ignore_cwd
default: True
current value: False (from pants.toml)
Whether to tell IPython not to put the CWD on the import path. Normally you want this to be
True, so that imports come from the hermetic environment Pants creates. However IPython<7.13.0
doesn't support this option, so if you're using an earlier version (e.g., because you have
Python 2.7 code) then you will need to set this to False, and you may have issues with imports
from your CWD shading the hermetic environment.jolly-midnight-72759
10/17/2020, 3:21 AMfast-nail-55400
10/17/2020, 3:21 AM--ipython-ignore-cwd=False ?fast-nail-55400
10/17/2020, 3:22 AMtype=str,jolly-midnight-72759
10/17/2020, 3:22 AMfalse and that didn't work. And Fales didn't work eitherfast-nail-55400
10/17/2020, 3:22 AMtype=boolfast-nail-55400
10/17/2020, 3:23 AM--ipython-ignore-cwd=''fast-nail-55400
10/17/2020, 3:23 AMfast-nail-55400
10/17/2020, 3:23 AMjolly-midnight-72759
10/17/2020, 3:24 AMfast-nail-55400
10/17/2020, 3:24 AMjolly-midnight-72759
10/17/2020, 3:24 AMjolly-midnight-72759
10/17/2020, 3:24 AMjolly-midnight-72759
10/17/2020, 3:24 AMfast-nail-55400
10/17/2020, 3:25 AMhelp="Whether to tell IPython not to put the CWD on the import path. "
"Normally you want this to be True, so that imports come from the hermetic "
"environment Pants creates. However IPython<7.13.0 doesn't support this option, "
"so if you're using an earlier version (e.g., because you have Python 2.7 code) "
"then you will need to set this to False, and you may have issues with imports "
"from your CWD shading the hermetic environment.",fast-nail-55400
10/17/2020, 3:25 AMtype=str that is clearly wrong…jolly-midnight-72759
10/17/2020, 3:26 AMjolly-midnight-72759
10/17/2020, 3:27 AMFalse because it wont work.jolly-midnight-72759
10/17/2020, 3:54 AMhundreds-breakfast-49010
10/19/2020, 5:42 PMhundreds-breakfast-49010
10/19/2020, 5:42 PMjolly-midnight-72759
10/19/2020, 5:46 PMhundreds-father-404
10/19/2020, 8:59 PM