[issue28140] Attempt to give better errors for pip commands typed into the REPL

2021-11-28 Thread Alex Waygood


Alex Waygood  added the comment:

Similar discussion in a newer issue: https://bugs.python.org/issue45721

--
nosy: +AlexWaygood, pablogsal, steven.daprano, terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28140] Attempt to give better errors for pip commands typed into the REPL

2021-11-28 Thread Irit Katriel


Irit Katriel  added the comment:

On 3.11:

>>> pip install requests
  File "", line 1
pip install requests
^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?

--
nosy: +iritkatriel
versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28140] Attempt to give better errors for pip commands typed into the REPL

2018-07-28 Thread Tom Viner


Change by Tom Viner :


--
keywords: +patch
pull_requests: +8053
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28140] Attempt to give better errors for pip commands typed into the REPL

2018-07-28 Thread Tom Viner


Tom Viner  added the comment:

I am looking at this, as part of the EuroPython 2018 sprint.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28140] Attempt to give better errors for pip commands typed into the REPL

2017-11-06 Thread STINNER Victor

Change by STINNER Victor :


--
nosy: +yselivanov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28140] Attempt to give better errors for pip commands typed into the REPL

2017-11-05 Thread Tom Viner

Change by Tom Viner :


--
nosy: +tomviner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28140] Attempt to give better errors for pip commands typed into the REPL

2016-09-14 Thread Nick Coghlan

Nick Coghlan added the comment:

Given that this can be done with just an excepthook change, I'm going to 
suggest we make the change for 3.5 and 2.7 as well.

--
versions: +Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28140] Attempt to give better errors for pip commands typed into the REPL

2016-09-14 Thread Nick Coghlan

Nick Coghlan added the comment:

Paul Moore pointed out on distutils-sig that since this is mainly desired for 
the REPL, we can put the logic in the default excepthook rather than into the 
SyntaxError constructor the way we had to for "print" and "exec":

def excepthook(typ, value, traceback):
if typ is SyntaxError and "pip install" in value.text:
print("'pip install' found in supplied text")
print("Try running this from a system command prompt")
return
sys.__excepthook__(typ, value, traceback)

--
title: Attempt to give better errors for shell commands typed into the REPL -> 
Attempt to give better errors for pip commands typed into the REPL

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com