ipdevpoll crashes with TypeError on Python 2.4

Bug #627358 reported by macrom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
High
Morten Brekkevold

Bug Description

NAV : 3.6.0b5
OS : RHEL 5.5
(python 2.4.3)

Upon starting ipdevpoll, it crashes :
-bash-3.2# nav start ipdevpoll
Starting: ipdevpoll
-bash-3.2# nav status
Down: ipdevpoll

ipdevpoll.log says :
Traceback (most recent call last):
  File "/usr/local/nav/bin/ipdevpolld", line 21, in ?
    main()
  File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 163, in main
    processor.run()
  File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 110, in run
    self.start_ipdevpoll()
  File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 158, in start_ipdevpoll
    process.run()
  File "/usr/local/nav/lib/python/nav/ipdevpoll/daemon.py", line 51, in run
    plugins.import_plugins()
  File "/usr/local/nav/lib/python/nav/ipdevpoll/plugins/__init__.py", line 46, in import_plugins
    module_ = __import__(module_name, fromlist=[module_name])
TypeError: __import__() takes no keyword arguments

Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

Keyword arguments were introduced to the __import__ function in Python 2.5, so a slight rewrite of this line is needed to remain 2.4-compatible.

Changed in nav:
assignee: nobody → Morten Brekkevold (mbrekkevold)
importance: Undecided → High
milestone: none → 3.6.0
status: New → Confirmed
summary: - ipdevpoll crashes (nav-3.6.0b5)
+ ipdevpoll crashes with TypeError on Python 2.4
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
Changed in nav:
status: Confirmed → Fix Committed
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.