George Gallen on 27 Oct 2004 13:21:03 -0000


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

RE: [PLUG] python / printconf problem


Title: python / printconf problem
I fixed this by Upgrading the 7.2 OS to 9.0, so it reloaded all the correct files.
Something got hosed with the power failure. Not sure what however.
 
One thing I noticed between the two in 9.0 (maybe 8.0), if you want another
system to be able to use your printer via lpd/lpr, you have to set the permissions
in /etc/lpd.perms, otherwise it will reject the jobs. This screwed up a working
system for a little bit till I figured out it was a permissions issue, and was able
to narrow it down to the correct file/setting.
 
George
-----Original Message-----
From: plug-admin@lists.phillylinux.org [mailto:plug-admin@lists.phillylinux.org]
Sent: Monday, October 25, 2004 2:24 PM
To: plug@lists.phillylinux.org
Subject: [PLUG] 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