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
[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
Any idea if this is a installation error, or something else?
What version of Python are you running?
rpm -qa | grep python
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.