XaF / TraktForVLC

Automatically trakt.tv what you're watching on VLC
300 stars 49 forks source link

[BUG] [LINUX] Unable to install on VLC 3.0.1 #108

Open Generator opened 6 years ago

Generator commented 6 years ago

OS: Archlinux VLC: 3.0.1 TraktForVLC: 2.0.0a2.dev14.g31faf4b_linux

LOG:

2018-05-04 19:15:54,793::INFO::Copying helper (trakt_helper) to /home/gen/.local/share/vlc/lua
2018-05-04 19:15:54,819::INFO::Copying trakt.luac to /home/gen/.local/share/vlc/lua/intf
2018-05-04 19:15:54,819::INFO::Setting up VLC to automatically use trakt's interface
2018-05-04 19:15:54,819::DEBUG::Running command: /usr/bin/vlc -I luaintf --lua-intf trakt --lua-config trakt={autostart=\"enable\"}
2018-05-04 19:15:54,820::DEBUG::No need to change the user
2018-05-04 19:15:54,853::DEBUG::[00005609b9171080] main playlist: playlist is empty
2018-05-04 19:15:54,853::DEBUG::[00005609b9269000] [trakt] lua interface error: Error loading script /home/gen/.local/share/vlc/lua/intf/trakt.luac: /home/gen/.local/share/vlc/lua/intf/trakt.luac: version mismatch in precompiled chunk
XaF commented 6 years ago

What is the architecture of your system? 32b or 64b? And what about your VLC installation?

Generator commented 6 years ago

64bit (Archlinux only supports 64bit) Also tried with TraktForVLC_2.0.0a2_linux and manualy compile trakt.luac from source $ vlc -I luaintf --lua-intf luac --lua-config "luac={input='trakt.lua',output='trakt.luac'}" Always ended with same result

XaF commented 6 years ago

Can you try by replacing the luac file by the lua one in the intf directory?

Generator commented 6 years ago

Copying trakt.lua show has installed, but not activated

XaF commented 6 years ago

Hm, yeah actually you would need to perform the steps manually, running the installation script would put the luac file back, and this file would be chosen over the lua one. Try putting the lua file and removing the luac one, then running the following command:

vlc -I lua intf --lua-intf trakt --lua-config 'trakt={autostart="enable"}'
Generator commented 6 years ago

That just spams trakt.lua on the playlist with the module disabled

vlc.log

UPDATE: After reinstalling TraktForVLC, and replace trakt.lua{c} again, shows a different output

vlc.log

$ ./TraktForVLC_2.0.0a2_linux --loglevel DEBUG init_trakt_auth
2018-05-05 18:07:24,160::INFO::Searching for VLC binary...
2018-05-05 18:07:24,162::DEBUG::Running command: /usr/bin/vlc --lua-config trakt={init_auth=1} --intf cli
2018-05-05 18:07:24,163::DEBUG::No need to change the user
2018-05-05 18:07:24,266::DEBUG::[000055bebf1ac2a0] [http] lua interface: Lua HTTP interface
2018-05-05 18:07:24,268::DEBUG::[000055bebf0b10e0] main playlist: playlist is empty
2018-05-05 18:07:24,270::DEBUG::[000055bebf1c4090] [cli] lua interface: Listening on host "*console".
2018-05-05 18:07:24,270::DEBUG::VLC media player 3.0.1 Vetinari
2018-05-05 18:07:24,270::DEBUG::Command Line Interface initialized. Type `help' for help.
2018-05-05 18:07:24,277::DEBUG::> [000055bebf1b51a0] [trakt] lua interface: No JSON file found at /home/aj/.config/vlc/trakt_config.json
2018-05-05 18:07:24,277::DEBUG::[000055bebf1b51a0] [trakt] lua interface: No JSON file found at /home/aj/.config/vlc/trakt_cache.json
2018-05-05 18:07:24,279::DEBUG::[000055bebf1b51a0] [trakt] lua interface: TraktForVLC 0.0.0a0.dev0 - Lua implementation
2018-05-05 18:07:24,279::DEBUG::[000055bebf1b51a0] [trakt] lua interface: helper: /home/aj/.local/share/vlc/lua/trakt_helper
2018-05-05 18:07:25,226::DEBUG::[000055bebf1b51a0] [trakt] lua interface error:
2018-05-05 18:07:25,226::DEBUG::############################
2018-05-05 18:07:25,226::DEBUG::TraktForVLC is not setup with Trakt.tv yet!
2018-05-05 18:07:25,227::DEBUG::--
2018-05-05 18:07:25,227::DEBUG::PLEASE GO TO https://trakt.tv/activate
2018-05-05 18:07:25,227::DEBUG::AND ENTER THE FOLLOWING CODE:
2018-05-05 18:07:25,228::DEBUG::******
2018-05-05 18:07:25,228::DEBUG::############################
PLEASE GO TO https://trakt.tv/activate
AND ENTER THE FOLLOWING CODE:
2CD7D744
2018-05-05 18:08:14,655::DEBUG::[000055bebf1b51a0] [trakt] lua interface error:
2018-05-05 18:08:14,655::DEBUG::############################
2018-05-05 18:08:14,655::DEBUG::TraktForVLC is now setup with Trakt.tv!
2018-05-05 18:08:14,655::DEBUG::Thank you :)
2018-05-05 18:08:14,656::DEBUG::############################
TraktForVLC is now setup with Trakt.tv!
Thank you :)
2018-05-05 18:08:14,656::DEBUG::[000055bebf1b51a0] [trakt] lua interface: TraktForVLC shutting down.
2018-05-05 18:08:14,656::DEBUG::[000055bebf1c4090] [cli] lua interface error: Error loading script /usr/lib/vlc/lua/intf/cli.luac: lua/intf/modules/host.lua:286: Interrupted.

(PIN replace with ***)

XaF commented 6 years ago

What you had seems quite weird. Can you explain how you did reinstall TraktForVLC ? After reinstallation did you have the need to replace trakt.luac again by trakt.lua ?

Generator commented 6 years ago

on the first test i used trakt.lua from master branch with TraktForVLC_2.0.0a2_linux, then i upgrade to TraktForVLC_2.0.0a2.dev14.g31faf4b_linux, that's why gave different results

XaF commented 6 years ago

Did you still use the trakt.lua file from master branch or not?

Generator commented 6 years ago

Yes trakt.lua from master with TraktForVLC_2.0.0a2.dev14.g31faf4b_linux, i can try with trakt.lua from 31faf4b

UPDATE: Tried with with trakt.lua from 31faf4b but Trakt.tv is down at the time!

We're currently performing database maintenance and working to get back up and running ASAP. Thanks for your patience! https://twitter.com/trakt/status/994985699785900032

However here's a log vlc.log

XaF commented 6 years ago

I'm wondering why, on the same architecture, the luac file wouldn't work. I might need to put the lua file in the binaries instead of the luac one.