Bug 2291789

Summary: F41FailsToInstall: python3-netmiko (does not work with Python 3.13 due to removed telnetlib)
Product: [Fedora] Fedora Reporter: Fedora Fails To Install <fti-bugs>
Component: python-netmikoAssignee: Dmitry Tantsur <dtantsur>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: awilliam, dtantsur, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-09 12:47:24 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: 2291946    
Bug Blocks: 2260877, 2244836    

Description Fedora Fails To Install 2024-06-12 11:26:00 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 (python-netmiko) Fails To Install in Fedora 41:

can't install python3-netmiko:
  - nothing provides python(abi) = 3.12 needed by python3-netmiko-4.3.0-1.fc41.noarch
  - nothing provides python3.12dist(paramiko) >= 2.9.5 needed by python3-netmiko-4.3.0-1.fc41.noarch
  - nothing provides python3.12dist(pyserial) >= 3.3 needed by python3-netmiko-4.3.0-1.fc41.noarch
  - nothing provides python3.12dist(pyyaml) >= 5.3 needed by python3-netmiko-4.3.0-1.fc41.noarch
  - nothing provides python3.12dist(scp) >= 0.13.6 needed by python3-netmiko-4.3.0-1.fc41.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-41-x86_64 --config-opts mirrored=False install python3-netmiko


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 Adam Williamson 2024-06-12 18:10:13 UTC
This is because Python 3.13 landed. netmiko was not built as part of it. This appears to be because it buildrequires python3-textfsm, which requires "python3.13dist(future)", which doesn't exist, because future failed to build for 3.13 due to the 2to3 and uu libraries being removed in 3.13:

https://bugzilla.redhat.com/show_bug.cgi?id=2291946 (textfsm)
https://bugzilla.redhat.com/show_bug.cgi?id=2250662 (future)

Comment 2 Adam Williamson 2024-06-12 18:33:46 UTC
OK, I fixed textfsm not to require future, so we should be able to rebuild netmiko now.

Comment 3 Adam Williamson 2024-06-12 18:44:30 UTC
Unfortunately, we now run into a much more fundamental issue: netmiko heavily uses telnetlib, which is removed in Python 3.13 - https://docs.python.org/3.13/whatsnew/3.13.html#pep-594-dead-batteries-and-other-module-removals . The upstream issue - https://github.com/ktbyers/netmiko/issues/3177 - is open and no fixes are posted; one suggestion is to just vendor telnetlib.py (https://github.com/ktbyers/netmiko/issues/3177#issuecomment-1726629323 ).

Comment 4 Fedora Fails To Install 2024-06-19 20:05:13 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 5 Dmitry Tantsur 2024-07-08 14:52:50 UTC
Status update: the issue has been addressed upstream. I'm waiting for a release - the maintainer is working on it (hitting some roadblocks with a dependency).

Comment 6 Dmitry Tantsur 2024-07-09 12:19:18 UTC
Blocked on python-cffi now. A new version with 3.13 fixes is available as RC1, the corresponding bug is WONTFIX: https://bugzilla.redhat.com/show_bug.cgi?id=2283074.

Comment 7 Miro HronĨok 2024-07-09 12:23:07 UTC
> Blocked on python-cffi now.

Blocked how?

Comment 8 Dmitry Tantsur 2024-07-09 12:47:24 UTC
I think I'm going to hack around the dependency on 1.17rc1, so no longer blocked (and in fact, should be fixed in 4.4.0-1 now).