Skip to content
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 crashed during last session. #3868

Closed
alihb opened this issue Dec 20, 2016 · 34 comments
Closed

Spyder crashed during last session. #3868

alihb opened this issue Dec 20, 2016 · 34 comments

Comments

@alihb
Copy link

alihb commented Dec 20, 2016

Description of your problem

What steps will reproduce the problem?

  1. my spyder3 error Spyder crashed during last session.
  2. what is it?

What is the expected output? What do you see instead?

Please provide any additional information below

Versions and main components

  • Spyder Version:
  • Python Version:
  • Operating system:

Dependencies

Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:

@bucricket
Copy link

I have the same issue using Spyder in environments other than root. Any solution?

@ccordoba12
Copy link
Member

Please run

spyder --show-console

in a terminal and post here any errors you see there.

@bucricket
Copy link

Thanks! Please see the results.

Traceback (most recent call last):
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 3001, in main
mainwindow = run_spyder(app, options, args)
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 2905, in run_spyder
main.setup()
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 839, in setup
self.findinfiles = FindInFiles(self)
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/spyder/plugins/findinfiles.py", line 52, in init
include = self.include_patterns()
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/spyder/plugins/findinfiles.py", line 105, in include_patterns
for ext in get_edit_extensions():
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/spyder/config/utils.py", line 139, in get_edit_extensions
edit_filetypes = get_edit_filetypes()
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/spyder/config/utils.py", line 118, in get_edit_filetypes
pygments_exts = _get_pygments_extensions()
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/spyder/config/utils.py", line 85, in _get_pygments_extensions
for lx in lexers.get_all_lexers():
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/pygments/lexers/init.py", line 53, in get_all_lexers
for lexer in find_plugin_lexers():
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/pygments/plugin.py", line 53, in find_plugin_lexers
yield entrypoint.load()
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/pkg_resources/init.py", line 2290, in load
self.require(*args, **kwargs)
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/pkg_resources/init.py", line 2307, in require
items = working_set.resolve(reqs, env, installer)
File "/Applications/anaconda/envs/pyDisALEXI/lib/python2.7/site-packages/pkg_resources/init.py", line 849, in resolve
raise DistributionNotFound(req, requirers)
DistributionNotFound: The 'gnureadline; sys_platform == "darwin" and platform_python_implementation == "CPython"' distribution was not found and is required by the application

@ccordoba12
Copy link
Member

Try to run

conda update setuptools

to see if that fixes your error.

@bucricket
Copy link

bucricket commented Jan 9, 2017 via email

@ccordoba12
Copy link
Member

Closing as there's nothing we can do about this one in our side, sorry.

@juliennyambal
Copy link

Hi everyone and hope that this would help.
I couldn't open spyder without sudo command. You should try
spyder --show-console

My last line was:
OSError: [Errno 13] Permission denied: '/home/julien/.spyder2/.ropeproject/config.py' and some other files. Those files were only available to the root user. You should just remove the root privileges from each file that is blocking spyder from starting and you are ready to go.

(I have used nautilus)

@Peyman87
Copy link

I ran this "pip install --upgrade spyder" in "Anaconda prompt" and then used "spyder --show-console" and it worked.

@Gabrielvon
Copy link

Hi.
I came across same issue. I tried spyder --show-console and it show same error. And I also tried all solutions mentioned up to my post, all of them don't work for my situations.

@Pechi77
Copy link

Pechi77 commented May 30, 2018

spyder show cons

spyder show-console gives

Spyder is already running. If you want to open a new
instance, please pass to it the --new-instance option

but still I am getting spyder crashed during last session. pls help

@HomaiRS
Copy link

HomaiRS commented Jun 1, 2019

I have the exact same issue, please help....

  1. I got the same error "spyder crashed during the last session".
  2. I did "spyder --show-console", and it did not solve the error.
  3. Then I did "pip install --upgrade spyder" in mac terminal.
  4. Then again "spyder --show-console".

BUT still I get the "spyder crashed during the last session" error :(((.... I appreciate any comment or feedback.

@ccordoba12
Copy link
Member

Look for a file called spyder_crash.log and remove it.

@triggerhappy88
Copy link

help i also experience the same problem:

Traceback (most recent call last):
File "C:\Users\asus\Anaconda3\Scripts\spyder-script.py", line 10, in
sys.exit(main())
File "C:\Users\asus\Anaconda3\lib\site-packages\spyder\app\start.py", line 200, in main
from spyder.app import mainwindow
File "C:\Users\asus\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 167, in
from spyder.utils.environ import WinUserEnvDialog
File "C:\Users\asus\Anaconda3\lib\site-packages\spyder\utils\environ.py", line 19, in
from spyder.plugins.variableexplorer.widgets.collectionseditor import (
File "C:\Users\asus\Anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\collectionseditor.py", line 57, in
from spyder.plugins.variableexplorer.widgets.collectionsdelegate import (
File "C:\Users\asus\Anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\collectionsdelegate.py", line 31, in
from spyder.plugins.variableexplorer.widgets.objectexplorer.attribute_model
File "C:\Users\asus\Anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\objectexplorer_init_.py", line 19, in
from .attribute_model import DEFAULT_ATTR_COLS, DEFAULT_ATTR_DETAILS
File "C:\Users\asus\Anaconda3\lib\site-packages\spyder\plugins\variableexplorer\widgets\objectexplorer\attribute_model.py", line 29, in
import numpy as np
File "C:\Users\asus\AppData\Roaming\Python\Python37\site-packages\numpy_init_.py", line 140, in
from . import distributor_init
File "C:\Users\asus\AppData\Roaming\Python\Python37\site-packages\numpy_distributor_init.py", line 26, in
WinDLL(os.path.abspath(filename))
File "C:\Users\asus\Anaconda3\lib\ctypes_init
.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application

@ccordoba12
Copy link
Member

@triggerhappy88, please remove this directory

C:\Users\asus\AppData\Roaming\Python

to fix your problem and avoid using pip to install packages that can be installed with conda in the future.

@triggerhappy88
Copy link

triggerhappy88 commented Jan 31, 2020

im not really sure what im doing, im not really good with these things, sorry. i just uninstalled anaconda which includes the spyder and jupyter notebook. im trying to reinstall anaconda right now

@triggerhappy88
Copy link

image

@triggerhappy88
Copy link

i cant see any AppData in C:\Users\asus\

@ccordoba12
Copy link
Member

It's probably a hidden directory on Windows. So you need to remove it using the command prompt (cmd.exe).

@dalthviz, what's the command to remove directories on Windows?

@triggerhappy88
Copy link

image

@triggerhappy88
Copy link

i saw this one, do you think should i follow the above suggestion? I am not really sure where to type those "pip install ipython", "pip install spyder" and "spyder --reset", is it on ANaconda prompt or command prompt? :(

@dalthviz
Copy link
Member

dalthviz commented Jan 31, 2020

@ccordoba12 I think the command is rd and, for a recursive use, the flag is \S

@ccordoba12
Copy link
Member

i saw this one, do you think should i follow the above suggestion?

No. Simply uninstall Anaconda, reinstall it and remove the directory I told you about with the command mentioned by @dalthviz in a command prompt, i.e.

rd \S C:\Users\asus\AppData\Roaming\Python

@triggerhappy88
Copy link

i dont know how to insert that rd \S in the cmd, so i manually searched for that appdata roaming thing. it is working now, thank you very much for your help ,:D
i really appreciate it, i hope it will not crash again later because i have class

@triggerhappy88
Copy link

Hi im desperate for some help 😭

@triggerhappy88
Copy link

CaseStudy

@triggerhappy88
Copy link

Annotation 2020-02-06 075814

@triggerhappy88
Copy link

Im left with only one item i cant figure out, question 2.2.6.

@triggerhappy88
Copy link

Im hoping you can help me determine the code to determine the average number of repeat calls please

@dalthviz
Copy link
Member

Hi @triggerhappy88, I think that is out of the scope of Spyder as an application and what we can help over here. Sorry to not be helpful at that level, but we are glad that you're using Spyder for your classes :)

@MarkSCQ
Copy link

MarkSCQ commented Mar 31, 2020

I ran this "pip install --upgrade spyder" in "Anaconda prompt" and then used "spyder --show-console" and it worked.

This works for me, Thank you so much

@PbChauhan

This comment has been minimized.

@utkarshsharma1
Copy link

I just upgraded spyder using this command & the issue resolved
conda upgrade spyder
on anaconda console.

@Hilaren
Copy link

Hilaren commented Jun 7, 2020

Also ran into same issue here with the traceback below :

Traceback (most recent call last):
  File "/Users/renna/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3718, in main
    mainwindow = run_spyder(app, options, args)
  File "/Users/renna/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 3559, in run_spyder
    main.setup()
  File "/Users/renna/opt/anaconda3/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 960, in setup
    self.completions.start()
  File "/Users/renna/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/completion/plugin.py", line 292, in start
    client_info['plugin'].start()
  File "/Users/renna/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/completion/kite/plugin.py", line 144, in start
    self.client.start()
  File "/Users/renna/opt/anaconda3/lib/python3.7/site-packages/spyder/plugins/completion/kite/client.py", line 62, in start
    self.sig_client_started.emit(self.languages)
TypeError: KiteClient.sig_client_started[list].emit(): argument 1 has unexpected type 'str'

I've tried quite a lot ways to solve the issue while failed :

  1. spyder --reset (doesn't work)
  2. spyder --show-console (got the traceback)
  3. uninstall and re-install spyder (doesn't work)

I've been working on it for a few days, can anyone help? Thank you so much!!

@fabioalvescarvalho
Copy link

I ran this "pip install --upgrade spyder" in "Anaconda prompt" and then used "spyder --show-console" and it worked.

This worked for me too, thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests