Closed beew closed 1 month ago
Hi @beew thank you for the report! I think the traceback you are seeing comes from the spyder-terminal
plugin. I think, as it is right now, that plugin is not compatible with Spyder 6 (here an issue related to that https://github.com/spyder-ide/spyder-terminal/issues/345). Do you have spyder-terminal
installed alongside Spyder 6? Let us know!
Hi, after removing spyder-terminal I get the error
Traceback (most recent call last):
File "/home/bernard/opt/python310/lib/python3.10/site-packages/spyder/plugins/editor/widgets/main_widget.py", line 1253, in update_edit_menu
if readwrite_editor and not editor.isReadOnly():
AttributeError: 'NoneType' object has no attribute 'isReadOnly'
There is another package called pyls-spyder, not sure if it was installed along with spyder-terminal.
Thanks.
Edited; uninstalled pyls-spyder, still same error, so it is not the culprit and I reinstalled it.
Also not sure if it is related, I noticed that the Ipython console is not displaying the initial banner, like version of python, version of Ipython etc (the box in Preference > Ipython console > display initial banner is checked)
It is displayed briefly when the "Help Spyder" pop up window is a white square, once the Help Spyder window is rendered the initial banner in Ipython console disappears.
The window layout in the pictures is Rstudio layout, but choosing default shows the same problem.
@beew, your initial crash is a problem with Spyder-terminal
, which is not compatible with Spyder 6 yet and will only be at the beginning of next year. So, please uninstall it.
You also said:
Also not sure if it is related, I noticed that the Ipython console is not displaying the initial banner, like version of python, version of Ipython etc (the box in Preference > Ipython console > display initial banner is checked)
That's a small bug we didn't manage to fix before releasing Spyder 6. Please open a new issue about it and we'll fix it for 6.0.1, to be released in a couple of weeks.
@ccordoba12
Hi, but after removing spyder-terminal, the error
File "/home/bernard/opt/python310/lib/python3.10/site-packages/spyder/plugins/editor/widgets/main_widget.py", line 1253, in update_edit_menu
if readwrite_editor and not editor.isReadOnly():
AttributeError: 'NoneType' object has no attribute 'isReadOnly'
still persists. Is this the same as the bug that Ipython is not showing initial banner or is it a different bug?
Thanks.
Ok, sorry, I just saw that @dalthviz suggested you already to remove Spyder-terminal.
Hi, but after removing spyder-terminal, the error still persists.
Could you post the entire traceback of that error? Also, are you able to see Spyder after it? Or it simply dies?
Is this the same as the bug that Ipython is not showing initial banner or is it a different bug?
Nop, it's not. Please open a new issue about it.
@ccordoba12
No it doesn't die. It is working without any noticeable problem. How do I get a back trace of the error? I will open a new issue.
No it doesn't die. It is working without any noticeable problem. How do I get a back trace of the error?
So, where does the error show up? Are you only seeing it in the terminal where you start Spyder?
I will open a new issue.
Ok, thanks!
@ccordoba12
Yeah I only see it when I start spyder from the terminal.
Ok, thanks for the confirmation @beew. We'll fix that error in 6.0.1, to be released in a couple of weeks.
@ccordoba12
I applied your commit https://github.com/spyder-ide/spyder/commit/d859b8334ef2b2048de190f0219a47eb26337fcc manually and can confirm that there is no more error at start up.
Thanks.
Great! Thanks for letting us know about it @beew.
However, I'm going to reopen this issue because so we don't forget to fix the problem with Spyder-terminal.
Hi, I'm also having similar bug after installing spyder, in a newly created virtual environment, using pip: python3 -m venv spydy source spydy/bin/activate
pip install spyder pip install spyder-terminal spyder
(spydy) mw@mi:/media/sf/projects$ terminal: cannot import name 'QStylePalette' from 'spyder.utils.palette' (/media/sf/projects/spydy/lib/python3.10/site-packages/spyder/utils/palette.py) Traceback (most recent call last): File "/media/sf/projects/spydy/lib/python3.10/site-packages/spyder/app/find_plugins.py", line 71, in find_external_plugins mod = importlib.import_module(entry_point.module) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "
", line 1050, in _gcd_import File " ", line 1027, in _find_and_load File " ", line 992, in _find_and_load_unlocked File " ", line 241, in _call_with_frames_removed File " ", line 1050, in _gcd_import File " ", line 1027, in _find_and_load File " ", line 1006, in _find_and_load_unlocked File " ", line 688, in _load_unlocked File " ", line 883, in exec_module File " ", line 241, in _call_with_frames_removed File "/media/sf/projects/spydy/lib/python3.10/site-packages/spyder_terminal/init.py", line 10, in from .terminalplugin import TerminalPlugin as PLUGIN_CLASS File "/media/sf/projects/spydy/lib/python3.10/site-packages/spyder_terminal/terminalplugin.py", line 23, in from spyder_terminal.widgets.main_widget import TerminalMainWidget File "/media/sf/projects/spydy/lib/python3.10/site-packages/spyder_terminal/widgets/main_widget.py", line 30, in from spyder_terminal.widgets.terminalgui import TerminalWidget File "/media/sf/projects/spydy/lib/python3.10/site-packages/spyder_terminal/widgets/terminalgui.py", line 27, in from spyder.utils.palette import QStylePalette ImportError: cannot import name 'QStylePalette' from 'spyder.utils.palette' (/media/sf/projects/spydy/lib/python3.10/site-packages/spyder/utils/palette.py)
When I try to import QStylePalette in the python CLI:
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. import spyder.utils.palette from spyder.utils.palette import QStylePalette Traceback (most recent call last): File "
", line 1, in ImportError: cannot import name 'QStylePalette' from 'spyder.utils.palette' (/media/sf/projects/spydy/lib/python3.10/site-packages/spyder/utils/palette.py)`
Spyder version: 6.0.0 Python version: 3.10.12 PyQt version: 5.15.11 Operating System name/version: Linux Mint 21.3 x86_64
@mikewasouski, please uninstall Spyder-terminal because it's not compatible with Spyder 6.
I thought Spyder was crashing due to Spyder-terminal, but that was not the case according to @beew:
But spyder does start and seems to be working.
So, I think we can safely close this issue, as @beew did before.
FYI, there's already a volunteer working on updating Spyder-terminal for Spyder 6. So a new version for it will available in the coming weeks.
Problem Description
Just updated spyder to v6.0.0 When start spyder in the terminal
get these error messages,
But spyder does start and seems to be working.
What steps reproduce the problem?
Just start spyder from the terminal
What is the expected output? What do you see instead?
expected output should be nothing, but I saw the above
Versions
Dependencies