Bug 2269780

Summary: IPython console doesn't start
Product: [Fedora] Fedora Reporter: Sandro <gui1ty>
Component: spyderAssignee: Sandro <gui1ty>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: code, jamatos, jonathan, neuro-sig, prgutier
Target Milestone: ---Keywords: Desktop, Regression
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: spyder-6.0.0~a4-4.20240308gitv6.0.0a4.fc41 spyder-6.0.0~a4-4.20240308gitv6.0.0a4.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-26 16:42:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sandro 2024-03-16 09:10:47 UTC
Either running alpha-1 (on F40) or alpha-4 from copr  the ipython console does not start.

It displays the following error:
An error occurred while starting the kernel
[SpyderKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled

Do you see this?

Reproducible: Always

Steps to Reproduce:
1. Open Spyder 6.0.0~a1 or 6.0.0~a4
2.
3.
Actual Results:  
Error message shown.

Expected Results:  
IPython console started

Comment 1 Sandro 2024-03-16 09:12:43 UTC
Follow up from bug 2106899 comment 40.

Comment 2 Sandro 2024-03-16 10:13:57 UTC
The mentioned `debugpy_stream` is used in `ipykernel`. Seeing that the version of that package is the same across branches F39+ and Spyder 5 not having any issues starting IPython console, I suspect some change in either Spyder itself or `spyder-kernels` being involved.

Comment 3 Sandro 2024-03-16 10:58:42 UTC
Reported upstream for now. But I'll also try debugging this locally a bit more.

Comment 4 Sandro 2024-03-24 19:37:32 UTC
I found a workaround of some kind for Spyder 6.0.0a4: https://github.com/spyder-ide/spyder/issues/21900#issuecomment-2016917421

Comment 5 Sandro 2024-03-25 10:23:53 UTC
Upstream fixed it. I've included the patch in the latest build available from Copr[1]. I will update Spyder in rawhide to 6.0.0a4 this week. F40 is currently blocked by bug 2271325. But it will follow as soon as pyside6 has been branched for F40.

[1] https://copr.fedorainfracloud.org/coprs/gui1ty/Spyder6/builds/

Comment 6 José Matos 2024-03-25 11:18:49 UTC
(In reply to Sandro from comment #5)
> Upstream fixed it. I've included the patch in the latest build available
> from Copr[1]. I will update Spyder in rawhide to 6.0.0a4 this week. F40 is
> currently blocked by bug 2271325. But it will follow as soon as pyside6 has
> been branched for F40.
> 
> [1] https://copr.fedorainfracloud.org/coprs/gui1ty/Spyder6/builds/

I confirm that the copr update fixes this issue. :-)

Comment 7 Fedora Update System 2024-03-26 16:37:37 UTC
FEDORA-2024-343539e9cf (spyder-6.0.0~a4-4.20240308gitv6.0.0a4.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-343539e9cf

Comment 8 Fedora Update System 2024-03-26 16:42:32 UTC
FEDORA-2024-343539e9cf (spyder-6.0.0~a4-4.20240308gitv6.0.0a4.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2024-03-26 17:17:47 UTC
FEDORA-2024-c552c1b9fd (python-cmap-0.2.0-1.fc40, python-pyconify-0.1.6-1.fc40, and 5 more) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-c552c1b9fd

Comment 10 Fedora Update System 2024-03-27 02:35:41 UTC
FEDORA-2024-c552c1b9fd has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-c552c1b9fd \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-c552c1b9fd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2024-03-30 01:56:27 UTC
FEDORA-2024-c552c1b9fd (python-cmap-0.2.0-1.fc40, python-pyconify-0.1.6-1.fc40, and 5 more) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.