net command not working

Lukasz Zalewski lukas at
Mon Sep 13 01:46:08 MDT 2010

On 09/13/2010 08:33 AM, Rohit Rajan wrote:
> Hi All,
> I'm getting the following error when trying to run the "net" command,
> i'm running samba Version 4.0.0alpha12-GIT-35aed17, Python 2.4, centos 5.5
> #net
> Traceback (most recent call last):
> File
> "/usr/local/samba/lib/python2.4/site-packages/samba/netcmd/",
> line 167, in ?
> from samba.netcmd.join import cmd_join
> File
> "/usr/local/samba/lib/python2.4/site-packages/samba/netcmd/",
> line 26, in ?
> from samba.join import join_rodc
> File "/usr/local/samba/lib/python2.4/site-packages/samba/", line
> 33, in ?
> from samba.drs_utils import drs_Replicate
> File "/usr/local/samba/lib/python2.4/site-packages/samba/",
> line 26
> class drs_Replicate():
> ^
> Thanks
> Rohit Rajan
> -----------
> This message may contain confidential, proprietary or legally privileged
> information. In case you are not the original intended recipient of the
> message, you must not, directly or indirectly, use, disclose,
> distribute, print, or copy any part of this message and you are
> requested to delete it and inform the sender.
> Any views expressed in this message are those of the individual sender
> unless otherwise stated. Nothing contained in this message shall be
> construed as an offer or acceptance of any offer by "Catalyst Business
> Partners" or any of its subsidiaries unless sent with that express
> intent and with due authority of Catalyst Business Partners.
> Catalyst Business Partners has taken sufficient measures and precautions
> to prevent the spread of viruses. However the company accepts no
> liability for any damage caused by any virus transmitted by this email.

Hi Rohit,
I'm just about to submit a patch regarding that. The problem is caused 
by the () at the end of a class definition, which upsets python 2.4.
I have never seen such syntax for a class definition anywhere



More information about the samba-technical mailing list