Bug 2220598

Summary: F39FailsToInstall: python3-spyder
Product: [Fedora] Fedora Reporter: Fedora Fails To Install <fti-bugs>
Component: spyderAssignee: Jonathan Wright <jonathan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 39CC: awilliam, code, jonathan, mhroncok, nonamedotc, prgutier
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spyder-5.4.5-23.fc40 spyder-5.4.5-23.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-03 18:05:47 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:
Bug Depends On: 2220314, 2220316, 2220472, 2220475, 2220520, 2220534    
Bug Blocks: 2135404, 2168845    

Description Fedora Fails To Install 2023-07-05 19:24:28 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

Your package (spyder) Fails To Install in Fedora 39:

can't install python3-spyder:
  - nothing provides (python3.12dist(python-lsp-server) < 1.5~~ with python3.12dist(python-lsp-server) >= 1.4.1) needed by python3-spyder-5.3.1-7.fc39.noarch
  - nothing provides (python3.12dist(qdarkstyle) < 3.1~~ with python3.12dist(qdarkstyle) >= 3.0.2) needed by python3-spyder-5.3.1-7.fc39.noarch
  - nothing provides (python3.12dist(spyder-kernels) < 2.4~~ with python3.12dist(spyder-kernels) >= 2.3.1) needed by python3-spyder-5.3.1-7.fc39.noarch
  - nothing provides python3.12dist(diff-match-patch) >= 20181111 needed by python3-spyder-5.3.1-7.fc39.noarch
  - nothing provides python3.12dist(python-lsp-black) >= 1.2 needed by python3-spyder-5.3.1-7.fc39.noarch
  - nothing provides python3.12dist(qstylizer) >= 0.1.10 needed by python3-spyder-5.3.1-7.fc39.noarch
  - nothing provides python3.12dist(textdistance) >= 4.2 needed by python3-spyder-5.3.1-7.fc39.noarch
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.


P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-39-x86_64 --config-opts mirrored=False install python3-spyder


P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Fedora Fails To Install 2023-07-13 12:02:01 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on devel.org if you are unsure how to fix this bug.

Comment 2 Mukundan Ragavan 2023-07-27 02:06:39 UTC
I will try and fix this

Comment 3 Fedora Fails To Install 2023-08-05 09:31:53 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 4+ weeks.
This is the second reminder (step 4) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 5 Fedora Release Engineering 2023-08-16 07:18:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 6 Fedora Admin user for bugzilla script actions 2023-08-16 12:57:46 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 7 Fedora Fails To Install 2023-08-17 13:47:44 UTC
This package has been orphaned.

You can pick it up at https://src.fedoraproject.org/rpms/spyder by clicking button "Take". If nobody picks it up, it will be retired and removed from a distribution.

Comment 8 Fedora Admin user for bugzilla script actions 2023-08-18 01:00:37 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 9 Priscila Gutierres 2023-08-18 13:28:54 UTC
This issue is due to missing sub-dependencies. For example, python-qdarkstyle needs python-abi, but nothing provides it:

[root@6b78e48b79b5 /]# dnf install python-qdarkstyle
Last metadata expiration check: 1:22:36 ago on Fri Aug 18 11:28:59 2023.
Error: 
 Problem: conflicting requests
  - nothing provides python(abi) = 3.11 needed by python3-qdarkstyle-3.0.2-7.fc38.noarch from fedora
  - nothing provides python3.11dist(qtpy) >= 1.9 needed by python3-qdarkstyle-3.0.2-7.fc38.noarch from fedora
(try to add '--skip-broken' to skip uninstallable packages)
[root@6b78e48b79b5 /]# dnf install python-abi
Last metadata expiration check: 1:23:58 ago on Fri Aug 18 11:28:59 2023.
No match for argument: python-abi
Error: Unable to find a match: python-abi

Comment 10 Fedora Fails To Install 2023-08-18 20:00:34 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 11 Adam Williamson 2023-08-29 18:34:02 UTC
Priscila: well, what that means is that qdarkstyle has not been rebuilt for Python 3.12.

There are several problems here, actually.

First of all, the version of spyder we're building is outdated; upstream is up to 5.4.4, which changes several of the dependency version ranges specified here.

Second, spyder upstream still has a constraint on jedi version to be < 0.19.0, even though lsp (which is where spyder gets the dep from) has already bumped it to be < 0.20.0: https://github.com/python-lsp/python-lsp-server/commit/f33a93afc8c3a0f16751f9e1f6601a37967fd7df

Third, several deps have not yet been rebuilt for Python 3.12: python-qdarkstyle , python-lsp-server and python-lsp-black.

Comment 12 Adam Williamson 2023-08-29 18:38:57 UTC
Filed https://github.com/spyder-ide/spyder/issues/21296 for the spyder jedi dependency bound issue.

Comment 13 Adam Williamson 2023-08-29 19:00:52 UTC
Jonathan, you may wish to pick up python-qdarkstyle , which Mukundan orphaned alongside this: https://bugzilla.redhat.com/show_bug.cgi?id=2220472 .

Unfortunately, it depends on pyside2 which is also ftbfs on 3.12 - https://bugzilla.redhat.com/show_bug.cgi?id=2220452 - and looks like a mess I don't want to deal with.

The other dep chain - the lsp stuff - is similarly nightmarish. We would really want to bump python-lsp-server to the most recent upstream release, 1.7.4 (the one we have, 1.4.1, is ancient). I'd hope the most recent release has a decent chance of working with 3.12. But it has its own dependency problems: it needs a newer version of python-rope, which has added a new dependency itself - pytoolconfig - which is not currently packaged for Fedora. The lowest version of rope that lsp-server 1.7.4 will accept is 1.2.0, which already has the pytoolconfig dependecy. Again I don't feel up to tackling all of that right now.

Comment 14 Fedora Fails To Install 2023-09-12 10:38:27 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 4+ weeks.
This is the second reminder (step 4) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 15 Priscila Gutierres 2023-09-13 11:49:49 UTC
I would like to contribute to this troubleshooting, I have already done some similar  at work, however I'm not a Fedora mantainer and I would need some guidance. 
We could work together on this.

Comment 16 Ben Beasley 2023-09-16 22:02:25 UTC
(In reply to Adam Williamson from comment #13)
> Jonathan, you may wish to pick up python-qdarkstyle , which Mukundan
> orphaned alongside this: https://bugzilla.redhat.com/show_bug.cgi?id=2220472
> .
> 
> Unfortunately, it depends on pyside2 which is also ftbfs on 3.12 -
> https://bugzilla.redhat.com/show_bug.cgi?id=2220452 - and looks like a mess
> I don't want to deal with.

I picked up the python-qdarkstyle/python-qtsass/python-libsass dependency chain. I will probably also pick up python-helpdev, which is a python-qdarkstyle dependency (but could be patched out in a pinch).

The fix for python-qdarkstyle was simply to drop PySide2 support in F39 and later until and unless it is fixed for Python 3.12. Spyder uses it wit PyQt5 anyway.

I’m still working on tidying up the above packages and carefully getting them fully updated.

Comment 17 Ben Beasley 2023-09-16 22:16:04 UTC
> $ mock -r fedora-rawhide-x86_64 -i python3-spyder
> ...
>   - nothing provides (python3.12dist(jedi) < 0.19~~ with python3.12dist(jedi) >= 0.17.2) needed by python3-spyder-5.3.1-8.fc39.noarch from fedora

The package python-jedi was upgraded from 0.18.2 to 0.19.0 in Rawhide/F40 and F39, but Spyder upper-bounds the version of its dependency. This bound is still present in git master upstream, so upgrading the version of Spyder will not help. Adam raised the issue upstream in https://github.com/spyder-ide/spyder/issues/21296; a PR is needed. We can then loosen the bound downstream and reference the issue and PR.

>  - nothing provides (python3.12dist(python-lsp-server) < 1.5~~ with python3.12dist(python-lsp-server) >= 1.4.1) needed by python3-spyder-5.3.1-8.fc39.noarch from fedora
>  - nothing provides python3.12dist(python-lsp-black) >= 1.2 needed by python3-spyder-5.3.1-8.fc39.noarch from fedora

The python-lsp-* packages are broken. Sandro is working on this.

>  - nothing provides (python3.12dist(qtconsole) < 5.4~~ with python3.12dist(qtconsole) >= 5.3) needed by python3-spyder-5.3.1-8.fc39.noarch from fedora

The package python-qtconsole was upgraded from 5.3.2 to 5.4.4 in Rawhide/F40 (but not F39), but Spyder upper-bounds the version of its dependency. This can be fixed by upgrading Spyder to a 5.4.x series release.

Comment 18 Adam Williamson 2023-09-16 22:34:29 UTC
"Adam raised the issue upstream in https://github.com/spyder-ide/spyder/issues/21296; a PR is needed."

Yeah, sorry, I never got around to sending the PR.

"We can then loosen the bound downstream and reference the issue and PR."

You might rather want to just backport the PR. The dependency is autogenerated from the sources, and I find it's easier to just fix the dependency specified in the sources than try to exclude it from or override the generator...

Comment 19 Ben Beasley 2023-09-17 01:04:23 UTC
(In reply to Adam Williamson from comment #18)
> You might rather want to just backport the PR. The dependency is
> autogenerated from the sources, and I find it's easier to just fix the
> dependency specified in the sources than try to exclude it from or override
> the generator...

Right, I didn’t communicate very clearly, but I agree that applying a patch based on a PR or commit hash is preferable whenever it’s reasonably straightforward to do so.

I’ll do the PR if I have a chance and nobody else gets to it first.

Comment 20 Miro Hrončok 2023-09-23 18:31:33 UTC
This package is listed in https://pagure.io/releng/issue/11685 and it will be retired in 3 days if not at least ASSIGNED.

Comment 21 Adam Williamson 2023-09-23 19:20:15 UTC
As folks are clearly actively working on this, I'm gonna go ahead and mark it ASSIGNED so it doesn't get retired, that would make things more inconvenient.

Comment 22 Fedora Update System 2023-10-02 12:53:23 UTC
FEDORA-2023-518a1d3a2f has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-518a1d3a2f

Comment 23 Fedora Update System 2023-10-02 13:00:24 UTC
FEDORA-2023-0c37ed530f has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0c37ed530f

Comment 24 Fedora Update System 2023-10-02 13:01:43 UTC
FEDORA-2023-0c37ed530f has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 25 Fedora Update System 2023-10-03 00:19:37 UTC
FEDORA-2023-518a1d3a2f has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 26 Adam Williamson 2023-10-03 17:10:15 UTC
This is for F39, not Rawhide. Proposing for an FE under the FTI-gets-FE convention.

Comment 27 Adam Williamson 2023-10-03 18:05:47 UTC
oh, d'oh, misread.