This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: error in the repl due to indentation
Type: behavior Stage: resolved
Components: Windows Versions: Python 3.6
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: noah.haasis, paul.moore, steve.dower, tim.golden, xtreak, zach.ware
Priority: normal Keywords:

Created on 2018-08-30 04:42 by noah.haasis, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg324366 - (view) Author: Noah Haasis (noah.haasis) * Date: 2018-08-30 04:42
Pressing the tab key in the python REPL in my command line (cmder on windows 10 32bit) causes an exception:
>>> Readline internal error                                                                                                                       
Traceback (most recent call last):                                                                                                                
  File "C:\Users\leinw\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyreadline\console\console.py", line 768, in hook_wrapper_23   
    res = ensure_str(readline_hook(prompt))                                                                                                       
  File "C:\Users\leinw\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyreadline\rlmain.py", line 571, in readline                   
    self._readline_from_keyboard()                                                                                                                
  File "C:\Users\leinw\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyreadline\rlmain.py", line 536, in _readline_from_keyboard    
    if self._readline_from_keyboard_poll():                                                                                                       
  File "C:\Users\leinw\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyreadline\rlmain.py", line 556, in _readline_from_keyboard_pol
    result = self.mode.process_keyevent(event.keyinfo)                                                                                            
  File "C:\Users\leinw\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyreadline\modes\emacs.py", line 243, in process_keyevent      
    r = self.process_keyevent_queue[-1](keyinfo)                                                                                                  
  File "C:\Users\leinw\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyreadline\modes\emacs.py", line 286, in _process_keyevent     
    r = dispatch_func(keyinfo)                                                                                                                    
  File "C:\Users\leinw\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyreadline\modes\basemode.py", line 257, in complete           
    completions = self._get_completions()                                                                                                         
  File "C:\Users\leinw\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyreadline\modes\basemode.py", line 200, in _get_completions   
    r = self.completer(ensure_unicode(text), i)                                                                                                   
  File "C:\Users\leinw\AppData\Local\Programs\Python\Python36-32\lib\rlcompleter.py", line 80, in complete                                        
    readline.redisplay()                                                                                                                          
AttributeError: module 'readline' has no attribute 'redisplay'                                                                              

This happens even if python expects indentation.
msg324369 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2018-08-30 06:16
Is this related to pyreadline? I can see an upstream issue with similar traceback and an open PR with some discussion.

GitHub issue : https://github.com/pyreadline/pyreadline/issues/49
Open PR : https://github.com/pyreadline/pyreadline/pull/51

Thanks
History
Date User Action Args
2022-04-11 14:59:05adminsetgithub: 78726
2018-08-30 11:44:42eryksunsetstatus: open -> closed
type: behavior
resolution: third party
stage: resolved
2018-08-30 06:16:29xtreaksetnosy: + xtreak
messages: + msg324369
2018-08-30 04:42:05noah.haasiscreate