Bug 1784088

Summary: Import of smb module not working, fleet-commander package not usable
Product: [Fedora] Fedora Reporter: David Voit <david.voit>
Component: sambaAssignee: Guenther Deschner <gdeschner>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 31CC: abokovoy, anoopcs, asn, gdeschner, jarrpa, jstephen, lmohanty, madam, ogutierr, sbose, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-17 08:29:13 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:
Embargoed:

Description David Voit 2019-12-16 17:12:46 UTC
Hi Samba-Package Team,

Description of problem:
ImportError: cannot import name 'smb' from 'samba' (/usr/lib64/python3.7/site-packages/samba/init.py)

In this case, running /usr/libexec/fleet-commander-admin crashes with the above error

A simple 
>> from samba import smb

in python cmd triggers the same error


How reproducible:

>> from samba import smb


Actual results:
smb module missing (this works for example on rhel7)

Expected results:
smb should be loadable

Additional info:
fleetcommander upstrem github issue created (https://github.com/fleet-commander/fc-admin/issues/237)

Thanks and Regards,
David

Comment 1 Oliver GutiƩrrez 2019-12-16 23:55:34 UTC
The problem is python3-samba package has not the smb module in it.

Comment 2 Andreas Schneider 2019-12-17 08:29:13 UTC
The SMB client bindings which came from the Samba AD code have been removed, as they don't support SMB2+. You should use the client bindings we offer for Samba FS which support SMB1, SMB2 and SMB3.


    from samba import libsmb


Those are available since 2012.