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

FF Multi Converter does not create a shortcut #2464

Closed
3 tasks done
Rak1ta opened this issue Oct 13, 2023 · 15 comments
Closed
3 tasks done

FF Multi Converter does not create a shortcut #2464

Rak1ta opened this issue Oct 13, 2023 · 15 comments
Labels
bug Something isn't working Upstream Bug something isn't working that can only be fixed upstream

Comments

@Rak1ta
Copy link
Contributor

Rak1ta commented Oct 13, 2023

Confirmations

What happened?

The script does not install the required files

Description

The script does not install the necessary files in /usr/local/share

image

I wanted to see if there were any errors during the installation, so I did it manually. But it didn’t become clearer to me.

What are your system specs (run the following command in your terminal)?

OS: Debian GNU/Linux 12 (bookworm)
OS architecture: 64-bit
Last updated Pi-Apps on: 10/12/2023
Latest Pi-Apps version: 10/13/2023
Kernel: aarch64 6.1.0-rpi4-rpi-v8
Device model: Raspberry Pi 4 Model B Rev 1.2 
Cpu name: Cortex-A72
Ram size: 3.61 GB
Raspberry Pi OS image version: 2023-10-10
Language: en_US.UTF-8

(Recommended) Error log? Terminal output? Debug messages?

pi@raspberrypi:~/FF-Multi-Converter $ sudo python3 setup.py install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:146: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/dist.py:159: UserWarning: newlines not allowed and will break in the future
  warnings.warn("newlines not allowed and will break in the future")
warning: no previously-included files found matching 'locale/*.qm'
warning: no previously-included files matching '*.pyc' found under directory 'ffmulticonverter'
zip_safe flag not set; analyzing archive contents...
ffmulticonverter.__pycache__.utils.cpython-311: module references __file__
@Rak1ta Rak1ta added the bug Something isn't working label Oct 13, 2023
@theofficialgman
Copy link
Collaborator

Does it show up after a reboot? The code you linked seems to indicate it does install a . desktop file.

@Rak1ta
Copy link
Contributor Author

Rak1ta commented Oct 13, 2023

@theofficialgman yes, I gave a link to install .desktop file. The program works, but there is no shortcut. Rebooting doesn't affect anything for me.

@Botspot
Copy link
Owner

Botspot commented Oct 14, 2023

I just installed FF Multi Converter and it shows up in Office instead of Accessories as the pi-apps description claims. @Rak1ta, do you see it in Office on your system?

@Botspot
Copy link
Owner

Botspot commented Oct 14, 2023

I've gone ahead and updated the description to say it can be launched from Office. If @Rak1ta replies to say the menu launcher is absent from the Office category, then I can re-open the issue.

As usual, my deepest thanks goes to those involved in relentlessly weeding out all bugs from Pi-Apps. I cannot do this alone as a busy engineering college student.

@Rak1ta
Copy link
Contributor Author

Rak1ta commented Oct 14, 2023

@Botspot I'm missing a shortcut. It is not available as a .desktop file either.

@Botspot
Copy link
Owner

Botspot commented Oct 14, 2023

@Rak1ta, please run this command:

file /usr/local/share/applications/ffmulticonverter.desktop

@Botspot Botspot reopened this Oct 14, 2023
@Botspot
Copy link
Owner

Botspot commented Oct 14, 2023

And this:

file /usr/local/share/applications

@theofficialgman
Copy link
Collaborator

I can reproduce the issue. For some reason the binary is installed (/usr/local/bin/ffmulticonverter) but the .desktop file is nowhere to be found.
Tested on Bookworm ARM64
The folder /usr/local/share/applications already existed on my system even, so it isn't like it failed to place the file there because the folder did not previously exist.

I'm not super familiar with python distutils but it has to do with that https://docs.python.org/3.11/distutils/setupscript.html#installing-additional-files. Everything looks good to me so idk whats wrong.

@Botspot
Copy link
Owner

Botspot commented Oct 14, 2023

Seems like Bookworm is the difference here. I'm still on Bullseye.

@theofficialgman
Copy link
Collaborator

yeah this is a setuptools bug.... not sure who it needs to be reported to. it is simply ignoring the data_files entirely. We know setup.py is deprecated but its not supposed to be broken...

@theofficialgman theofficialgman added the Upstream Bug something isn't working that can only be fixed upstream label Oct 14, 2023
@theofficialgman
Copy link
Collaborator

can also confirm the issue on ubuntu mantic (also on python 3.11). so this definitely seems like a regression from 3.9 -> 3.11 regarding setuptools

@theofficialgman
Copy link
Collaborator

theofficialgman commented Oct 14, 2023

@Botspot found the change and found the fix
python changed to installing data_files to egg /usr/local/lib/python3.11/dist-packages/ffmulticonverter-1.8.0-py3.11.egg/

now you have to pass --old-and-unmanageable to have the old expected results
https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#data-files

sudo python3 setup.py install --old-and-unmanageable

does that run on bullseye without an error? because I will add it to the script if bullseye does not care even if it does not use it

@Botspot
Copy link
Owner

Botspot commented Oct 14, 2023

@Botspot found the change and found the fix python changed to installing data_files to egg /usr/local/lib/python3.11/dist-packages/ffmulticonverter-1.8.0-py3.11.egg/

now you have to pass --old-and-unmanageable to have the old expected results https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#data-files

sudo python3 setup.py install --old-and-unmanageable

does that run on bullseye without an error? because I will add it to the script if bullseye does not care even if it does not use it

No it fails.

Errors:
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --old-and-unmanageable not recognized

@Botspot
Copy link
Owner

Botspot commented Oct 14, 2023

Just to be clear, I changed line 8 in the install script to include this:

sudo python3 setup.py install --old-and-unmanageable

@theofficialgman
Copy link
Collaborator

Alright cool.
I'll have to add a checks for the appropriate version when that flag was added. And only add it when necessary.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Upstream Bug something isn't working that can only be fixed upstream
Projects
None yet
Development

No branches or pull requests

3 participants