jeanslack / Videomass

Videomass is a free, open source and cross-platform GUI for FFmpeg and yt-dlp
https://jeanslack.github.io/Videomass/
GNU General Public License v3.0
1.02k stars 48 forks source link

failed to load pixmaps #340

Closed GabriWar closed 3 weeks ago

GabriWar commented 1 month ago

Thanks for taking the time to submit a bug report! Please include the following information:

What operating system are you using?
Name and version of the operating system you were using when you encountered the bug Arch

What version of Videomass are you using and how did you install or run it? 5.0.14 The version of the program you used and how you installed or ran it, for example: via pip install, running AppImage, running from source code, installing from an installer, etc.
from AUR Describe the bug
A clear and concise description of what the bug is.

11:08:46: can't open file '//share/pixmaps/videomass.png' (error 2: No such file or directory) 11:08:46: Failed to load image from file "//share/pixmaps/videomass.png".

GabriWar commented 1 month ago

the bug is located in on usr/lib/pyXXXX/site-packages/videomass/vdms_sys/configurator.py changed elif binarypath == "/usr/bin/videomass" to elif binarypath == "/usr/bin/videomass" or binarypath == "/sbin/videomass":

cant seem to find the cause of the problem in the source

GabriWar commented 1 month ago

i think it has something to do with line 303 on the SOURCE configurator.py self.prg_icon = os.path.join(self.dataloc['icodir'], "videomass.png") or something like that, i can debug further if needed

jeanslack commented 1 month ago

Hi,

11:08:46: can't open file '//share/pixmaps/videomass.png' (error 2: No such file or directory) 11:08:46: Failed to load image from file "//share/pixmaps/videomass.png".

There's something wrong here: double slash character at start of path string //.

i think it has something to do with line 303 on the SOURCE configurator.py self.prg_icon = os.path.join(self.dataloc['icodir'], "videomass.png") or something like that, i can debug further if needed

If the program is installed in /usr/bin the conditional construct to look for is elif binarypath == '/usr/bin/videomass': at line 372 of the configurator.py file. So it is assumed that the pixmaps directory is located in /usr/share/pixmaps. Make sure the videomass.png file exists in this directory.

GabriWar commented 1 month ago

yep, the file exists, the \ was what was messing it up, it was detecting the wrong path

jeanslack commented 1 month ago

Even though I don't use Arch, I've never encountered an error like this and it seems like no one has reported it here so far. Have you asked other Arch users if they have the same problem as you?

In any case, on the latest version of Videomass (v5.0.16) recently released, the code of the configurator.py file has been completely changed (improved I would say) and will certainly not have that problem.

jeanslack commented 3 weeks ago

Closing due to inactivity