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

gi module issue while running joycond-cemuhook #98

Open
Sailinnov opened this issue Oct 18, 2024 · 3 comments
Open

gi module issue while running joycond-cemuhook #98

Sailinnov opened this issue Oct 18, 2024 · 3 comments

Comments

@Sailinnov
Copy link

My env is:
Ubuntu 24.04
python 3.12.5

when I tried to run joycond-cemuhook, I got the error shown below:

$ joycond-cemuhook
Traceback (most recent call last):
File "/home/username/anaconda3/bin/joycond-cemuhook", line 5, in
from joycond_cemuhook import main
File "/home/username/anaconda3/lib/python3.12/site-packages/joycond_cemuhook/init.py", line 19, in
from gi.repository import GLib
File "/home/username/anaconda3/lib/python3.12/site-packages/gi/init.py", line 40, in
from . import _gi
ImportError: libgirepository-1.0.so.1: undefined symbol: g_once_init_leave_pointer

I think the dependencies are installed with latest version, maybe a compatibility issue of my system env

@AteebXYZ
Copy link

i have the same issue on fedora 41 with python3.13

@AteebXYZ
Copy link

Ok i managed to fix my issue by doing this:
pip3 uninstall PyGObject-stubs

Then i just installed joycond-cemuhook like this:
pip3 install git+https://github.com/joaorb64/joycond-cemuhook

Then PyGObject installed correctly and there were no errors.
Hope this helps.

@Ludo2000
Copy link

I have a similar issue with Ubuntu 24.10:

$ joycond-cemuhook
Traceback (most recent call last):
File "/home/ludo/.local/bin/joycond-cemuhook", line 5, in
from joycond_cemuhook import main
File "/home/ludo/.local/share/pipx/venvs/joycond-cemuhook/lib/python3.12/site-packages/joycond_cemuhook/init.py", line 19, in
from gi.repository import GLib
ModuleNotFoundError: No module named 'gi'

In my system the python3-gi package is installed with apt.
If I run python by command line I can impor GLib:

$ python3
Python 3.12.7 (main, Nov 6 2024, 18:29:01) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from gi.repository import GLib

Thanks in advance.

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