Bug 1784088 - Import of smb module not working, fleet-commander package not usable
Summary: Import of smb module not working, fleet-commander package not usable
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 31
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-16 17:12 UTC by David Voit
Modified: 2019-12-17 08:29 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-12-17 08:29:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.