python compile error
Status: Beta
Brought to you by:
kmg_usmc
Using the 0.2.1 rpm on redhat 9.
python 2.2.2 installed (python-2.2.2-26.rpm) with
-devel installed too
I have a working dhcpd system using dhcp-3.0pl1-26
When running for the first time, I get:
dhcpdman
Traceback (most recent call last):
File "/usr/share/dhcpdman/dhcpdman.py", line 42, in ?
dhcpdconf = dhcpdconfobject.dhcpdConf(confFile)
File "/usr/share/dhcpdman/dhcpdconfobject.py", line
178, in __init__
self.subnets[key_vol_nets][chop[0]] =
string.strip(string.strip(chop[1], ";"), "\"")
TypeError: strip() takes exactly 1 argument (2 given)
Logged In: YES
user_id=476522
upgrade to python >= 2.2.3
(http://mirrors.kernel.org/fedora/core/1/i386/os/Fedora/RPMS/
)
In Python 2.2.3, support was added for the two parameter
string.strip(str[,chars]) which allows you to strip whitespace,
or specified characters (in this case ; and ") from the left and
right of a string. The python packages from Fedora Core 1
should resolve this for you.
I should have included that in the rpm requirement, thanks for
bringing it to my attention.
Good luck,
Kevin Gill