Bug 83292 - Python error when configuring SMB printer
Summary: Python error when configuring SMB printer
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: redhat-config-printer
Version: phoebe
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2003-02-01 17:47 UTC by Felipe Alfaro Solana
Modified: 2007-04-18 16:50 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2003-02-01 23:51:49 UTC

Attachments (Terms of Use)

Description Felipe Alfaro Solana 2003-02-01 17:47:35 UTC
Description of problem:
On Phoebe2, I get the following error logged to the console when trying to
configure a Networked Windows (SMB) printer:

Traceback (most recent call last):
  File "/usr/share/printconf/util/addQueue.py", line 822, in smb_specify_clicked
    machine, sharename = match.groups ()
AttributeError: 'NoneType' object has no attribute 'groups'

Version-Release number of selected component (if applicable):

How reproducible:
Always (only seems to happen with SMB printers and not CUPS/IPP printers)

Steps to Reproduce:
1. Open a terminal
2. Su to root
3. Run "redhat-config-printer"
4. Choose to add a Networked Windows (SMB) printer.
5. Click the "Specify" button to enter the following authentication information
(don't mind if the host, username or else are invalid):
6. Leave Workgroup blank.
7. Enter a valid host name for a Windows print server
8. Enter a valid queue name
9. Enter a Username that contains blank spaces (in my case, it was "Felipe
Alfaro Solana")
10. Enter something as Password
11. Click OK
12. The error message described above is logged to the console and the operation

Actual results:
Can't add a Windows printer.

Expected results:
Some Python problems appear to  keep me from adding a Windows printer.

Additional info:
Remote printer server is a Spanish Windows XP Professional, Service Pack 1.
Remote queue is an HP DeskJet 970Cxi USB printer with a queue name of "HP".
My Windows box is called "FAB".
The Username required to print is "Felipe Alfaro Solana".

Comment 1 Tim Waugh 2003-02-01 23:51:49 UTC
Please try the latest version from rawhide, which should fix this problem.

Note You need to log in before you can comment on or make changes to this bug.