question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can't enter any input

See original GitHub issue

Description

What steps will reproduce the problem?

All the programs I’m trying to run having inputs produce me the same errors over and over again.

I looked for the solution in internet and got to run:

conda create -n spyder-cf -c conda-forge spyder conda activate spyder-cf spyder

In my still little programming knowlegde I think that’s leading me to create a new enviroment, where I can run the inputs, but I’d prefer not to have to create a enviroment everytime I close it, or, better, to understand why this is happening and learn to fix it.

How can I solve this problem and what is happening?

Thanks in advance 😃

Traceback

Traceback (most recent call last):
  File "C:\Users\sergi\anaconda3\lib\site-packages\qtconsole\base_frontend_mixin.py", line 138, in _dispatch
    handler(msg)
  File "C:\Users\sergi\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:\Users\sergi\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:\Users\sergi\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'

Versions

  • Spyder version: 5.1.5
  • Python version: 3.9.12
  • Qt version: 5.9.7
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  2.0.0 (OK)
cookiecutter >=1.6.0          :  1.7.3 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  8.2.0 (OK)
jedi >=0.17.2;<0.19.0         :  0.18.1 (OK)
jsonschema >=3.2.0            :  4.4.0 (OK)
keyring >=17.0.0              :  23.4.0 (OK)
nbconvert >=4.0               :  6.4.4 (OK)
numpydoc >=0.6.0              :  1.2 (OK)
paramiko >=2.4.0              :  2.8.1 (OK)
parso >=0.7.0;<0.9.0          :  0.8.3 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.11.2 (OK)
pylint >=2.5.0;<2.10.0        :  2.9.6 (OK)
pyls_spyder >=0.4.0           :  0.4.0 (OK)
pylsp >=1.2.2;<1.3.0          :  1.2.4 (OK)
pylsp_black >=1.0.0           :  None (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.1.10 (OK)
qtawesome >=1.0.2             :  1.0.3 (OK)
qtconsole >=5.1.0             :  5.3.0 (OK)
qtpy >=1.5.0                  :  2.0.1 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=49.6.0           :  61.2.0 (OK)
sphinx >=0.6.6                :  4.4.0 (OK)
spyder_kernels >=2.1.1;<2.2.0 :  2.1.3 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.1.6 (OK)
zmq >=17                      :  22.3.0 (OK)

# Optional:
cython >=0.21                 :  0.29.28 (OK)
matplotlib >=2.0.0            :  3.5.1 (OK)
numpy >=1.7                   :  1.21.5 (OK)
pandas >=1.1.1                :  1.4.2 (OK)
scipy >=0.17.0                :  1.7.3 (OK)
sympy >=0.7.3                 :  1.10.1 (OK)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Blurzhcommented, Sep 26, 2022

Great! That’s an amazing answer 😃

Thanks so much. I’m just starting in Spyder, and don’t know much about programming yet, so it’s really good to get to know how things work.

0reactions
dalthvizcommented, Sep 26, 2022

Glad to hear that you got Spyder setup! Regarding your questions:

This launcher, Spyder (spyder-cf), didn’t exist in my computer before?

Exactly, it was created when you created the new spyder-cf and Spyder got installed there.

Is it an independent part of Spyder that I created with an specific version?

When you install Spyder in an environment it will create a shortcut (at least on Windows) which will launch it taking care of activating the correct environment where Spyder was installed. So basically that shortcut will launch the Spyder version that is installed in your spyder-cf environment. If for example in the future you update Spyder to a newer release on the spyder-cf environment the same shortcut will allow you to launch the newer Spyder version.

If that’s the case, should I guess I can create as many enviroments as I please in my PC to work simultaneously with all of them?

For each environment where you install Spyder you will get a unique shortcut to launch Spyder from a specific env. So for example, if you want to install different Spyder installations you could create multiples environments each one with a different Spyder version and then you will have a shortcut for each of them. However, take into account that the folder for the Spyder configs and preferences is the same for all the Spyder versions you launch, which then could cause troubles if the config has been changed between versions. For that way of working though, Spyder has some command line flags like --conf-dir that you can use to choose an specific directory that Spyder should use to save and load its configuration files. Also, you can connect Python interpreters from different environments using the Spyder preferences. For more info about the way to work with Spyder and multiple environments you can check the Spyder docs FAQ page: https://docs.spyder-ide.org/current/faq.html#using-spyder

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot type in input text field - html - Stack Overflow
I am not able to type in the input field. When I remove the first div that has the id="viewport" I am able...
Read more >
Cannot type into text input fields in Chrome and Firefox browsers
If you are not able to type into text input fields in Chrome or Firefox, then this article will help you to fix...
Read more >
Keyboard input issues: can't enter pin on startup screen
On the windows 10 login screen, I can't enter my pin or challenge phrase or password because of input issues. As soon as...
Read more >
Can't Type A User Input From Keyboard In Python Visual ...
Cannot Type User Input From Keyboard In Python Visual Studio CodeData Science Questions and Answers ...
Read more >
When I try to type the input, I cant - Sublime Forum
So in python, I perfectly know how to take input from a user. Im new to this idle. Upon asking for input from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found