John Dekowski
2012-Jun-07 20:19 UTC
[Samba] Gentoo Linux-installed Samba 4 alpha 21 getting python error
I installed the Samba 4 alpha 21 using the Samba 4 alpha 20 ebuild as a template: When I try to run the samba-tool command, I keep getting *Code:*File "/usr/bin/samba-tool", line 38 except SystemExit, e: ^ SyntaxError: invalid syntax
Amitay Isaacs
2012-Jun-14 03:56 UTC
[Samba] Gentoo Linux-installed Samba 4 alpha 21 getting python error
On Fri, Jun 8, 2012 at 6:19 AM, John Dekowski <jdekowski at gmail.com> wrote:> I installed the Samba 4 alpha 21 using the Samba 4 alpha 20 ebuild as a > template: > > When I try to run the samba-tool command, I keep getting > > *Code:*File "/usr/bin/samba-tool", line 38 > ? ?except SystemExit, e: > ? ? ? ? ? ? ? ? ? ? ^ > SyntaxError: invalid syntaxWhat version of python are you using? Samba requires python 2.x and not 3.x. Amitay.
Bjoern Baumbach
2012-Jun-14 09:02 UTC
[Samba] Gentoo Linux-installed Samba 4 alpha 21 getting python error
On 06/14/2012 05:56 AM, Amitay Isaacs wrote:> On Fri, Jun 8, 2012 at 6:19 AM, John Dekowski <jdekowski at gmail.com> wrote: >> > I installed the Samba 4 alpha 21 using the Samba 4 alpha 20 ebuild as a >> > template: >> > >> > When I try to run the samba-tool command, I keep getting >> > >> > *Code:*File "/usr/bin/samba-tool", line 38 >> > except SystemExit, e: >> > ^ >> > SyntaxError: invalid syntax > What version of python are you using? Samba requires python 2.x and not 3.x.Please use "eselect python list" to check your python version. python2.7 is working for me. In some cases you need to run "python-updater". Bj?rn -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kontakt at sernet.de