Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574630 - app-admin/system-config-printer incomplete dependencies
Summary: app-admin/system-config-printer incomplete dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-13 13:25 UTC by Oleh
Modified: 2018-11-02 13:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh 2016-02-13 13:25:03 UTC
When using MATE desktop and
in Control Center and click Print Settings, it doesn't open or do anything. 
Manual running of 
/usr/bin/python /usr/share/system-config-printer/system-config-printer.py shows problem, described in Actual Results.
After merging additional packages its functional. I believe they are optional but would be good to fix this.

Reproducible: Always

Steps to Reproduce:
1. emerge system-config-printer
2. use steps in Description
3. emerge urllib3 requests cups-pk-helper
4. back to Description steps and notice that print settings are working
Actual Results:  
error raised: [load_xbel_store: couldn't load bookmark file [NULL]
]

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 70, in <module>
    import cupshelpers
  File "/usr/lib64/python3.3/site-packages/cupshelpers/__init__.py", line 60, in <module>
    from . import openprinting
  File "/usr/lib64/python3.3/site-packages/cupshelpers/openprinting.py", line 22, in <module>
    import requests, urllib.request, urllib.parse, urllib.error, platform, threading, tempfile, traceback
ImportError: No module named 'requests'
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 70, in <module>
    import cupshelpers
  File "/usr/lib64/python3.3/site-packages/cupshelpers/__init__.py", line 60, in <module>
    from . import openprinting
  File "/usr/lib64/python3.3/site-packages/cupshelpers/openprinting.py", line 22, in <module>
    import requests, urllib.request, urllib.parse, urllib.error, platform, threading, tempfile, traceback
ImportError: No module named 'requests'
Comment 1 Joonas Niilola gentoo-dev 2017-05-13 10:39:37 UTC
I had the same error with app-admin/system-config-printer-1.5.9. I installed dev-python/requests and now I have the following error: 

----------
# system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 84, in <module>
    import jobviewer
  File "/usr/share/system-config-printer/jobviewer.py", line 57, in <module>
    gi.require_version('GnomeKeyring', '1.0')
  File "/usr/lib64/python3.5/site-packages/gi/__init__.py", line 118, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GnomeKeyring not available
----------
Comment 2 Joonas Niilola gentoo-dev 2017-05-13 11:08:52 UTC
(In reply to Joonas Niilola from comment #1)
> I had the same error with app-admin/system-config-printer-1.5.9. I installed
> dev-python/requests and now I have the following error: 
> 
> ----------
> # system-config-printer
> Traceback (most recent call last):
>   File "/usr/share/system-config-printer/system-config-printer.py", line 84,
> in <module>
>     import jobviewer
>   File "/usr/share/system-config-printer/jobviewer.py", line 57, in <module>
>     gi.require_version('GnomeKeyring', '1.0')
>   File "/usr/lib64/python3.5/site-packages/gi/__init__.py", line 118, in
> require_version
>     raise ValueError('Namespace %s not available' % namespace)
> ValueError: Namespace GnomeKeyring not available
> ----------

I didnt realize that version was from dantrell's Gnome overlay. Emerged 1.4.8 which is in the main portage tree, and it seems to be working fine. Sorry.
Comment 3 Larry the Git Cow gentoo-dev 2018-11-02 13:25:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb5aac044d88c8312e4c835890670e29c841656e

commit fb5aac044d88c8312e4c835890670e29c841656e
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-11-02 13:13:15 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-11-02 13:24:33 +0000

    app-admin/system-config-printer: Fix dependencies
    
    Closes: https://bugs.gentoo.org/574630
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 .../system-config-printer-1.5.11-r1.ebuild         | 91 ++++++++++++++++++++++
 1 file changed, 91 insertions(+)