LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ModuleNotFoundError: No module named 'solaar' (https://www.linuxquestions.org/questions/linux-software-2/modulenotfounderror-no-module-named-solaar-4175736303/)

RandomTroll 04-21-2024 09:51 PM

ModuleNotFoundError: No module named 'solaar'
 
I downloaded the lastest 'solaar' SBo package, installed it, when I run solaar I get:
Quote:

Traceback (most recent call last):
File "/usr/bin/solaar", line 54, in <module>
import solaar.gtk
ModuleNotFoundError: No module named 'solaar'
Does this mean python is looking for a moduled named solaar.gtk?

I searched the Internet, found no useful responses.

pan64 04-22-2024 02:46 AM

solaar.gtk is most probably a submodule of solaar.

RandomTroll 04-22-2024 09:31 AM

Quote:

Originally Posted by pan64 (Post 6497628)
solaar.gtk is most probably a submodule of solaar.

It isn't part of the Solaar package. I haven't found it elsewhere. One of the hits of a search says it isn't, but offers no alternative.

pan64 04-22-2024 09:41 AM

https://archlinux.org/packages/extra/any/solaar/
/usr/lib/python3.11/site-packages/solaar/gtk.py is a file in the package. But I don't know what did you download and if that gtk.py is really there. Or you have made a mistake somewhere.
You can find it here too: https://github.com/pwr-Solaar/Solaar.../solaar/gtk.py

Nishtya 04-22-2024 02:02 PM

Quote:

Originally Posted by RandomTroll (Post 6497685)
It isn't part of the Solaar package. I haven't found it elsewhere. One of the hits of a search says it isn't, but offers no alternative.

On one of my installations I ran into OP's situation. I had chosen to install solaar without solaar-gtk that also popped up in my search and the gtk pkg was not listed as a dependency of solaar. Once I installed solaar-gtk I had no problem with solaar. But solaar-gtk lists solaar as a dependency so if you go to install that first thing it will bring in solaar automatically.

Not sure which of my 4 installs it is but I remember the description of the gtk version being so vague I thought it best to try just solaar but that particular DE required the gtk pkg to function.

RandomTroll 04-23-2024 12:36 AM

Quote:

Originally Posted by pan64 (Post 6497686)
But I don't know what did you download and if that gtk.py is really there.

I downloaded the solaar package from slackbuilds.org. I have gtk.py the same place you do. Is it not being found? Is there a defect in my environment?

Quote:

Originally Posted by Nishtya (Post 6497749)
On one of my installations I ran into OP's situation. I had chosen to install solaar without solaar-gtk that also popped up in my search and the gtk pkg was not listed as a dependency of solaar. Once I installed solaar-gtk I had no problem with solaar. But solaar-gtk lists solaar as a dependency so if you go to install that first thing it will bring in solaar automatically.

Hmmm... The only hit I got when I searched on "solaar-gtk" is this message. There's nothing in Slackware or on slackbuilds.

RandomTroll 04-25-2024 08:36 PM

Solaar installed its libraries in /lib/python3.11/site-packages; all my other python software installed them in /usr/lib64/python3.11/site-packages. After I moved them solaar runs. It still doesn't find my Logitech unifying transceivers and their attached devices - but that's a different problem.


All times are GMT -5. The time now is 08:00 AM.