[BUG] After update to 2.9.7.1 many modules doesn't work (waybar, hyprshade, waypaper)
Describe the bug After update from 2.9.7.0 to 2.9.7.1 some modules are not working anymore.
- Waybar won't autostart
- Waypaper error module in terminal
- Hyprshade script error module in terminal
To Reproduce Steps to reproduce the behavior:
- Go to dotfiles/.config/scripts/
- Execute hyrpshade.sh
- See error in terminal (similar error with waypaper)
Error
Traceback (most recent call last):
File "/usr/bin/hyprshade", line 5, in <module>
from hyprshade.cli import main
ModuleNotFoundError: No module named 'hyprshade'
:: hyprshade is not running
Traceback (most recent call last):
File "/usr/bin/hyprshade", line 5, in <module>
from hyprshade.cli import main
ModuleNotFoundError: No module named 'hyprshade'
Traceback (most recent call last):
File "/usr/bin/hyprshade", line 5, in <module>
from hyprshade.cli import main
ModuleNotFoundError: No module named 'hyprshade'
Traceback (most recent call last):
File "/usr/bin/hyprshade", line 5, in <module>
from hyprshade.cli import main
ModuleNotFoundError: No module named 'hyprshade'
:: hyprshade started with
Expected behavior
- Waybar should auto start if is enable
- Hyprshade should be enable when toggle is true or the script is execute
- Should see the wallpaper in my desktop
Screenshots
Distribution (please complete the following information):
- Arch Linux 6.12.6-arch1-1
- Nvidia
Rebuilding some aur packages and installing new dependencies seems fix the issue with waybar, hyprshade and hyprlock
Rebuilding some aur packages and installing new dependencies seems fix the issue
Could you tell more about that? I have the same issue
Rebuilding some aur packages and installing new dependencies seems fix the issue with waybar, hyprshade and hyprlock
Also asking for elaboration on what are 'some aur packages' and how exactly did You install new dependencies? TIA
Rebuilding some aur packages and installing new dependencies seems fix the issue
Could you tell more about that? I have the same issue
Sure, I tried differents commands, but these are the ones that worked for me.
Run this command pacman -Qoq /usr/lib/python3.13 to get a list of packages that depends of python (source). Change python version if you don't have 3.13 installed.
Then, what I did was to use the output of the list to rebuild all packages using paru instead of pacman with this command:
paru -S $(paru -Qoq /usr/lib/python3.13) --rebuild
After that, you can logout and login again, try to run hyprshade or waypaper to see if there some errors yet.
In my case, I had to install a new dependency python-screeninfo. I did that with this command: paru -S python-screeninfo --rebuild (maybe the rebuild flag is not necessary but II added it anyway).
After that, waypaper, hyprshade and waybar started to working without any change.
I hope this work for you.
Note: I ran the commands in bash, not zsh because didn't work for me.
Rebuilding some aur packages and installing new dependencies seems fix the issue with waybar, hyprshade and hyprlock
Also asking for elaboration on what are 'some aur packages' and how exactly did You install new dependencies? TIA
Here the steps I did. About 'some aur packages', is because I rebuilt only packages that depends on python only, not all aur packages that I have installed.
I managed to make it work by doing so on Arch Linux, AMD GPU:
sudo pacman -Syu
yay -S waypaper
yay -S python-screeninfo
I tried both variants and waypaper still crashes trying to run:
/home/capobvious : waypaper
Traceback (most recent call last):
File "/usr/bin/waypaper", line 5, in <module>
from waypaper.__main__ import run
File "/usr/lib/python3.13/site-packages/waypaper/__main__.py", line 10, in <module>
from waypaper.app import App
File "/usr/lib/python3.13/site-packages/waypaper/app.py", line 9, in <module>
import imageio
ModuleNotFoundError: No module named 'imageio'
I tried both variants and waypaper still crashes trying to run:
/home/capobvious : waypaper Traceback (most recent call last): File "/usr/bin/waypaper", line 5, in <module> from waypaper.__main__ import run File "/usr/lib/python3.13/site-packages/waypaper/__main__.py", line 10, in <module> from waypaper.app import App File "/usr/lib/python3.13/site-packages/waypaper/app.py", line 9, in <module> import imageio ModuleNotFoundError: No module named 'imageio'
Try rebuild only that package like this paru -S python-imageio --rebuild
That made waypaper run with no issues, thanks! It seems that the reason for the issue isn't ml4w, but python 3.13 that just got released
That made waypaper run with no issues, thanks! It seems that the reason for the issue isn't ml4w, but python 3.13 that just got released
Yeah, great that works.
Unfortunately, it doesn't solve the problem for me. Do you have any other ideas?
got it working with
sudo pacman -Syu
yay -S waypaper
yay -S python-screeninfo
yay -S python-imageio
got it working with
sudo pacman -Syu yay -S waypaper yay -S python-screeninfo yay -S python-imageio
Unfortunately, it doesn't solve the problem for me either.
I noticed that yay -S waypaper still installs waypaper-git, can anyone confirm this?
got it working with
sudo pacman -Syu yay -S waypaper yay -S python-screeninfo yay -S python-imageioUnfortunately, it doesn't solve the problem for me either. I noticed that
yay -S waypaperstill installswaypaper-git, can anyone confirm this?
What error are you getting when run waypaper in the terminal?
Traceback (most recent call last): File "/usr/bin/waypaper", line 5, in <module> from waypaper.__main__ import run ModuleNotFoundError: No module named 'waypaper'
Traceback (most recent call last): File "/usr/bin/hyprshade", line 5, in <module> from hyprshade.cli import main ModuleNotFoundError: No module named 'hyprshade'
Unfortunately none of these seem to be a solution. I've even done a clean install of the dotfiles and all packages.
I could now downgrade waypaper back to the normal version, the error is in the terminal:
$ waypaper --restore
Traceback (most recent call last):
File "/usr/bin/waypaper", line 5, in <module>
from waypaper.__main__ import run
File "/usr/lib/python3.13/site-packages/waypaper/__main__.py", line 10, in <module>
from waypaper.app import App
File "/usr/lib/python3.13/site-packages/waypaper/app.py", line 9, in <module>
import imageio
ModuleNotFoundError: No module named 'imageio'
These Packages are installed and reinstalled
$ pacman -Q | grep imageio
python-imageio 2.36.1-2
python-imageio-ffmpeg 0.5.1-2
Traceback (most recent call last): File "/usr/bin/waypaper", line 5, in <module> from waypaper.__main__ import run ModuleNotFoundError: No module named 'waypaper'
Traceback (most recent call last): File "/usr/bin/hyprshade", line 5, in <module> from hyprshade.cli import main ModuleNotFoundError: No module named 'hyprshade'Unfortunately none of these seem to be a solution. I've even done a clean install of the dotfiles and all packages.
Try this:
paru -S waypaper hyprshade --rebuild
Then, if you run waypaper in terminal, check if the error change.
I could now downgrade waypaper back to the normal version, the error is in the terminal:
$ waypaper --restore Traceback (most recent call last): File "/usr/bin/waypaper", line 5, in <module> from waypaper.__main__ import run File "/usr/lib/python3.13/site-packages/waypaper/__main__.py", line 10, in <module> from waypaper.app import App File "/usr/lib/python3.13/site-packages/waypaper/app.py", line 9, in <module> import imageio ModuleNotFoundError: No module named 'imageio'
Try this
Problem found: Python has been updated to version 3.13, but the additional packages are in the path for Python 3.12. Therefore it cannot find the packages.
I think a downgrade could solve the problem.
Downgrading the Python version was not the solution.
I found a temporary solution, I added the following line in my custom.conf:
env = PYTHONPATH,/usr/lib/python3.12/site-packages:/usr/lib/python3.13/site-packages:$PYTHONPATH
Also added this in my ZSH custom init file:
export PYTHONPATH=/usr/lib/python3.12/site-packages:/usr/lib/python3.13/site-packages:$PYTHONPATH
Traceback (most recent call last): File "/usr/bin/waypaper", line 5, in <module> from waypaper.__main__ import run ModuleNotFoundError: No module named 'waypaper'Traceback (most recent call last): File "/usr/bin/hyprshade", line 5, in <module> from hyprshade.cli import main ModuleNotFoundError: No module named 'hyprshade'Unfortunately none of these seem to be a solution. I've even done a clean install of the dotfiles and all packages.Try this:
paru -S waypaper hyprshade --rebuildThen, if you run waypaper in terminal, check if the error change.
This fixed it, thank you. I also had to rebuild some other packages as well.
paru -S python-screeninfo --rebuild
To summarize for everyone else who may be looking for a solution, try this;
paru -S waypaper hyprshade python-imageio python-screeninfo --rebuild
I did that, but it didn't solve the problem.
I would recommend uninstalling your dotfiles, in the case of yay
yay -R ml4w-hyprland
or in the case of paru
paru -R ml4w-hyprland
Then install the new dotfiles via your package manager and use the setup script to retain any custom configuration settings you may have.
ml4w-hyprland-setup
EDIT: In the case of nvidia users
ml4w-hyprland-setup -m nvidia
This is what I did previous to the steps in my last reply. Your case is different than mine.
I tried both variants and waypaper still crashes trying to run:
/home/capobvious : waypaper Traceback (most recent call last): File "/usr/bin/waypaper", line 5, in <module> from waypaper.__main__ import run File "/usr/lib/python3.13/site-packages/waypaper/__main__.py", line 10, in <module> from waypaper.app import App File "/usr/lib/python3.13/site-packages/waypaper/app.py", line 9, in <module> import imageio ModuleNotFoundError: No module named 'imageio'Try rebuild only that package like this
paru -S python-imageio --rebuild
works like a charm, fixed my problem, thank you
I forgot to restart... :D Now everything works fine, even without setting the variable. Thx.
Traceback (most recent call last): File "/usr/bin/waypaper", line 5, in <module> from waypaper.__main__ import run ModuleNotFoundError: No module named 'waypaper'Traceback (most recent call last): File "/usr/bin/hyprshade", line 5, in <module> from hyprshade.cli import main ModuleNotFoundError: No module named 'hyprshade'Unfortunately none of these seem to be a solution. I've even done a clean install of the dotfiles and all packages.Try this:
paru -S waypaper hyprshade --rebuildThen, if you run waypaper in terminal, check if the error change.
Rebuilding the packages mentioned above solved this for me as well. Started with waypaper then kept going until running waypaper worked. Thanks