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

Qtile missing optional python modules #45039

Open
Melkor333 opened this issue Aug 14, 2018 · 12 comments
Open

Qtile missing optional python modules #45039

Melkor333 opened this issue Aug 14, 2018 · 12 comments

Comments

@Melkor333
Copy link
Contributor

Issue description

The qtile derivation doesn't include optional modules like python-dbus, which is necessary for widgets like the notification-daemon, according to the official documentation.

There are also other missing modules which are not mentioned in the documentation, the full list would be:

  • dbus
  • xdg
  • mpd
  • pythonwifi
  • iwlib
  • dateutil
  • keyring

Steps to reproduce

  • Install qtile
  • Start it with the parameter -l DEBUG (the easiest way when using sddm is opening an xterm session and starting qtile from there)
  • it will log the following for every mentioned module (plus a traceback):
ModuleNotFoundError: No module named ' modulename'

I think the best would be to add those modules as optional dependencies since they are not necessary for it to work but for some of the features.

@gagbo
Copy link

gagbo commented Feb 2, 2019

Would that explain why the SysTray widget does not appear ? I'm kind of confused right now.

@Melkor333
Copy link
Contributor Author

That's possible. If you start qtile from a console in debug mode you will see if errors appear. And it's probably because of that...

@gagbo
Copy link

gagbo commented Feb 3, 2019

I had only an error about not being able to create the dbus object and I wasn't too suspicious, but having qtile working fine on Fedora confirms that I need to add the dependencies somehow in NixOS

@stale
Copy link

stale bot commented Jun 3, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
@Melkor333
Copy link
Contributor Author

@kamilchm FYI since you are the current maintainer of this package:
I currently don't use qtile so I don't know if this is still an issue. It doesn't look like it's fixed to me, so I'll just leave this Issue open.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 6, 2020
@steveej
Copy link
Contributor

steveej commented Aug 25, 2020

Running my config on 19aac24 requires me to add psutil to the pythonPath. Also as a an update to the OP here's a list of python packages that I could identify:

  qtile = self.nixpkgs-master.qtile.overrideAttrs(oldAttrs: {
    pythonPath = oldAttrs.pythonPath ++ (with self.python37Packages; [
      psutil
      dbus-python
      pyxdg
      mpd2
      # python-wifi
      # iwlib
      dateutil
      keyring
    ]);
  });

I couldn't identify the ones which are commented, however my config doesn't seem to rely on them anyway.

vividn added a commit to vividn/nixpkgs that referenced this issue Oct 4, 2020
Qtile cannot connect to dbus and cause applications to freeze when they attempt to send notifications.
For example, slack will completely freeze when a new message comes in after it attempts to send a notification.

This is caused by an inability to import dbus and pygobject3 as evidenced by this error in the logs
`WARNING libqtile manager.py:setup_eventloop():L240 importing dbus/gobject failed, dbus will not work.`

Also added the python packages dependencies mentioned here:
NixOS#45039
DavHau/mach-nix#125
marcus7070 pushed a commit to marcus7070/nixpkgs that referenced this issue Nov 22, 2020
Qtile cannot connect to dbus and cause applications to freeze when they attempt to send notifications.
For example, slack will completely freeze when a new message comes in after it attempts to send a notification.

This is caused by an inability to import dbus and pygobject3 as evidenced by this error in the logs
`WARNING libqtile manager.py:setup_eventloop():L240 importing dbus/gobject failed, dbus will not work.`

Also added the python packages dependencies mentioned here:
NixOS#45039
DavHau/mach-nix#125
@stale
Copy link

stale bot commented Feb 21, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Feb 21, 2021
@Tanish2002
Copy link
Contributor

iwlib and pythonwifi keyring are in nixpkgs now, and other modules have already been added.
Can we these three final packages to qtile?

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 5, 2023
@Tanish2002
Copy link
Contributor

iwlib and pythonwifi keyring are in nixpkgs now, and other modules have already been added. Can we these three final packages to qtile?

Tagging qtile maintainers
@arjan-s @kamilchm

@Infinidoge
Copy link
Contributor

Took care of iwlib in #258510

@arjan-s
Copy link
Contributor

arjan-s commented Oct 31, 2023

What part of Qtile needs pythonwifi? I can see in the docs that the ImapWidget needs keyring, but I can't find anything about pythonwifi, and the WlanWidget works just fine without it.

@Tanish2002
Copy link
Contributor

@arjan-s I couldn't find anything as well. I guess I just looked at this and said it.
iwlib and keyring were the only missing modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants