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 AppIndicator3 not available #17

Closed
KuntaoDaChump opened this issue Feb 13, 2024 · 6 comments
Closed

ValueError: Namespace AppIndicator3 not available #17

KuntaoDaChump opened this issue Feb 13, 2024 · 6 comments

Comments

@KuntaoDaChump
Copy link

For some reason the app didnt start on login, after trying to start it manually, nothing is happening. After attempting to run it in a terminal, I get this error;

python3 headset-charge-indicator.py
Traceback (most recent call last):
File "/home/ranger/ManualInstalls/HeadsetChargeIndicator/headset-charge-indicator.py", line 21, in
require_version('AyatanaAppIndicator3', '0.1')
File "/usr/lib64/python3.12/site-packages/gi/init.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AyatanaAppIndicator3 not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ranger/ManualInstalls/HeadsetChargeIndicator/headset-charge-indicator.py", line 25, in
require_version('AppIndicator3', '0.1')
File "/usr/lib64/python3.12/site-packages/gi/init.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

I don't believe I started it wrong as I've done it before like this. Am I missing something? AyatanaAppIndicator3 doesn't exist so I could install it. HeadsetControl is still working as expected.

I see in the post that it says something about Ayatana, but it refers to Debian and I am on Fedora 39. Any help would be greatly appreciated.

@centic9
Copy link
Owner

centic9 commented Feb 14, 2024

You are missing required libraries for app-indicators, not sure what package this is for Fedora or if it is even available, probably something like appindicator, libappindicator, ayatanaappindicator or similar.

I don't run Fedora, so can't tell what exactly you might need.

See also https://github.com/centic9/headset-charge-indicator?tab=readme-ov-file#installation for related instructions.

Please let me know if you find out so we can update the instructions in the README.

@KuntaoDaChump
Copy link
Author

I have libappindicator-12.10.1-2.fc39.x86_64 already installed and seems to be the latest version.

@centic9
Copy link
Owner

centic9 commented Feb 14, 2024

On Debian there is the additional package gir1.2-ayatanaappindicator3-0.1 which is required as well.

Do you have a similar one available in Fedora?
Or anything else with "appindicator" or "ayatana" in the name?

@KuntaoDaChump
Copy link
Author

I'll look around for it but Im not sure why this would be happening out of the blue. I've been using this with no issues for about 2 weeks now.

@KuntaoDaChump
Copy link
Author

I finally had some time to work on it. I ran the following commands and it seems to have started. I'll let you know if I have any further issues!

sudo dnf install libindicator

&

sudo dnf install libayatana-appindicator-gtk3

Btw Im using Fedora 39.

@centic9 centic9 closed this as completed in b37af6f Mar 9, 2024
@centic9
Copy link
Owner

centic9 commented Mar 9, 2024

Thanks, I have updated the README accordingly

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

2 participants