Closed shimakazexkaki closed 1 month ago
Hey @shimakazexkaki, thanks for reporting. This problem should be fixed in our latest version available in Anaconda (5.5.1). Please update by closing Spyder, opening the Anaconda Prompt and running there the commands mentioned in our documentation.
Let us know if it works for you.
@ccordoba12 Thanks for response ! I tried sudo apt install spyder
,since I am using in a env and I am not allowed to update conda in base, and after it finishes it went well. But after multiple times opening and closing Spyder this error pops out and Spyder didn't open this time.
Is there any other solutions for updating Spyder in a env?
(matlab) lab688@lab688-System-Product-Name:~$ spyder
Traceback (most recent call last):
File "/home/lab688/work/anaconda3/envs/matlab/bin/spyder", line 8, in <module>
sys.exit(main())
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/spyder/app/start.py", line 236, in main
mainwindow.main(options, args)
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 2016, in main
mainwindow = create_window(MainWindow, app, splash, options, args)
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/spyder/app/utils.py", line 289, in create_window
main.setup()
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 848, in setup
internal_plugins = find_internal_plugins()
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/spyder/app/find_plugins.py", line 92, in find_internal_plugins
mod = importlib.import_module(entry_point.module_name)
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/spyder/plugins/editor/plugin.py", line 49, in <module>
from spyder.plugins.editor.widgets.editor import (EditorMainWindow,
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/spyder/plugins/editor/widgets/editor.py", line 42, in <module>
from spyder.plugins.editor.widgets import codeeditor
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/spyder/plugins/editor/widgets/codeeditor.py", line 31, in <module>
from IPython.core.inputtransformer2 import TransformerManager
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/IPython/__init__.py", line 56, in <module>
from .terminal.embed import embed
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/IPython/terminal/embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/IPython/terminal/interactiveshell.py", line 19, in <module>
from prompt_toolkit.enums import DEFAULT_BUFFER, EditingMode
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/prompt_toolkit/__init__.py", line 16, in <module>
from .application import Application
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/prompt_toolkit/application/__init__.py", line 1, in <module>
from .application import Application
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/prompt_toolkit/application/application.py", line 42, in <module>
from prompt_toolkit.buffer import Buffer
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/prompt_toolkit/buffer.py", line 46, in <module>
from .search import SearchDirection, SearchState
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/prompt_toolkit/search.py", line 13, in <module>
from .key_binding.vi_state import InputMode
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/prompt_toolkit/key_binding/__init__.py", line 1, in <module>
from .key_bindings import (
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/prompt_toolkit/key_binding/key_bindings.py", line 54, in <module>
from prompt_toolkit.keys import KEY_ALIASES, Keys
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/site-packages/prompt_toolkit/keys.py", line 10, in <module>
class Keys(str, Enum):
File "/home/lab688/work/anaconda3/envs/matlab/lib/python3.7/enum.py", line 236, in __new__
if canonical_member._value_ == enum_member._value_:
AttributeError: type object 'EnumMeta' has no attribute '_value_'
It seems your matlab
env is broken and you need to recreate it. Do you need to use Python 3.7? Or you can use a more recent version?
I have to use Python 3.7 unfortunately, but I will try recreating envs. Thanks for response!
Ok, then I suggest you use this command for that:
conda create -n matlab-new -c conda-forge python=3.7 spyder
That will use the Linux Conda-forge packages, which are better maintained than the ones coming from Anaconda.
If you need to install more packages in that environment (e.g. Pandas), you need to run
conda install -c conda-forge pandas
Let us know if it works for you.
Closing due to lack of response.
Description
What steps will reproduce the problem?
Can't actually tell what will reproduce the problem since each time the traceback log and Error are different. Tried spyder --reset. Usually the first time it worked and crashed after sometime. Below is the last time traceback log, Spyder didn't open when this comes out. I guess it's about Spyder's plugins? Because initially it tells me something went wrong in Spyder.ini , I go change some settings compare to my other computer whose Spyder works fine and it worked but crashes later. Oh, Spyder can't open especially on this env, but opens well on some other env Not familiar with GitHub's format but willing to change it if I know how.
Traceback
Versions
Dependencies