Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1361789

Summary: pyftpdlib: python2-pyftpdlib requires both Python 2 and Python 3
Product: [Fedora] Fedora Reporter: Petr Viktorin <pviktori>
Component: pyftpdlibAssignee: Athmane Madjoudj <athmanem>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: athmanem, silas
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: 2016-07-30 16:11:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1285816, 1312032    
Attachments:
Description Flags
Patch that moves the script none

Description Petr Viktorin 2016-07-30 12:43:25 UTC
Created attachment 1185807 [details]
Patch that moves the script

Hello,
Thank you for your effort of porting pyftpdlib to Python 3 in Fedora! It's much appreciated.

However, there's one more issue: the /usr/bin/ftpbench script runs under Python 3 (as it should, according to guidelines), but it's packaged under the python2 subpackage.

Here's a patch to solve the issue.

It's OK to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 25 as well.



There is a section on shebangs in the Python RPM Porting Guide [0]
which covers this issue.

If anything is unclear, or if you need any kind of assistance, you can
ask on IRC (#fedora-python on Freenode), or reply here. We'll be happy
to help investigating or fixing this issue!

[0] http://python-rpm-porting.readthedocs.io/en/latest/application-modules.html#are-shebangs-dragging-you-down-to-python-2

Comment 1 Petr Viktorin 2016-07-30 12:44:24 UTC
A Koji scratch build is here: http://koji.fedoraproject.org/koji/taskinfo?taskID=15073823

Comment 2 Athmane Madjoudj 2016-07-30 16:11:52 UTC
I missed that one, fixed in rawhide/f25, thanks for the patch.