Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionRadka Brychtova
2014-09-23 15:23:30 UTC
In RHEL7 repository is missing python-smbc package, which is needed by system-config-printer when try to add samba printer.
+++ This bug was initially created as a clone of Bug #1025946 +++
Description of problem:
system-config-printer cannot add new printer from samba network without python-smbc
$ system-config-printer
** (system-config-printer.py:13193): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
** (system-config-printer.py:13193): WARNING **: Can't load fallback CSS resource: Failed to import: The resource at '/org/gnome/adwaita/gtk-fallback.css' does not exist
Caught non-fatal exception. Traceback:
File "/usr/share/system-config-printer/newprinter.py", line 2531, in on_btnSMBVerify_clicked
ctx = pysmb.smbc.Context (debug=debug, auth_fn=do_auth)
NameError: global name 'pysmb' is not defined
Continuing anyway..
Actual results:
no error message printer is just inaccessible
Expected results:
I should see error message: "You are stupid user, you have to install python-smbc before you try to add samba printer"
Additional info:
--- Additional comment from Tim Waugh on 2013-11-04 06:25:39 EST ---
Inaccessible? The Verify button won't work, but surely Forward works fine?
--- Additional comment from Jozef Mlich on 2013-11-04 09:08:31 EST ---
I apologize for misleading description of problem. I don't know whether forward button works. I didn't even tried it, because password was "wrong".
In case the python-smbc is not installed, the user enters correct password, its verification fails. At the end the users ask administrator of network printer for help.
The problem is, the system-config-printer should distinguish whether the password is incorrect, or the necessary package is missing.
The expected behaviour is to show correct error message. The error message should lead to installation of package instead of printer password change. But not in the opposite case, when the package is installed and functional.
In case of need of additional information, please run "yum remove python-smbc" command.
--- Additional comment from Tim Waugh on 2013-11-18 07:55:35 EST ---
I think the upstream system-config-printer commit 1dffd4a is the final bit of the fix for this.
https://git.fedorahosted.org/cgit/system-config-printer.git/commit/?id=1dffd4a
--- Additional comment from Fedora Update System on 2014-03-17 05:10:50 EDT ---
system-config-printer-1.4.4-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/system-config-printer-1.4.4-1.fc20
--- Additional comment from Fedora Update System on 2014-03-18 04:14:54 EDT ---
Package system-config-printer-1.4.4-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing system-config-printer-1.4.4-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4014/system-config-printer-1.4.4-1.fc20
then log in and leave karma (feedback).
--- Additional comment from Fedora Update System on 2014-03-30 02:03:19 EDT ---
system-config-printer-1.4.4-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
Created attachment 1347098[details]
Backported patch
Patch backported from upstream and works.
Steps to test it:
1) and 2) same as in previous comment
3) when trying to add SAMBA printer "Verify..." button is now grey and dialog shows "Verification requires the pysmbc module" now when mouse is focused on button.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2018:0984