Skip to content

[Bug]: /app/bin/easyterm.py: cannot execute: required file not found #3843

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

Open
latin-1 opened this issue Apr 11, 2025 · 6 comments · Fixed by flathub/com.usebottles.bottles#490

Comments

@latin-1
Copy link

latin-1 commented Apr 11, 2025

Describe the bug

"Run in Terminal" does not work properly. It works fine if the option is not checked.

To Reproduce

  1. Create a new bottle
  2. Check the "Run in Terminal" option in the gear icon
  3. Click "Run Executable" and select an executable file to run

Package

Flatpak from Flathub

Distribution

Fedora 41

Debugging Information

Official Package: true
Version: '51.21'
DE/WM: gnome
Display:
    X.org: true
    X.org (port): :0
    Wayland: true
Graphics:
    vendors: {}
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.13.9-200.fc41.x86_64
Disk:
    Total: 14591766528
    Free: 14591602688
RAM:
    MemTotal: 27.2GiB
    MemAvailable: 24.0GiB
Bottles_envs: null

Troubleshooting Logs

22:51:13 (INFO) Launching an executable… 
22:51:14 (WARNING) No GPU vendor found, keep going without setting VK_ICD_FILENAMES… 
22:51:14 (INFO) Command: easyterm.py -d -p "#00ffff #2b2d2e" -c 'bash -c '"'"'/var/home/hikari/.var/app/com.usebottles.bottles/data/bottles/runners/soda-9.0-1/bin/wine64 /var/home/hikari/path/to/executable.exe'"'"'' 
/bin/sh: line 1: /app/bin/easyterm.py: cannot execute: required file not found

Additional context

No response

@Perkolator
Copy link

Yep, stopped working today right after installing these Flatpak updates:

com.usebottles.bottles.Locale
org.gnome.Platform.Compat.i386
com.usebottles.bottles

Which seems to point to about 2 weeks old (and last) commit (why it was offered as a Flatpak udpate only now?): 8875b2b

@TheEvilSkeleton
Copy link
Member

TheEvilSkeleton commented Apr 12, 2025

Huh, I thought we canceled the build in https://buildbot.flathub.org/#/builders/6/builds/192819 - it was merged accidentally. I'll revert that right away.

@Perkolator
Copy link

@TheEvilSkeleton Just updated again, and it still doesn't work. Same error message as before.

@stashymane
Copy link

Same issue, installed the exact build in that PR, opening any terminal within Bottles results in /bin/sh: line 1: /app/bin/easyterm.py: cannot execute: required file not found

@MithicSpirit
Copy link

The file begins with a #!python, which seems incorrect. It should probably be #!/usr/bin/python instead.

@ChillyVanilly77
Copy link

yep, I managed to get it working again by modifying the actual file (wich would have the in-sandbox-specifiic path) /app/bin/easyterm.py script by swapping the original shebang line with the most preferred way to get the actual environment using #!/usr/bin/env python3. Namely, the exact file that I have modified on my host fs as the actual workaround was ~/.local/share/flatpak/app/com.usebottles.bottles/current/active/files/bin/easyterm.py (which is the 1-of-2 hard-linked files)

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants