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

Outdated python3-gobject on Ubuntu 19.10 #872

Closed
jeblad opened this issue Jul 29, 2020 · 14 comments
Closed

Outdated python3-gobject on Ubuntu 19.10 #872

jeblad opened this issue Jul 29, 2020 · 14 comments

Comments

@jeblad
Copy link
Contributor

jeblad commented Jul 29, 2020

Information

Cloned the Github repo and tried to run it but found that it requested python3-gobject. I followed the description from Manual installation.

john@hydra:~/spaces/solaar1$ ./bin/solaar
Solaar: missing required system package python3-gi or python3-gobject

Made a few attempts on workarounds, but they failed. This is on a Ubuntu 19.10 install, but checking it seems like the culprit is python3-gobjectwhich existed in 14.04 LTS.

Note that 1.0.3rc1 installs properly.

This is on Ubuntu 19.10 (end of life), and I doubt there are any changes to Ubuntu 20.04, but I will check it out later.

john@hydra:~/spaces/solaar1$ uname -srmo
Linux 5.3.0-64-generic x86_64 GNU/Linux
@jeblad jeblad added the bug label Jul 29, 2020
@pfps
Copy link
Collaborator

pfps commented Jul 29, 2020

Where did you get 1.0.3rc1 from? It is essentially the same as the version here so I'm wondering why the difference.

@pfps
Copy link
Collaborator

pfps commented Jul 29, 2020

Can you search for 'python3-gi*' and 'python3-gobject*' packages on your system, both installed and uninstalled? It think that on Ubuntu this is done by

apt-cache search python3-gi

and

apt-cache search python3-gobject

@jeblad
Copy link
Contributor Author

jeblad commented Jul 29, 2020

This seems to be a problem in Ubuntu 19.10 (end of life), which is used on a quite messy development machine. On Ubuntu 20.04 LTS it works as expected.

It might be related to version of python3-gi which is 3.34.0-1 on 19.10, but 3.36.0-1 on 20.04.

Ubuntu 19.10 is running Python 3.7.6, while 20.04 is running Python 3.8.2.

Note that pip3 install --user solaar==1.0.3rc1 on 19.10 seems to work properly, which is weird.

Perhaps some python environment is running tricks… Test it on a clean 19.10 if necessary, for me this will be solved as soon as I get to update the dev machine.

@pfps
Copy link
Collaborator

pfps commented Jul 29, 2020

OK, I'm taking the bug flag off this issue.

@pfps pfps removed the bug label Jul 29, 2020
@pfps
Copy link
Collaborator

pfps commented Aug 2, 2020

Closing as almost certainly not a problem with Solaar.

@pfps pfps closed this as completed Aug 2, 2020
@alexandrastoll
Copy link

alexandrastoll commented Sep 17, 2020

don't know if this is still helpful for you but I had the same problem I think, that it said:

"Solaar: missing required system package python3-gi or python3-gobject" after entering "solaar" in the terminal.

I tried sudo solaar in the terminal and it worked xD.

Hope that helps!

btw have ubuntu 20.04 lts. so not 100% sure it's the same cause.

@pfps
Copy link
Collaborator

pfps commented Sep 17, 2020

It is weird that using sudo fixed this problem. Either the system packages are installed or not.

@kwonminki
Copy link

I had the same problem.
"Solaar: missing required system package python3-gi or python3-gobject" after entering "solaar" in the terminal.

When I tried "sudo solaar", it said : [Solaar: missing required package 'python-gi']

I tried to get packages but python3-gobject is not available.

sudo apt-get install -y python3-gobject
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-gobject is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python3-gobject' has no installation candidate

And also I already got python-gi & python3-gi

sudo apt-get install -y python-gi
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-gi is already the newest version (3.26.1-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 87 not upgraded.

sudo apt-get install -y python3-gi
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-gi is already the newest version (3.26.1-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 87 not upgraded.

What Can I do?

@pfps pfps reopened this Jun 28, 2021
@pfps
Copy link
Collaborator

pfps commented Jun 28, 2021

It looks as if you have several versions of Solaar on your system. Current versions of Solaar require python3, and they explicitly ask for python3 versions of the gi packages. So I think the first thing to do is to remove the old version of Solaar - the one you are running when you do sudo solaar.

Then you should find out which version of Solaar you are running when you run as solaar. If this is not 1.0.6 you should update, probably using the stable Solaar ppa as descriped in https://github.com/pwr-Solaar/Solaar. Then try running Solaar again.

The error message that you are seeing is ambiguous. You don't need both python3-gi and python3-gobject, just one of them. So it is a bit puzzling that you are even getting this error as you have python3-gi installed. It may be some interference between python-gi and python3-gi so I suggest trying to uninstall python-gi if that doesn't interfere with other software you have loaded.

You could also try to install using pip.

@kwonminki
Copy link

kwonminki commented Jun 28, 2021

I am sure that "several versions of Solaar" is not the reason. Because I got same error msg at my first try.

  1. I try to install solaar with : "pip install solaar".
  2. Error msg (same with above)
  3. I tried many different ways to solve problem.

I tried to get solaar by ubuntu software market? but it doesnt work.

And here is my way to solve it.

sudo add-apt-repository ppa:solaar-unifying/ppa
sudo apt-get update
sudo apt install solaar
sudo solaar

It works without any error.
But I think It is very ambiguous.

I hope my case is useful for your debugging.

  • Version has been 1.0.6
  • Ubuntu 18.04

@pfps
Copy link
Collaborator

pfps commented Jun 28, 2021

Glad to hear that it is working for you.

I'll update the error message soon.

@pfps
Copy link
Collaborator

pfps commented Jul 4, 2021

Error message fixed in PR #1195

@pfps pfps closed this as completed Jul 4, 2021
@lephnut
Copy link

lephnut commented Apr 25, 2022

I install solaar based on the following link, and I try to install the latest version '1.1.3rc3'.
There is no option for MX Anywhere 3 and uknown battery #1385
I got the same error message when execute command 'solaar'.

$ solaar
Solaar: missing required system package python3-gi (in Ubuntu) or python3-gobject (in Fedora)
$ sudo apt install python3-gi
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-gi is already the newest version (3.26.1-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

@lephnut
Copy link

lephnut commented Apr 25, 2022

I install solaar based on the following link, and I try to install the latest version '1.1.3rc3'. There is no option for MX Anywhere 3 and uknown battery #1385 I got the same error message when execute command 'solaar'.

$ solaar
Solaar: missing required system package python3-gi (in Ubuntu) or python3-gobject (in Fedora)
$ sudo apt install python3-gi
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-gi is already the newest version (3.26.1-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Fixed, according to https://stackoverflow.com/questions/71369726/no-module-named-gi

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

5 participants