Followed installation steps here http://wiki.samba.org/index.php/Samba4/HOWTO At Step 4: provision Samba4 receive the following error: [source4]# ./setup/provision --realm=domain.com --domain=SAMBA4 --adminpass=somepassword --server-role='domain controller' File "./setup/provision", line 37 from samba.provision import (provision, ^ SyntaxError: invalid syntax Python 2.3.4 (#1, Jul 25 2008, 14:24:21) [source4]# echo $PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/ usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin/pkg-config:/usr/local/samba/lib/ :/usr/local/samba/:/usr/local/samba/bin:/perl5/Parse:/root/bin [source4]# cat /etc/redhat-release CentOS release 4.7 (Final) [source4]# perl -v This is perl, v5.8.5 built for i386-linux-thread-multi
Jelmer, Any idea if this is a installation error, or something else?
What version of Python are you running?
rpm -qa | grep python python-urlgrabber-2.9.8-2 python-elementtree-1.2.6-7.el4.rf python-devel-2.3.4-14.7.el4 gnome-python2-bonobo-2.6.0-3 gnome-python2-gtkhtml2-2.6.0-3 python-ldap-2.0.1-2 rpm-python-4.3.3-26_nonptl gnome-python2-canvas-2.6.0-3 libxml2-python-2.6.16-12.5 dbus-python-0.22-12.EL.9 postgresql-python-7.4.19-1.el4_6.1 python-sqlite-1.1.7-1.2.1 gnome-python2-2.6.0-3 mod_python-3.1.3-5.1 python-2.3.4-14.7.el4 Cheers
It looks like the "from foo import (...)" (with parentheses) syntax isn't supported in Python2.3.
After upgrading Python to 2.6 the problem still exists. It appears CentOS 4.7 might have other packages that are not compatible. Installing on CentOS 5.2 appears to work.
are you sure it's actually using python 2.6 and not one of the older versions still installed on the system?
It doesn't seem to be a bug, because the Python version could be inappropriate. Please make sure to use the right version (like Jelmer asked in the previous post). If no other problem is found, I'll close this bug with "INVALID".
Shall I open another bug that says Samba should not build if the python version is not the right one? or should I change this one?
I adapt the bug. It is a problem regarding the dependency test in the "configure" script. Jelmer, I think you are the right man for improving the python version check, so I assign it up to you.
Change also the description.
Should be fixed now through a patch by Jelmer.