Menu

#1 python compile error

open
nobody
None
5
2004-03-26
2004-03-26
Anonymous
No

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)

Discussion

  • Kevin M. Gill

    Kevin M. Gill - 2004-03-26

    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

     
  • Kevin M. Gill

    Kevin M. Gill - 2004-03-26
    • summary: python compile error --> python compile error
    • status: open --> pending
     
  • Kevin M. Gill

    Kevin M. Gill - 2004-03-26
    • status: pending --> open
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.