New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spyder encounters a problems when launching seems complete #14012
Comments
Thanks for reporting. This issue is a duplicate of #13288. Please keep track of that issue as it will be fixed in a future release. |
Hey @france5co, thanks for reporting. Please open Terminal.app, run there
and report any errors you see printed there. |
When you say "run there" you mean in my starting (standard) terminal page or in the base environment in which I launch spyder? To exit, you will have to explicitly quit this process, by either sending To read more about this, see ipython/ipython#2049 To connect another client to this kernel, use: Thanks a lot for the help |
I meant the second case. Thanks for running it. Please create a new conda environment to install Spyder on it, to see if that helps. For that, please run the following commands:
|
I did what you suggested me. After the first activation of the new conda environment, the spyder IDE opened correctly and no message from the Issue reporter appeared. Once I noticed that the terminal was still running, I decided to try the command cmd-\ to see if that could help, as read in the ipython/ipython#2049. This brought the terminal in its beginning status and forced the spyder IDE to close. Unfortunately, the error message box sill pops up at every new launching of the spyder IDE. File "/Users/fv/opt/anaconda3/envs/clean-env/lib/python3.7/site-packages/spyder/plugins/base.py", line 327, in I want to add that, when I first opened spyder in the clean-env, I decided to put it to test with the simple command "import numpy as np" in the IPython console. I got another error message, which sad that "ModuleNotFoundError: No module named 'numpy' ". Could this be somehow linked to the original problem or this could be solved installing the libraries I need in the new environment? |
That sounded promising.
I really don't understand why things worked for you the first time, but not after that.
Yeah, that's solved by installing |
Could you run these commands to see what you get now?
|
Neither do I. I'm really confused too.
Just did it, here is what I got: NOTE: When using the To exit, you will have to explicitly quit this process, by either sending To read more about this, see ipython/ipython#2049 To connect another client to this kernel, use: |
I'm sorry but I really don't understand why this error happens. Could you try to run
and start Spyder in your |
Unfortunately your suggestion didn't work completely. Here's what I did and what happened:
A good thing is that I can use Python anyway, despite the terminal is useless and the signs in the IPython console are big and with a strange font. Let the me now if the problems is somehow solvable. If not, I can adapt myself to this. |
What do you mean by this? I don't understand. |
My fault, when I wrote Python I was thinking about the Spyder IDE. I can use it somehow. Since the two bugs I was talking about are not a huge obstacle and the features of Spyder that I need work, I can live with the Issue that is reported everytime. |
Ok, sorry for the inconvenience. I'll close this in favor of #13288. We'll try to fix this problem in the next couple of months. |
I have all options in thread but I have issues launching Spyder 4.1.5 from Navigator or command line. File "/opt/anaconda3/lib/python3.8/site-packages/spyder/plugins/console/widgets/shell.py", line 71, in init Spyder version: 4.1.5 |
This problem was fixed in Spyder 4.2.1, so you need to update with the following commands:
|
Description
What steps will reproduce the problem?
What is the expected output? What do I see instead?
Spyder is opened, but an error pops up "spyder has encountered a problem", and freezes in "connecting to kernel" forever.
Additional information
The following is the message I get from the spyder Issue reporter every time the app seems ready to work ( at the bottom of the spyder IDE appears the message "LSP Python: ready" ).
I work with MacOS and the fv directory is my user directory (it's where I installed Anaconda).
I want to warn you that:
(1) I launch spyder from my base enviroment in the terminal.app but I get the same message also if I launch it from Anaconda,
(2) I've already tried resetting all the spyder settings and reinstalling the Anaconda app,
(3) Despite in the spyder IDE appears the message "LSP Python: ready" the terminal.app is still working on the simple initial command (>>spyder) I used to launch the application. As a matter of fact, when I force the the terminal with the command ^C the spyder app closes.
What can I do?
Thanks for the help
File "/Users/fv/opt/anaconda3/lib/python3.8/site-packages/spyder/plugins/base.py", line 327, in
toggled=lambda checked: self.toggle_view(checked),
File "/Users/fv/opt/anaconda3/lib/python3.8/site-packages/spyder/plugins/ipythonconsole/plugin.py", line 214, in toggle_view
self.create_new_client(give_focus=False)
File "/Users/fv/opt/anaconda3/lib/python3.8/site-packages/spyder/plugins/ipythonconsole/plugin.py", line 713, in create_new_client
self.register_client(client)
File "/Users/fv/opt/anaconda3/lib/python3.8/site-packages/spyder/plugins/ipythonconsole/plugin.py", line 935, in register_client
shellwidget.set_cwd(cwd_path)
File "/Users/fv/opt/anaconda3/lib/python3.8/site-packages/spyder/plugins/ipythonconsole/widgets/shell.py", line 221, in set_cwd
self.call_kernel(interrupt=True).set_cwd(dirname)
File "/Users/fv/opt/anaconda3/lib/python3.8/site-packages/spyder_kernels/comms/commbase.py", line 549, in call
return self._comms_wrapper._get_call_return_value(
File "/Users/fv/opt/anaconda3/lib/python3.8/site-packages/spyder/plugins/ipythonconsole/comms/kernelcomm.py", line 149, in _get_call_return_value
with self.comm_channel_manager(
File "/Users/fv/opt/anaconda3/lib/python3.8/contextlib.py", line 113, in enter
return next(self.gen)
File "/Users/fv/opt/anaconda3/lib/python3.8/site-packages/spyder/plugins/ipythonconsole/comms/kernelcomm.py", line 86, in comm_channel_manager
self._wait(self.comm_channel_connected,
File "/Users/fv/opt/anaconda3/lib/python3.8/site-packages/spyder/plugins/ipythonconsole/comms/kernelcomm.py", line 205, in _wait
raise TimeoutError(timeout_msg)
TimeoutError: Timeout while waiting for comm port.
WARNING:traitlets:kernel died: 24.999602794647217
WARNING:traitlets:kernel died: 25.188823223114014
WARNING:traitlets:kernel died: 25.00175380706787
WARNING:traitlets:kernel died: 24.99987816810608
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: