ghostlexly / gpu-video-wallpaper

Use your GPU for rendering low CPU usage video animated wallpaper.
MIT License
165 stars 12 forks source link

xwinwrap is not installed after running ./install.sh #21

Closed N00BM4573R closed 1 year ago

N00BM4573R commented 2 years ago

This results in a broken GUI as well with the following error message: "missing dependencies: ['xwinwrap']. Please run the installer again." I'm quite certain that the installer doesn't install anything at all, and only displays the first error message it gets to.

SwallowYourDreams commented 2 years ago

Ok, let's get to the bottom of this.

  1. Did you just run the installer or use the --distro-agnostic flag (cf. readme.md)? What distro are you using?
  2. Are you trying to run the script through the GUI (and what are the results; screenshots please) or through the CLI (and what are the results; output please).
  3. Please run the following command in the terminal and post its output: ls /home/$USER/.local/bin
  4. Please run the following command in the terminal and post its output: cat /home/$USER/.config/video-wallpaper
N00BM4573R commented 2 years ago
  1. I just ran the installer because I am using Mint 19.3 Cinnamon with 5.4.0-94-generic. Here is the log:
    
    noobmaster@Z370P-D3:~/gpu-video-wallpaper$ sudo ./install.sh
    [sudo] Passwort für noobmaster:             
    This script will install video-wallpaper to your machine.
    video-wallpaper depends on xwinwrap to run. Do you wish to download it? [y/n]
    y
    --2022-05-24 12:33:30--  https://github.com/mmhobi7/xwinwrap/releases/download/v0.9/xwinwrap
    Auflösen des Hostnamens github.com (github.com) … 140.82.121.4
    Verbindungsaufbau zu github.com (github.com)|140.82.121.4|:443 … verbunden.
    HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
    Platz: https://objects.githubusercontent.com/github-production-release-asset-2e65be/111224168/24d2a900-419c-11e9-9ac1-0c26bfeac96c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220524%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220524T093331Z&X-Amz-Expires=300&X-Amz-Signature=00e6e7a7b74ef8513ba72a53f52b5eb7ad4b729c71020448465fbb3e587411be&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111224168&response-content-disposition=attachment%3B%20filename%3Dxwinwrap&response-content-type=application%2Foctet-stream [folgend]
    --2022-05-24 12:33:31--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/111224168/24d2a900-419c-11e9-9ac1-0c26bfeac96c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220524%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220524T093331Z&X-Amz-Expires=300&X-Amz-Signature=00e6e7a7b74ef8513ba72a53f52b5eb7ad4b729c71020448465fbb3e587411be&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=111224168&response-content-disposition=attachment%3B%20filename%3Dxwinwrap&response-content-type=application%2Foctet-stream
    Auflösen des Hostnamens objects.githubusercontent.com (objects.githubusercontent.com) … 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
    Verbindungsaufbau zu objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443 … verbunden.
    HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
    Länge: 65504 (64K) [application/octet-stream]
    Wird in »/home/root/.local/bin/xwinwrap« gespeichert.

/home/root/.local/bin/xwinwr 100%[============================================>] 63,97K --.-KB/s in 0,03s

2022-05-24 12:33:31 (2,36 MB/s) - »/home/root/.local/bin/xwinwrap« gespeichert [65504/65504]

Missing dependencies: python3-pyqt5. Do you wish to install them? [y/n] y Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig python3-pyqt5 ist schon die neueste Version (5.10.1+dfsg-1ubuntu2). Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt: libaribb24-0 libbasicusageenvironment1 libcapi20-3:i386 libcapi20-3 libcddb2 libdvbpsi10 libfaudio0:i386 libgroupsock8 libgsm1:i386 liblcms2-2:i386 liblivemedia62 libmatroska6v5 libmicrodns0 libnfs11 libnvidia-compute-460:i386 libnvidia-decode-460:i386 libnvidia-encode-460:i386 libnvidia-fbc1-460:i386 libnvidia-gl-460:i386 libnvidia-ifr1-460:i386 libopenmpt-modplug1 libplacebo4 libresid-builder0c2a libsidplay2 libssh2-1 libstb0:i386 libupnp6 libusageenvironment3 libxslt1.1:i386 linux-hwe-5.4-headers-5.4.0-104 linux-hwe-5.4-headers-5.4.0-105 linux-hwe-5.4-headers-5.4.0-107 linux-hwe-5.4-headers-5.4.0-109 linux-hwe-5.4-headers-5.4.0-90 linux-hwe-5.4-headers-5.4.0-91 linux-hwe-5.4-headers-5.4.0-92 linux-hwe-5.4-headers-5.4.0-99 linux-tools-4.15.0-163 linux-tools-4.15.0-163-generic linux-tools-4.15.0-166 linux-tools-4.15.0-166-generic linux-tools-4.15.0-167 linux-tools-4.15.0-167-generic linux-tools-4.15.0-173 linux-tools-4.15.0-173-generic linux-tools-4.15.0-175 linux-tools-4.15.0-175-generic linux-tools-4.15.0-176 linux-tools-4.15.0-176-generic vlc-bin vlc-data vlc-plugin-base vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-output vlc-plugin-video-splitter vlc-plugin-visualization Verwenden Sie »sudo apt autoremove«, um sie zu entfernen. 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 8 nicht aktualisiert. Do you wish to create a start menu entry? [y/n] y noobmaster@Z370P-D3:~/gpu-video-wallpaper$

2. 
![grafik](https://user-images.githubusercontent.com/59672584/170001112-6b875211-0ff1-4683-99d7-e6f53ebc6abc.png)

noobmaster@Z370P-D3:~/gpu-video-wallpaper$ video-wallpaper.sh --start "loop_water.mp4" /home/noobmaster/.local/bin/video-wallpaper.sh: Zeile 11: /home/noobmaster/.local/bin/settings.conf: Keine Berechtigung /home/noobmaster/.local/bin/video-wallpaper.sh: Zeile 40: /home/noobmaster/.local/bin/xwinwrap: Datei oder Verzeichnis nicht gefunden /home/noobmaster/.local/bin/video-wallpaper.sh: Zeile 17: /home/noobmaster/.local/bin/settings.conf: Keine Berechtigung /home/noobmaster/.local/bin/video-wallpaper.sh: Zeile 26: /home/noobmaster/.local/bin/settings.conf: Keine Berechtigung /home/noobmaster/.local/bin/video-wallpaper.sh: Zeile 27: /home/noobmaster/.local/bin/settings.conf: Keine Berechtigung

3.

noobmaster@Z370P-D3:~/gpu-video-wallpaper$ ls /home/$USER/.local/bin gui.ui video-wallpaper.py video-wallpaper.sh

4.

noobmaster@Z370P-D3:~/gpu-video-wallpaper$ cat /home/$USER/.config/video-wallpaper cat: /home/noobmaster/.config/video-wallpaper: Datei oder Verzeichnis nicht gefunden

SwallowYourDreams commented 2 years ago

Hallo, Landsmann!

You ran installer.sh using superuser privileges. Please run it without and things should work out. I'll make that clearer in an updated version of the readme.

Let me know how it goes.

N00BM4573R commented 2 years ago

Thanks for your reply. I tried just installing from the script without sudo, but that didn't work even the first time. grafik I should probably just upgrade to the latest OS, be it Mint or something else.

SwallowYourDreams commented 2 years ago

Curious. It appears wget won't even start downloading xwinwrap to the folder. It's definitely not your OS, no upgrade needed. This is an issue with the installer. Fixing it is easy, but let's also diagnose why the installer fails on you, so I can make it a bit more robust.

Could you please run the following three commands and post their output? I'll explain what they do in the comment after each one.

ls -l /home/$USER/.local/ # This will allow me to see the permissions for the ./bin folder; I suspect we're missing write permissions for some reason.

ls -lah /home/$USER/.local/bin # This will allow me to check if xwinwrap was downloaded on your second try of running the installer, the one without sudo; it likely wasn't, but let's check anyway

N00BM4573R commented 2 years ago

Eh, fine. As long as it doesn't get too complicated on my end. grafik FYI I had to reboot, so if some of that information was temporary, might be missing.

SwallowYourDreams commented 2 years ago

As I thought, we have a permissions issue. It appears your /home/$USER/.local/bin folder is owned by root (idk if that's the default) and your user does not have any write permissions for that folder. Hence, trying to download xwinwrap to it will fail. I may need to change things in the installer in the future. Need to do further tests.

For you, the solution is this:

  1. Give your user write permission for the folder by running this command: chmod 775 /home/$USER/.local/bin
  2. Run the installer.sh without sudo.
  3. Return the permissions back to their default setting by running this command: chmod 755 /home/$USER/.local/bin

Let me know if this solved the issue for you.

N00BM4573R commented 2 years ago

grafik Thanks for all your help, but I just want to give up now.

frylo0 commented 2 years ago

@N00BM4573R @SwallowYourDreams

Fix for me - manually download xwinwrap file to folder.

Steps:

  1. Follow the link: https://github.com/mmhobi7/xwinwrap/releases/download/v0.9/xwinwrap
  2. Save as /path/to/gpu-video-wallpaper/xwinwrap
  3. Grant execute permissions via chmod +x xwinwrap
  4. Run CLI - bug fixed.

OS: Ubuntu 22.04 jammy Kernel: x86_64 Linux 5.15.0-46-generic

image

manelzada commented 1 year ago

Ty @fritylo this solution works for me

duracell80 commented 1 year ago

This works for me after logging out and back in or starting a new terminal. In the video-wallpaper shell script: add at the top of video-wallpaper.sh binarydir="/home/$USER/.local/bin"

and further down on the xwinwrap call: "$binarydir"/xwinwrap

Then in the python something similar self.binaryDir = "/home/" + getpass.getuser() + "/.local/bin"

and

if not os.path.isfile(self.binaryDir + "/xwinwrap"):
            missingDependencies.append("xwinwrap") ...

That way if the other variable is needed we can give an additional bin directory location while keeping the other pointers all the same to help locate scripts.