Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Namespace Handy not available #283

Closed
TKperson opened this issue Aug 28, 2022 · 3 comments
Closed

ValueError: Namespace Handy not available #283

TKperson opened this issue Aug 28, 2022 · 3 comments

Comments

@TKperson
Copy link

Description

I installed system-config-printer from Arch extra. Whenever I ran system-config-printer, I get this error:

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 51, in <module>
    gi.require_version('Handy', '1')
  File "/usr/lib/python3.10/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Handy not available

The error looks very similar to #276. Instead of the "Handy" package that is causing the error, the package that's causing the error in the issue was "Notify".

I wasn't able to locate the library that "Handy" is in, and I'm not able to using system-config-printer.

How do I fix this error?

System environments

OS: Arch Linux x86_64
Kernel: 5.19.4-arch1-1
system-config-printer version: 1.5.17-1

@jay-babu
Copy link

+1 getting this error

@jay-babu
Copy link

# Optional dependency, requires libhandy >= 1.5
gi.require_version('Handy', '1')

looking at source code,

installing libhandy seems to have made issue go away for me

@zdohnal
Copy link
Member

zdohnal commented Aug 30, 2022

Hi,

I'm sorry about this - I ran s-c-p during testing only on GNOME, where this library is installed. libhandy is optional, so the gi.require has to be in try: scope.

I'll release a new source tarball with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants