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

Cannot find main.* for any supported scripting backend #14

Open
CharlesCoeder opened this issue May 26, 2023 · 2 comments
Open

Cannot find main.* for any supported scripting backend #14

CharlesCoeder opened this issue May 26, 2023 · 2 comments

Comments

@CharlesCoeder
Copy link

Running KDE Plasma/X11 on Arch

I'm receiving this error when trying to use rikai-mpv:

image
Cannot find main.* for any supported scripting backend in: /home/charlie/.config/mpv/scripts/rikai-mpv

I've followed the README installation step by step, including installing all the necessary dependencies.

Here is my folder structure:

image

I haven't changed any configs, and have also unchecked the "Allow applications to block compositing" option.

The script seems to be semi functioning, as the subtitles are rendered differently when the script is enabled:
image

When I hover over the subtitles, nothing appears, however the black outline around the subtitles disappears.

@CharlesCoeder
Copy link
Author

Here are my dependency versions:

python 3.11.3
PyQt5 5.15.9
node v20.2.0
typescript 5.0.4
yarn 1.22.19
socat 1.7.4.4

QtWebEngineWidgets
PyQtWebEngine 5.15.6
PyQtWebEngine-Qt5 5.15.2
PyQt6-WebEngine 6.5.0

KDE Plasma 5.27.5
For what it's worth, I have tried changing my global theme in plasma as discussed in #12 but to no avail.

@CharlesCoeder
Copy link
Author

I managed to fix the issue by installing all the dependencies through Arch's package manager rather than via pip/npm.

First I uninstalled the existing dependencies:

pip uninstall PyQtWebEngine
sudo npm uninstall -g typescript
sudo npm uninstall -g yarn

Then I installed them through the package manager (for me, I use yay):

yay python-pyqt5-webengine
yay typescript
yay yarn

Then I redid the yarn/typescript stuff:

cd ~/.config/mpv/scripts/rikai-mpv/rikaichamp-backend/
yarn install
tsc

And now everything works! Thanks for making this awesome tool :D

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

No branches or pull requests

1 participant