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

i cannot run in fedora x86_64 #205

Open
atesin opened this issue Dec 15, 2024 · 10 comments
Open

i cannot run in fedora x86_64 #205

atesin opened this issue Dec 15, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@atesin
Copy link

atesin commented Dec 15, 2024

Before opening an issue make sure that there are no duplicates and that you are on the latest version.
Describe the bug

sadly the instructions are mainly for docker... i dont have docker (and maybe never will), i have a fedora home server instead (my website, nas, some game servers, download large files, personal projects, etc)... i want to add sponsorblock to my network throught iSponsorBlockTV to skip video ads annoyances

after download linux release and run through ssh console, however although the mentioned file is in place the only message i got is:

No interpreter found for path '/root/.cache/pyapp/distributions/_14656550572188801628/python/bin/python3' in managed installations or search path

... also if i run file <isbtb-file> i got

iSponsorBlockTV-x86_64-linux: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=fa04c9e3abed7d75e8b2fa5ddefe3fe0ccef1845, for GNU/Linux 3.2.0, stripped

i have the (required library?) file installed /lib64/ld-linux-x86-64.so.2 i dont know if it has something to do ...

i suspect the "iSponsorBlockTV-x86_64-linux" file is not actually compiled for linux but for DEBIAN instead

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...' = releases page
  2. Click on '....' = download linux x86_64 file
  3. Scroll down to '....' = chmod +x isponsotblocktv-downloaded ; ./isponsotblocktv
  4. See error = No interpreter found for path '/root/.cache/pyapp/distributions/_14656550572188801628/python/bin/python3' in managed installations or search path

Expected behavior
A clear and concise description of what you expected to happen.

i never been able to run isponsorblocktv, but i think it must be show some log of what is happening, data loaded, device detected, skip events, etc

Screenshots
If applicable, add screenshots to help explain your problem.

iSponsorBlockTV server (please complete the following information):

  • OS: fedora 41 x86_64 minimal headless server network installation
  • Python version: fedora report me python version 3.13

Apple TV (please complete the following information):

  • i have no apple tv... but have some samsung tvs, rokus, some android devices and windows pcs

Additional context
Add any other context about the problem here.

@atesin atesin added the bug Something isn't working label Dec 15, 2024
@dmunozv04
Copy link
Owner

dmunozv04 commented Dec 15, 2024

Is it possible you're running an older CPU?
By default, pyapp (the tool used to make the executables) gets python binaries from python-build-standalone with version "v3" which seems to be 64-bit Intel/AMD CPUs approximately newer than Haswell (released in 2013) and Excavator (released in 2015): https://gregoryszorc.com/docs/python-build-standalone/main/running.html

EDIT: you might also be able to check by running cat /proc/cpuinfo and seeing if AVX, AVX2, MOVBE are listed there

@dmunozv04
Copy link
Owner

Also, could you try running this build? https://github.com/dmunozv04/iSponsorBlockTV/actions/runs/12334728600#artifacts

@atesin
Copy link
Author

atesin commented Dec 15, 2024

i will answer myself ... i hope you could add this info in some tutorial... i installed isbtv PYTHON VERSION ... need some requirements before (not advised + not auto installed), install scripts seems to compile something that need previous requirements:

  • needed to install gcc package: dnf install gcc
  • needed to install python3-devel package: dnf install python3-devel
  • finally install isbtv python version from pip: pip install iSponsorBlockTV
    • maybe need to install pip first: dnf install python3-pip

optional: install screen and let it running in background inside a screen (or install as a systemd unit if you know how):

  • dnf install screen
  • screen -dmS isbtv ; screen -x isbtv
  • iSponsorBlockTV setup-cli (inside screen, follow instructions, --help for help)
  • iSponsorBlockTV (run, will flood console with many logs)
  • ctrl-c to stop isbtv
  • ctrl-a + d to dettach screen and leave running, screen -x isbtv to reattach, screen -ls to list screens, exit inside screen to close it... learn more screen usage, is nice

but ANYWAY...

linux release seem broken to me (fedora 41 x86_64)

... which ubuntu.... i am not using ubuntu, i have a SERVER

@dmunozv04
Copy link
Owner

Not having specific python instructions is on purpose since it isn't a recommended install method, but I'm glad you managed to get it working.
About the linux release being broken for you, there's a test build I prepared for you that might solve the issue; check it if you'd like.
Finally, I haven't mentioned ubuntu, so I don't understand the confusion there

@dmunozv04
Copy link
Owner

After doing more testing myself, the CPU you're using is old, and iSponsorBlockTV works perfectly if using a "v1" binary like the one I've linked above. You can see sample console output from fedora

[myuser@fedora64 Downloads]$ ./iSponsorBlockTV-x86_64-linux-3 --help

 Usage: -c [OPTIONS] COMMAND [ARGS]...

 iSponsorblockTV

╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --data   -d  TEXT  data directory                                                                                                                  │
│ --debug            debug mode                                                                                                                      │
│ --help             Show this message and exit.                                                                                                     │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ self                           pyapp options (update, remove, restore)                                                                             │
│ setup                          Setup the program graphically                                                                                       │
│ setup-cli                      Setup the program in the command line                                                                               │
│ start                          Start the main program                                                                                              │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

[myuser@fedora64 Downloads]$ uname -a
Linux fedora64 6.12.4 #16 SMP Tue Dec 10 03:27:24 UTC 2024 x86_64 GNU/Linux
[david@fedora64 Downloads]$

@atesin
Copy link
Author

atesin commented Dec 15, 2024

[python version] isn't a recommended install method

why? i see is running fine

I haven't mentioned ubuntu, so I don't understand the confusion there

Also, could you try running this build? https://github.com/dmunozv04/iSponsorBlockTV/actions/runs/12334728600#artifacts

imagen

the CPU you're using is old

how do you know my cpu is old?, i hadnt posted my pc specs

yes it is faily old, but it should be compatible with a wide range of pcs, while it doesnt REQUIRE newer instructions like avx512 or so... isnt?

i have a pentium xeon 3ghz 12 cores, is a server processor, until a bit old i think is powerful more than enough.. dont you?

@dmunozv04
Copy link
Owner

As I've explained before, the most likely cause of the binary not running is having a CPU older than this: 64-bit Intel/AMD CPUs approximately newer than Haswell (released in 2013) and Excavator (released in 2015).

Ubuntu being mentioned on GitHub actions doesn't mean that the provided binary won't run on other linux distros, as I've said before I've got it successfully running on fedora.

Installing with python isn't a supported method since (as you've discovered), every linux distro has a different way of installing python, pip and other dependencies; it's just not a good experience for a regular user that doesn't want to learn how python packaging works.

Finally, if I've got all your issues sorted, please close the issue. Otherwise do let me know

@atesin
Copy link
Author

atesin commented Dec 15, 2024

i am glad
we could close the issue, but i am afraid if we close it somebody else with a similar difficulty wont find these help (howto install isbtv in fedora, in an old powerful big dedicated server xD)

i feel my problem is unrelated with my cpu arch, but more with dinamically linked binary suppossing a library file located in a path other than expected

@dmunozv04
Copy link
Owner

That's fair. If the test build linked here works (the zip file called binaries-x86_64-linux), I can offer it on releases for people with older cpus and document it

@atesin
Copy link
Author

atesin commented Dec 15, 2024

i tested and it seem to work ... what i dont know if it works because the previous files i installed or not (libraries, etc)

... i remove python3-devel, gcc packages and seem to work either (maybe because the program was already compiled and installed?)... file command prints exactly the same info between the file i built and this downloaded (except md5 hash of course)

v2.2.1 crashes with same log message (No interpreter found blah), there are no more binary previous versions to test... so i must think this new CI binary has changed and corrected something :D

tell me if you want me to try something else

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

2 participants