Re: Problem setting up printer on FC3

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

 



On Wed, 2004-11-24 at 06:44 -0500, Bob Chiodini wrote:
> On Tue, 2004-11-23 at 17:28, Adam Mercer wrote:
> > Hi
> > 
> > Just installed FC3 and I am having some problems setting up my
> > printer, a Lexmark Optra E312. On running system-config-printer, I
> > click on New, a little box pops up saying "Loading Printer Information
> > Please Wait..." and then disappears.  Then the egg timer mouse cursors
> > just sits there and the setup program does nothing.
> > 
> > Running system-config-printer from the command line I get the following error
> > 
> > [ram@skymoo ~]$ system-config-printer
> > sh: line 1:  5375 Segmentation fault      perl -e
> > 'ioctl(STDIN,0x84005001,$result);print $result' 2>/dev/null
> > </dev/usb/lp0
> > Traceback (most recent call last):
> >   File "/usr/share/printconf/util/queueTree.py", line 580, in new_button_clicked
> >     self.addQueue.addQueueDruid ()
> >   File "/usr/share/printconf/util/addQueue.py", line 248, in addQueueDruid
> >     self.populate_device_view ()
> >   File "/usr/share/printconf/util/addQueue.py", line 468, in
> > populate_device_view
> >     self.local_devs = self.parent.conf.scan_local_printer_devices (force)
> >   File "/usr/share/printconf/util/printconf_conf.py", line 1265, in
> > scan_local_printer_devices
> >     local_printer_devices.device_dict[dev].update(autodetect_usb_printer(dev,
> > i))
> >   File "/usr/share/printconf/util/printconf_conf.py", line 1392, in
> > autodetect_usb_printer
> >     return { "auto" : auto }
> > UnboundLocalError: local variable 'auto' referenced before assignment
> > 
> > and running system-config-printer-tui from the command line I get the following
> > 
> > [ram@skymoo ~]$ system-config-printer-tui
> > Initializing alchemist edit environment ...
> > Initializing linux printing database ...
> > Traceback (most recent call last):
> >   File "/usr/sbin/system-config-printer-tui", line 8, in ?
> >     printconf_tui.startup_and_find_cmd()
> >   File "/usr/share/printconf/util/printconf_tui.py", line 2412, in
> > startup_and_find_cmd
> >     main.cmd_handlers[cmd]()
> >   File "/usr/share/printconf/util/printconf_tui.py", line 1993, in tui_main_run
> >     qld_run()
> >   File "/usr/share/printconf/util/printconf_tui.py", line 1857, in qld_run
> >     if nqd_run():
> >   File "/usr/share/printconf/util/printconf_tui.py", line 157, in nqd_run
> >     nqd_typedata_run()
> >   File "/usr/share/printconf/util/printconf_tui.py", line 405, in
> > nqd_typedata_run
> >     nqd.typedata.handlers[nqd.queue_type_space]()
> >   File "/usr/share/printconf/util/printconf_tui.py", line 422, in
> > nqd_typedata_local_run
> >     local_devices = scan_local_printer_devices(force = 1)
> >   File "/usr/share/printconf/util/printconf_conf.py", line 1265, in
> > scan_local_printer_devices
> >     local_printer_devices.device_dict[dev].update(autodetect_usb_printer(dev,
> > i))
> >   File "/usr/share/printconf/util/printconf_conf.py", line 1392, in
> > autodetect_usb_printer
> >     return { "auto" : auto }
> > 
> > Any one have any ideas what is going wrong here and how to fix it?
> > 
> > Cheers
> > 
> > Adam

Adam it looks like the underlying python code that is used to autodetect
the usb printer has what looks to be a syntax problem. I would suspect
that isn't the case, but that is the indication. BTW, both the gui and
tui based sysconfig-printer  tools will use the same python code, so
there generally won't be much difference in behavior. 

Since the OS was installed have you tried to up2date / yum / apt-get any
upgrades. I don't specifically recall seeing this error anywhere, but
you should try that first to see if there was a bug fix reported and
fixed. If there has been no correction for the problem you will want to
report the problem in bugzilla for the developers to consider. Make sure
you add all hardware and software information that you can provide.

Good Luck.....
-- 
Sam Williams                                             samurai@xxxxxxx
+----------------------------------------------------------------------+
+"It is easy to be blinded to the essential uselessness of computers   +
+ by the sense of accomplishment you get from getting them to work at  +
+ all."                                                                +
+                                                     - Douglas Adams  +
+----------------------------------------------------------------------+


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux