Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm running this code in Spider:
Word = input ('Insert Yor Word: ')
Aouie = ['A', 'a', 'O', 'o', 'U', 'u', 'I','i', 'E', 'e' ]
Word_Size =[]
Aouie_Collection =[]
Not_Aouie_Collection = []
Spaces =[]
for letter in Word:
    if letter == " ":
        Spaces.append(Spaces)
    elif letter in Aouie :
        Aouie_Collection.append(letter)
    else:
        Not_Aouie_Collection.append(letter)
    Word_Size.append(letter)
print ('The Word Contain these Charecters: ', Word_Size)
print ('This Word had These Aouie Letters: ', Aouie_Collection)
print ('This Word had These non Aouie Letters: ', Not_Aouie_Collection)
print ('Your Input Word Charecter Size is: ', len(Word_Size))
print ('The Number of Aouie letters found is: ', len(Aouie_Collection))
print ('The Number of non Aouie letters found is: ', len(Not_Aouie_Collection))
print ('Number of Spaces are: ', len(Spaces))
print ('Your Input without Spaces have ', len(Word_Size)-len(Spaces), 'Letters')


What I have tried:

It face "Spyder has encountered an Internal Problem! "
and list these :
<pre>Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\qtconsole\base_frontend_mixin.py", line 138, in _dispatch
    handler(msg)
  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 278, in _handle_input_request
    return super(DebuggingWidget, self)._handle_input_request(msg)
  File "C:\ProgramData\Anaconda3\lib\site-packages\qtconsole\frontend_widget.py", line 512, in _handle_input_request
    self._readline(msg['content']['prompt'], callback=callback, password=msg['content']['password'])
  File "C:\ProgramData\Anaconda3\lib\site-packages\qtconsole\console_widget.py", line 2422, in _readline
    self._show_prompt(prompt, newline=False, separator=False)
TypeError: _show_prompt() got an unexpected keyword argument 'separator'

What should I do?
Also the code run successfully in IDLE, But it didn't work in Spider
Posted
Updated 24-Jul-22 1:26am

Look at the error message:
TypeError: _show_prompt() got an unexpected keyword argument 'separator'

You have not indicated where the call to _show_prompt originates in your code, so I assume it is the input command. But since the error message gives no clue which character causes the problem you will have to guess. Try the message without the trailing colon and see what happens.

And if that does not help then find a product that is more user friendly.
 
Share this answer
 
Hi there, I found the solution and share here for others.
This is becaue of (input) command in Spuder, it fixed in latest version (5.3.0), and if you didn't access to this version, you may use Mac installer in this Link, or create a new conda enviroment with conda-forge, for this, close the spyder, and run this command in Anaconda promp:
conda create -n spyder-cf -c conda-forge spyder
conda activate spyder-cf
spyder
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900