Christophe Borivant
2018-Mar-14 15:21 UTC
[Samba] samba-tool error just after samba 4.8.0 install
Ok, for what i understand, this is a compatibility issue with python 2.6. This seems to be in relation with Dict Comprehensions (https://www.python.org/dev/peps/pep-0274/). So yet, samba 4.8 cannot run on any rhel 6 like distribution. Was it intended ? Christophe Borivant ----- Mail original ----- De: "samba" <samba at lists.samba.org> À: "samba" <samba at lists.samba.org> Envoyé: Mercredi 14 Mars 2018 15:31:26 Objet: Re: [Samba] samba-tool error just after samba 4.8.0 install Could it be a python 2.6 compatibility issue ? Christophe Borivant ----- Mail original ----- De: "samba" <samba at lists.samba.org> À: "samba" <samba at lists.samba.org> Envoyé: Mercredi 14 Mars 2018 10:40:05 Objet: [Samba] samba-tool error just after samba 4.8.0 install Hi all, I just compiled and installed samba 4.8.0 on my centos 6.9 server. After installation I wanted to run samba-tool dbcheck but it fails with the following message even when running samba-tool --help : [root at frtlse-srv018 samba-4.8.0]# samba-tool --help ERROR(<type 'exceptions.SyntaxError'>): uncaught exception - invalid syntax (ms_schema.py, line 280) File "/usr/bin/samba-tool", line 44, in <module> retval = cmd._run("samba-tool", subcommand, *args) File "/usr/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 223, in _run cmd = self.subcommands[cmd_name] File "/usr/lib64/python2.6/site-packages/samba/netcmd/main.py", line 35, in __getitem__ fromlist=['cmd_%s' % attr]), File "/usr/lib64/python2.6/site-packages/samba/netcmd/dbcheck.py", line 28, in <module> from samba.dbchecker import dbcheck File "/usr/lib64/python2.6/site-packages/samba/dbchecker.py", line 32, in <module> from samba.descriptor import get_wellknown_sds, get_diff_sds File "/usr/lib64/python2.6/site-packages/samba/descriptor.py", line 31, in <module> from samba.schema import get_schema_descriptor File "/usr/lib64/python2.6/site-packages/samba/schema.py", line 28, in <module> from samba.ms_schema import read_ms_schema here is the configure command I use : ./configure --enable-fhs --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64 --with-lockdir=/var/cache/samba --------------------------------------------- Christophe Borivant -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Andrew Bartlett
2018-Mar-14 18:57 UTC
[Samba] samba-tool error just after samba 4.8.0 install
On Wed, 2018-03-14 at 16:21 +0100, Christophe Borivant via samba wrote:> Ok, for what i understand, this is a compatibility issue with python 2.6. > This seems to be in relation with Dict Comprehensions (https://www.python.org/dev/peps/pep-0274/). > > So yet, samba 4.8 cannot run on any rhel 6 like distribution. > > Was it intended ? > > Christophe BorivantI don't think it was intentional, but it is showing the increasing cost of maintaining Samba's compatibility with a version of python first released in 2008! Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
Christophe Borivant
2018-Mar-15 08:16 UTC
[Samba] samba-tool error just after samba 4.8.0 install
I understand but do you think the work will be done to make it compatible again ? If not, there should be a statement in the changelog about this broken compatibility. Christophe Borivant ----- Mail original ----- De: "Andrew Bartlett" <abartlet at samba.org> À: "Christophe BORIVANT" <cborivant at devinlec.com>, "samba" <samba at lists.samba.org> Envoyé: Mercredi 14 Mars 2018 19:57:58 Objet: Re: [Samba] samba-tool error just after samba 4.8.0 install On Wed, 2018-03-14 at 16:21 +0100, Christophe Borivant via samba wrote:> Ok, for what i understand, this is a compatibility issue with python 2.6. > This seems to be in relation with Dict Comprehensions (https://www.python.org/dev/peps/pep-0274/). > > So yet, samba 4.8 cannot run on any rhel 6 like distribution. > > Was it intended ? > > Christophe BorivantI don't think it was intentional, but it is showing the increasing cost of maintaining Samba's compatibility with a version of python first released in 2008! Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba