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

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

Open
Fedex159 opened this issue Dec 22, 2024 · 26 comments
Assignees
Labels
bug Something isn't working

Comments

@Fedex159
Copy link

Fedex159 commented Dec 22, 2024

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 Fedex159 added the bug Something isn't working label Dec 22, 2024
@Fedex159
Copy link
Author

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

@cap0bvious
Copy link

cap0bvious commented Dec 22, 2024

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

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

@nxtkofi
Copy link

nxtkofi commented Dec 22, 2024

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

@Fedex159
Copy link
Author

Fedex159 commented Dec 22, 2024

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
Copy link
Author

Fedex159 commented Dec 22, 2024

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.

@nxtkofi
Copy link

nxtkofi commented Dec 22, 2024

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

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

@cap0bvious
Copy link

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'

@Fedex159
Copy link
Author

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

@cap0bvious
Copy link

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

@Fedex159
Copy link
Author

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.

@degobbis
Copy link

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

@daveleslie
Copy link

got it working with

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

@degobbis
Copy link

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?

@Fedex159
Copy link
Author

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?

@NuLLxD
Copy link

NuLLxD commented Dec 22, 2024

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.

@degobbis
Copy link

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
Copy link

These Packages are installed and reinstalled

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

@Fedex159
Copy link
Author

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
Copy link
Author

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

@degobbis
Copy link

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
Copy link

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

@NuLLxD
Copy link

NuLLxD commented Dec 22, 2024

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

@degobbis
Copy link

degobbis commented Dec 22, 2024

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

This solves the problem for me.

@NuLLxD
Copy link

NuLLxD commented Dec 22, 2024

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.

@Tony15246
Copy link

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

@degobbis
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants