dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] After update to 2.9.7.1 many modules doesn't work (waybar, hyprshade, waypaper)

Open Fedex159 opened this issue 1 year ago • 26 comments

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:

  1. Go to dotfiles/.config/scripts/
  2. Execute hyrpshade.sh
  3. 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

imagen

imagen

imagen

Distribution (please complete the following information):

  • Arch Linux 6.12.6-arch1-1
  • Nvidia

Fedex159 avatar Dec 22 '24 16:12 Fedex159

Rebuilding some aur packages and installing new dependencies seems fix the issue with waybar, hyprshade and hyprlock

Fedex159 avatar Dec 22 '24 16:12 Fedex159

Rebuilding some aur packages and installing new dependencies seems fix the issue

Could you tell more about that? I have the same issue

cap0bvious avatar Dec 22 '24 17:12 cap0bvious

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

nxtkofi avatar Dec 22 '24 17:12 nxtkofi

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.

imagen

Note: I ran the commands in bash, not zsh because didn't work for me.

Fedex159 avatar Dec 22 '24 18:12 Fedex159

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.

Fedex159 avatar Dec 22 '24 18:12 Fedex159

I managed to make it work by doing so on Arch Linux, AMD GPU:

sudo pacman -Syu
yay -S waypaper
yay -S python-screeninfo

nxtkofi avatar Dec 22 '24 18:12 nxtkofi

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'

cap0bvious avatar Dec 22 '24 18:12 cap0bvious

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

Fedex159 avatar Dec 22 '24 18:12 Fedex159

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

cap0bvious avatar Dec 22 '24 18:12 cap0bvious

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.

Fedex159 avatar Dec 22 '24 18:12 Fedex159

Unfortunately, it doesn't solve the problem for me. Do you have any other ideas?

degobbis avatar Dec 22 '24 18:12 degobbis

got it working with

sudo pacman -Syu
yay -S waypaper
yay -S python-screeninfo
yay -S python-imageio

daveleslie avatar Dec 22 '24 18:12 daveleslie

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?

degobbis avatar Dec 22 '24 19:12 degobbis

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?

What error are you getting when run waypaper in the terminal?

Fedex159 avatar Dec 22 '24 19:12 Fedex159

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.

NuLLxD avatar Dec 22 '24 19:12 NuLLxD

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'

degobbis avatar Dec 22 '24 19:12 degobbis

These Packages are installed and reinstalled

$ pacman -Q | grep imageio                             
python-imageio 2.36.1-2
python-imageio-ffmpeg 0.5.1-2

degobbis avatar Dec 22 '24 19:12 degobbis

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.

Fedex159 avatar Dec 22 '24 19:12 Fedex159

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

Fedex159 avatar Dec 22 '24 19:12 Fedex159

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.

degobbis avatar Dec 22 '24 20:12 degobbis

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

degobbis avatar Dec 22 '24 20:12 degobbis

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.

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

NuLLxD avatar Dec 22 '24 20:12 NuLLxD

I did that, but it didn't solve the problem.

This solves the problem for me.

degobbis avatar Dec 22 '24 20:12 degobbis

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.

NuLLxD avatar Dec 22 '24 20:12 NuLLxD

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

Tony15246 avatar Dec 23 '24 02:12 Tony15246

I forgot to restart... :D Now everything works fine, even without setting the variable. Thx.

degobbis avatar Dec 23 '24 10:12 degobbis

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.

Rebuilding the packages mentioned above solved this for me as well. Started with waypaper then kept going until running waypaper worked. Thanks

colts45s avatar Jan 15 '25 03:01 colts45s