George Gallen on 25 Oct 2004 18:24:03 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] python / printconf problem


Title: python / printconf problem

We had a machine lose power, now I can't
restart the lpd service.

I get:

[root@swede1 util]# service lpd start
Starting lpd: Traceback (most recent call last):
  File "/usr/sbin/printconf-backend", line 7, in ?
    import printconf_backend
  File "/usr/share/printconf/util/printconf_backend.py", line 125
    : not checkNspMark(namespace = "printconf", mark = "_PRINTCONF_BACKEND_"):
    ^
SyntaxError: invalid syntax
No Printers Defined[  OK  ]

If I manually try to run printconf-tui I get:

[root@swede1 util]# printconf-tui
Traceback (most recent call last):
  File "/usr/sbin/printconf-tui", line 7, in ?
    import printconf_tui
  File "/usr/share/printconf/util/printconf_tui.py", line 43, in ?
    from printconf_conf import *
  File "/usr/share/printconf/util/printconf_conf.py", line 81, in ?
    from xml.utils import qp_xml
ImportError: No module named utils
[root@swede1 util]#   

Are these python errors? how can I trace them down? I tried deleting the .pyo files
and rerunning the script, but I still get the errors.

AAAAhhh..

George