fxmarty / rikai-mpv

A port of Rikaichamp Japanese dictionary and parser into mpv video player
MIT License
34 stars 3 forks source link

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

Open CharlesCoeder opened 1 year ago

CharlesCoeder commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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