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 Gdk not available #18

Open
weiyiferonia opened this issue Nov 13, 2020 · 3 comments
Open

ValueError: Namespace Gdk not available #18

weiyiferonia opened this issue Nov 13, 2020 · 3 comments

Comments

@weiyiferonia
Copy link

I followed the "Realtime Demo Instructions" to run the demo, but found that:
Traceback (most recent call last):
File "run_demo.py", line 22, in
from monitor import monitor
File "/home/rgyao/env/few_shot_gaze/demo/monitor.py", line 10, in
gi.require_version('Gdk', '3.0')
File "/home/rgyao/anaconda3/envs/faze/lib/python3.6/site-packages/gi/init.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gdk not available

@allangu
Copy link

allangu commented Nov 17, 2020

I was able to fix that part by install pgi (pip install pgi) and then adding the following two lines of code to the beginning of monitor.py

import pgi
pgi.install_as_gi()

@Leon-Brant
Copy link

I was able to fix that part by install pgi (pip install pgi) and then adding the following two lines of code to the beginning of monitor.py

import pgi pgi.install_as_gi()

Do you run your code in ubuntu system?

@Leon-Brant
Copy link

I followed the "Realtime Demo Instructions" to run the demo, but found that: Traceback (most recent call last): File "run_demo.py", line 22, in from monitor import monitor File "/home/rgyao/env/few_shot_gaze/demo/monitor.py", line 10, in gi.require_version('Gdk', '3.0') File "/home/rgyao/anaconda3/envs/faze/lib/python3.6/site-packages/gi/init.py", line 126, in require_version raise ValueError('Namespace %s not available' % namespace) ValueError: Namespace Gdk not available

Dude, how did you run run_demo.py in "Realtime Demo Instructions"? run_demo.py calls frame_processor.py, and frame_processor.py calls detect_faces and show_bboxes in the src folder. However, when I searched through the src folder and didn't find detect_faces or show_bboxes, I don't think the author's src folder is complete!

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