Python error while installing samba

Hello,

I tried to install samba server from App Store but got an error message.
I’ve found the manual install for samba in this forum, but the following error then appeared (probably the same error after unsuccessful installation from App Store).

Did some of you solve this problem ?

Thanks

Ludovic

osmc@osmc:~$ sudo apt-get install smb-app-osmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  smb-app-osmc
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
4 not fully installed or removed.
Need to get 0 B/3268 B of archives.
After this operation, 0 B of additional disk space will be used.
Setting up python-crypto (2.6.1-5) ...
Sorry: TypeError: compile() expected string without null bytes
Sorry: TypeError: compile() expected string without null bytes
Sorry: TypeError: compile() expected string without null bytes
Sorry: TypeError: compile() expected string without null bytes
dpkg: error processing package python-crypto (--configure):
 subprocess installed post-installation script returned error exit status 101
dpkg: dependency problems prevent configuration of python-samba:
 python-samba depends on python-crypto; however:
  Package python-crypto is not configured yet.

dpkg: error processing package python-samba (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba-common-bin:
 samba-common-bin depends on python-samba; however:
  Package python-samba is not configured yet.

dpkg: error processing package samba-common-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba:
 samba depends on python-samba; however:
  Package python-samba is not configured yet.
 samba depends on samba-common-bin (= 2:4.2.10+dfsg-0+deb8u2); however:
  Package samba-common-bin is not configured yet.

dpkg: error processing package samba (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-crypto
 python-samba
 samba-common-bin
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)