XaF / TraktForVLC

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

MacOS: TraktForVLC does not write the configuration file to ~/Library/Application Support/org.videolan.vlc #90

Closed roelvan closed 6 years ago

roelvan commented 6 years ago

On OSX:

TraktForVLC_2.0.0a1_osx install --vlc /Applications/VLC.app/Contents/MacOS/VLC
XaF commented 6 years ago

The parameter you put after --vlc do not seem to be the VLC binary. Can you try to simply execute TraktForVLC binary without any parameter?

./TraktForVLC_2.0.0a1_osx

roelvan commented 6 years ago

Then I get the VLC executable not found: use the --vlc parameter to specify VLC location. While I don't get that error with --vlc /Applications/VLC.app/Contents/MacOS/VLC.

roelvan commented 6 years ago

With the --vlc param I get:

./TraktForVLC_2.0.0a1_osx install --vlc /Applications/VLC.app/Contents/MacOS/VLC
2018-04-16 21:15:03,051::INFO::VLC binary: /Applications/VLC.app/Contents/MacOS/VLC
TraktForVLC will be installed for the following configuration:
 - OS: Darwin
 - VLC: /Applications/VLC.app/Contents/MacOS/VLC
 - VLC configuration: /Users/roel/Library/Application Support/org.videolan.vlc
 - VLC Lua: /Users/roel/Library/Application Support/org.videolan.vlc/lua
 - VLC Lua interface: /Users/roel/Library/Application Support/org.videolan.vlc/lua/intf
 - Service ? No
TraktForVLC is currently installed, replacing the current installed version will call 'uninstall' using the old binary, and 'install' with the new one.
Proceed with installation ? [y/n]

After entering y it gets stuck at the point I mentioned above.

XaF commented 6 years ago

Can you please run the following:

./TraktForVLC_2.0.0a1_osx --debug install --vlc /Applications/VLC.app/Contents/MacOS/VLC

And paste the full log here. The process seems to be stuck while trying to uninstall TraktForVLC, which is weird if it was not installed previously.

Francis2b commented 6 years ago

To be able to install I had to use the debug command line. Now it's installed but there is no trakt_config.json in the VLC configuration directory.

Here is my log:

xxxxxx-MacBook-Pro:Desktop xxxxxx $ ./TraktForVLC_2.0.0a1_osx --debug install --vlc /Applications/VLC.app/Contents/MacOS/VLC
2018-04-16 22:53:20,285::INFO::VLC binary: /Applications/VLC.app/Contents/MacOS/VLC
TraktForVLC will be installed for the following configuration:
 - OS: Darwin
 - VLC: /Applications/VLC.app/Contents/MacOS/VLC
 - VLC configuration: /Users/xxxxxx/Library/Application Support/org.videolan.vlc
 - VLC Lua: /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua
 - VLC Lua interface: /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/intf
 - Service ? No
Proceed with installation ? [y/n] y
2018-04-16 22:53:34,652::INFO::Creating directory (and parents): /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/intf
2018-04-16 22:53:34,652::INFO::Copying helper (trakt_helper) to /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua
2018-04-16 22:53:34,664::INFO::Copying trakt.luac to /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/intf
2018-04-16 22:53:34,665::INFO::Setting up VLC to automatically use trakt's interface
2018-04-16 22:53:34,665::DEBUG::Running command: /Applications/VLC.app/Contents/MacOS/VLC -I luaintf --lua-intf trakt --lua-config trakt={autostart=\"enable\"}
2018-04-16 22:53:34,665::DEBUG::No need to change the user
2018-04-16 22:53:35,082::DEBUG::[00007fc48b616800] main interface error: no suitable interface module
2018-04-16 22:53:35,082::DEBUG::[00007fc48b4053a0] main libvlc error: interface "(null),none" initialization failed
2018-04-16 22:53:35,083::DEBUG::[00007fc48b6285e0] [cli] lua interface: Listening on host "*console".
2018-04-16 22:53:35,083::DEBUG::VLC media player 3.0.1 Vetinari
2018-04-16 22:53:35,083::DEBUG::Command Line Interface initialized. Type `help' for help.
2018-04-16 22:53:35,091::DEBUG::> [00007fc48b61a980] main playlist: playlist is empty
2018-04-16 22:53:35,093::DEBUG::[00007fc48b6295a0] [trakt] lua interface: No JSON file found at /Users/xxxxxx/Library/Preferences/org.videolan.vlc/trakt_config.json
2018-04-16 22:53:35,093::DEBUG::[00007fc48b6295a0] [trakt] lua interface: No JSON file found at /Users/xxxxxx/Library/Preferences/org.videolan.vlc/trakt_cache.json
2018-04-16 22:53:35,093::DEBUG::[00007fc48b6295a0] [trakt] lua interface: TraktForVLC 2.0.0a1 - Lua implementation
2018-04-16 22:53:35,093::DEBUG::[00007fc48b6295a0] [trakt] lua interface: helper: /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/trakt_helper
2018-04-16 22:53:35,093::DEBUG::[00007fc48b6295a0] [trakt] lua interface: Lua interface enabled
2018-04-16 22:53:35,093::DEBUG::[00007fc48b6295a0] [trakt] lua interface: trakt Lua interface enabled
2018-04-16 22:53:35,093::DEBUG::[00007fc48b6295a0] [trakt] lua interface: VLC is configured to automatically use TraktForVLC
2018-04-16 22:53:35,093::DEBUG::[00007fc48b6295a0] [trakt] lua interface: TraktForVLC shutting down.
2018-04-16 22:53:35,093::DEBUG::[00007fc48b6285e0] [cli] lua interface error: Error loading script /Applications/VLC.app/Contents/MacOS/share/lua/intf/cli.luac: ...kage/macosx/../../../share/lua/intf/modules/host.lua:286: Interrupted.
2018-04-16 22:53:35,109::INFO::VLC configured
2018-04-16 22:53:35,109::INFO::TraktForVLC v2.0.0a1 is now installed. :D
2018-04-16 22:53:35,110::INFO::Initializing authentication with Trakt.tv
2018-04-16 22:53:35,110::DEBUG::Running command: /Applications/VLC.app/Contents/MacOS/VLC --lua-config trakt={init_auth=1} --intf cli
2018-04-16 22:53:35,110::DEBUG::No need to change the user
2018-04-16 22:53:35,174::DEBUG::[00007fba1cd4cf70] main interface error: no suitable interface module
2018-04-16 22:53:35,175::DEBUG::[00007fba1cd0bf10] main libvlc error: interface "(null),none" initialization failed
2018-04-16 22:53:35,175::DEBUG::[00007fba1cd36b50] [cli] lua interface: Listening on host "*console".
2018-04-16 22:53:35,175::DEBUG::VLC media player 3.0.1 Vetinari
2018-04-16 22:53:35,175::DEBUG::Command Line Interface initialized. Type `help' for help.
2018-04-16 22:53:35,175::DEBUG::> [00007fba1ce21ca0] main playlist: playlist is empty
2018-04-16 22:53:35,175::DEBUG::[00007fba1cd43270] [trakt] lua interface: No JSON file found at /Users/xxxxxx/Library/Preferences/org.videolan.vlc/trakt_config.json
2018-04-16 22:53:35,176::DEBUG::[00007fba1cd43270] [trakt] lua interface: No JSON file found at /Users/xxxxxx/Library/Preferences/org.videolan.vlc/trakt_cache.json
2018-04-16 22:53:35,176::DEBUG::[00007fba1cd43270] [trakt] lua interface: TraktForVLC 2.0.0a1 - Lua implementation
2018-04-16 22:53:35,176::DEBUG::[00007fba1e9001e0] [cli] lua interface: Listening on host "*console".
2018-04-16 22:53:35,176::DEBUG::VLC media player 3.0.1 Vetinari
2018-04-16 22:53:35,176::DEBUG::Command Line Interface initialized. Type `help' for help.
2018-04-16 22:53:35,176::DEBUG::[00007fba1cd43270] [trakt] > lua interface: helper: /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/trakt_helper
2018-04-16 22:53:37,192::DEBUG::[00007fba1cd43270] [trakt] lua interface error:
2018-04-16 22:53:37,192::DEBUG::############################
2018-04-16 22:53:37,193::DEBUG::TraktForVLC is not setup with Trakt.tv yet!
2018-04-16 22:53:37,193::DEBUG::--
2018-04-16 22:53:37,193::DEBUG::PLEASE GO TO https://trakt.tv/activate
2018-04-16 22:53:37,193::DEBUG::AND ENTER THE FOLLOWING CODE:
2018-04-16 22:53:37,193::DEBUG::3DBCA2D6
2018-04-16 22:53:37,193::DEBUG::############################
PLEASE GO TO https://trakt.tv/activate
AND ENTER THE FOLLOWING CODE:
3DBCA2D6
XaF commented 6 years ago

HI @Francis2b Did you finish the installation process ? At the end, it asks you to enter a code. Enter that code and wait for the process to finish by itself. I don't see why the --debug was required in your case either ?

Francis2b commented 6 years ago

Hi @XaF ! :)

Yes everything was looking good! Should I do it again and send you another log?

XaF commented 6 years ago

@Francis2b if the process was finished properly, you should have a message saying the following as last sentences of your log:

TraktForVLC is now setup with Trakt.tv!
Thank you :)

In your case, it's still waiting for the code (i.e. it probably did not get the chance to confirm with trakt.tv's servers that the code was validated...)

Francis2b commented 6 years ago

@XaF Here is the new log:

Last login: Mon Apr 16 22:48:56 on ttys000
xxxxxxs-MacBook-Pro:~ xxxxxx$ cd /Users/xxxxxx/Desktop/
xxxxxxs-MacBook-Pro:Desktop xxxxxx$ chmod +x /Users/xxxxxx/Desktop/TraktForVLC_2.0.0a1_osx
xxxxxxs-MacBook-Pro:Desktop xxxxxx$ ./TraktForVLC_2.0.0a1_osx --debug install --vlc /Applications/VLC.app/Contents/MacOS/VLC
2018-04-16 23:12:34,474::INFO::VLC binary: /Applications/VLC.app/Contents/MacOS/VLC
TraktForVLC will be installed for the following configuration:
 - OS: Darwin
 - VLC: /Applications/VLC.app/Contents/MacOS/VLC
 - VLC configuration: /Users/xxxxxx/Library/Application Support/org.videolan.vlc
 - VLC Lua: /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua
 - VLC Lua interface: /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/intf
 - Service ? No
TraktForVLC is currently installed, replacing the current installed version will call 'uninstall' using the old binary, and 'install' with the new one.
Proceed with installation ? [y/n] y
2018-04-16 23:12:37,966::INFO::Uninstalling currently installed TraktForVLC
2018-04-16 23:12:37,966::DEBUG::Running command: "/Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/trakt_helper" --logformat UNINSTALL::%(levelname)s::%(message)s --loglevel DEBUG uninstall --vlc /Applications/VLC.app/Contents/MacOS/VLC --vlc-lua-directory "/Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua" --vlc-config-directory "/Users/xxxxxx/Library/Application Support/org.videolan.vlc" --yes
2018-04-16 23:12:38,749::INFO::UNINSTALL::INFO::VLC binary: /Applications/VLC.app/Contents/MacOS/VLC
2018-04-16 23:12:38,750::INFO::UNINSTALL::INFO::Searching for the files to remove in /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua
2018-04-16 23:12:38,750::INFO::UNINSTALL::INFO::Searching for the files to remove in /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/intf
2018-04-16 23:12:38,750::INFO::UNINSTALL::INFO::Setting up VLC not to use trakt's interface
2018-04-16 23:12:38,750::INFO::UNINSTALL::DEBUG::Running command: /Applications/VLC.app/Contents/MacOS/VLC -I luaintf --lua-intf trakt --lua-config trakt={autostart=\"disable\"}
2018-04-16 23:12:38,750::INFO::UNINSTALL::DEBUG::No need to change the user
2018-04-16 23:12:38,862::INFO::UNINSTALL::DEBUG::[00007fdf447288e0] main interface error: no suitable interface module
2018-04-16 23:12:38,862::INFO::UNINSTALL::DEBUG::[00007fdf4460bbc0] main libvlc error: interface "(null),none" initialization failed
2018-04-16 23:12:38,862::INFO::UNINSTALL::DEBUG::[00007fdf44714660] [cli] lua interface: Listening on host "*console".
2018-04-16 23:12:38,862::INFO::UNINSTALL::DEBUG::VLC media player 3.0.1 Vetinari
2018-04-16 23:12:38,862::INFO::UNINSTALL::DEBUG::Command Line Interface initialized. Type `help' for help.
2018-04-16 23:12:38,862::INFO::UNINSTALL::DEBUG::> [00007fdf44666d50] main playlist: playlist is empty
2018-04-16 23:12:38,863::INFO::UNINSTALL::DEBUG::[00007fdf4471e130] [trakt] lua interface: TraktForVLC 2.0.0a1 - Lua implementation
2018-04-16 23:12:38,864::INFO::UNINSTALL::DEBUG::[00007fdf4471e130] [trakt] lua interface: helper: /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/trakt_helper
2018-04-16 23:12:38,865::INFO::UNINSTALL::DEBUG::[00007fdf4471e130] [trakt] lua interface: Lua interface disabled
2018-04-16 23:12:38,865::INFO::UNINSTALL::DEBUG::[00007fdf4471e130] [trakt] lua interface: VLC is configured not to use TraktForVLC
2018-04-16 23:12:38,865::INFO::UNINSTALL::DEBUG::[00007fdf4471e130] [trakt] lua interface: TraktForVLC shutting down.
2018-04-16 23:12:38,865::INFO::UNINSTALL::DEBUG::[00007fdf44729eb0] [trakt] lua interface: TraktForVLC 2.0.0a1 - Lua implementation
2018-04-16 23:12:38,865::INFO::UNINSTALL::DEBUG::[00007fdf44729eb0] [trakt] lua interface: helper: /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/trakt_helper
2018-04-16 23:12:38,866::INFO::UNINSTALL::DEBUG::[00007fdf44729eb0] [trakt] lua interface: Lua interface already disabled
2018-04-16 23:12:38,866::INFO::UNINSTALL::DEBUG::[00007fdf44729eb0] [trakt] lua interface: VLC is configured not to use TraktForVLC
2018-04-16 23:12:38,866::INFO::UNINSTALL::DEBUG::[00007fdf44729eb0] [trakt] lua interface: TraktForVLC shutting down.
2018-04-16 23:12:38,866::INFO::UNINSTALL::DEBUG::[00007fdf44714660] [cli] lua interface error: Error loading script /Applications/VLC.app/Contents/MacOS/share/lua/intf/cli.luac: ...kage/macosx/../../../share/lua/intf/modules/host.lua:286: Interrupted.
2018-04-16 23:12:38,877::INFO::UNINSTALL::INFO::VLC configured
2018-04-16 23:12:38,877::INFO::UNINSTALL::INFO::Removing /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/intf/trakt.luac
2018-04-16 23:12:38,878::INFO::UNINSTALL::INFO::Removing /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/trakt_helper
2018-04-16 23:12:38,878::INFO::UNINSTALL::INFO::TraktForVLC 2.0.0a1 is now uninstalled. :(
2018-04-16 23:12:39,034::INFO::Copying helper (trakt_helper) to /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua
2018-04-16 23:12:39,045::INFO::Copying trakt.luac to /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/intf
2018-04-16 23:12:39,046::INFO::Setting up VLC to automatically use trakt's interface
2018-04-16 23:12:39,047::DEBUG::Running command: /Applications/VLC.app/Contents/MacOS/VLC -I luaintf --lua-intf trakt --lua-config trakt={autostart=\"enable\"}
2018-04-16 23:12:39,047::DEBUG::No need to change the user
2018-04-16 23:12:39,156::DEBUG::[00007fe491710b70] main interface error: no suitable interface module
2018-04-16 23:12:39,156::DEBUG::[00007fe4938007f0] main libvlc error: interface ",none" initialization failed
2018-04-16 23:12:39,157::DEBUG::[00007fe491710b70] main interface error: no suitable interface module
2018-04-16 23:12:39,157::DEBUG::[00007fe4938007f0] main libvlc error: interface ",none" initialization failed
2018-04-16 23:12:39,157::DEBUG::[00007fe491710b70] main interface error: no suitable interface module
2018-04-16 23:12:39,157::DEBUG::[00007fe4938007f0] main libvlc error: interface "(null),none" initialization failed
2018-04-16 23:12:39,157::DEBUG::[00007fe491422170] [cli] lua interface: Listening on host "*console".
2018-04-16 23:12:39,157::DEBUG::VLC media player 3.0.1 Vetinari
2018-04-16 23:12:39,157::DEBUG::Command Line Interface initialized. Type `help' for help.
2018-04-16 23:12:39,157::DEBUG::> [00007fe491503cd0] main playlist: playlist is empty
2018-04-16 23:12:39,159::DEBUG::[00007fe4917092d0] [trakt] lua interface: TraktForVLC 2.0.0a1 - Lua implementation
2018-04-16 23:12:39,159::DEBUG::[00007fe4917092d0] [trakt] lua interface: helper: /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/trakt_helper
2018-04-16 23:12:39,160::DEBUG::[00007fe4917092d0] [trakt] lua interface: Lua interface enabled
2018-04-16 23:12:39,160::DEBUG::[00007fe4917092d0] [trakt] lua interface: trakt Lua interface already enabled
2018-04-16 23:12:39,160::DEBUG::[00007fe4917092d0] [trakt] lua interface: VLC is configured to automatically use TraktForVLC
2018-04-16 23:12:39,160::DEBUG::[00007fe4917092d0] [trakt] lua interface: TraktForVLC shutting down.
2018-04-16 23:12:39,160::DEBUG::[00007fe491422170] [cli] lua interface error: Error loading script /Applications/VLC.app/Contents/MacOS/share/lua/intf/cli.luac: ...kage/macosx/../../../share/lua/intf/modules/host.lua:286: Interrupted.
2018-04-16 23:12:39,172::INFO::VLC configured
2018-04-16 23:12:39,172::INFO::TraktForVLC v2.0.0a1 is now installed. :D
2018-04-16 23:12:39,173::INFO::Initializing authentication with Trakt.tv
2018-04-16 23:12:39,173::DEBUG::Running command: /Applications/VLC.app/Contents/MacOS/VLC --lua-config trakt={init_auth=1} --intf cli
2018-04-16 23:12:39,173::DEBUG::No need to change the user
2018-04-16 23:12:39,273::DEBUG::[00007ffea5520430] main interface error: no suitable interface module
2018-04-16 23:12:39,273::DEBUG::[00007ffea570f950] main libvlc error: interface ",none" initialization failed
2018-04-16 23:12:39,273::DEBUG::[00007ffea5520430] main interface error: no suitable interface module
2018-04-16 23:12:39,273::DEBUG::[00007ffea570f950] main libvlc error: interface ",none" initialization failed
2018-04-16 23:12:39,273::DEBUG::[00007ffea552a550] main interface error: no suitable interface module
2018-04-16 23:12:39,273::DEBUG::[00007ffea570f950] main libvlc error: interface "(null),none" initialization failed
2018-04-16 23:12:39,274::DEBUG::[00007ffea5515de0] [cli] lua interface: Listening on host "*console".
2018-04-16 23:12:39,274::DEBUG::VLC media player 3.0.1 Vetinari
2018-04-16 23:12:39,274::DEBUG::Command Line Interface initialized. Type `help' for help.
2018-04-16 23:12:39,274::DEBUG::> [00007ffea7105bc0] main playlist: playlist is empty
2018-04-16 23:12:39,275::DEBUG::[00007ffea712acd0] [cli] lua interface: Listening on host "*console".
2018-04-16 23:12:39,275::DEBUG::[00007ffea5520430] VLC media player 3.0.1 Vetinari
2018-04-16 23:12:39,275::DEBUG::[trakt] lua interface: TraktForVLC 2.0.0a1 - Lua implementation
2018-04-16 23:12:39,275::DEBUG::Command Line Interface initialized. Type `help' for help.
2018-04-16 23:12:39,275::DEBUG::> [00007ffea5520430] [trakt] lua interface: helper: /Users/xxxxxx/Library/Application Support/org.videolan.vlc/lua/trakt_helper
2018-04-16 23:12:41,546::DEBUG::[00007ffea5520430] [trakt] lua interface error:
2018-04-16 23:12:41,546::DEBUG::############################
2018-04-16 23:12:41,546::DEBUG::TraktForVLC is not setup with Trakt.tv yet!
2018-04-16 23:12:41,546::DEBUG::--
2018-04-16 23:12:41,546::DEBUG::PLEASE GO TO https://trakt.tv/activate
2018-04-16 23:12:41,546::DEBUG::AND ENTER THE FOLLOWING CODE:
2018-04-16 23:12:41,546::DEBUG::BA290C72
2018-04-16 23:12:41,546::DEBUG::############################
PLEASE GO TO https://trakt.tv/activate
AND ENTER THE FOLLOWING CODE:
BA290C72
2018-04-16 23:13:17,433::DEBUG::[00007ffea5520430] [trakt] lua interface error:
2018-04-16 23:13:17,433::DEBUG::############################
2018-04-16 23:13:17,433::DEBUG::TraktForVLC is now setup with Trakt.tv!
2018-04-16 23:13:17,433::DEBUG::Thank you :)
2018-04-16 23:13:17,433::DEBUG::############################
TraktForVLC is now setup with Trakt.tv!
Thank you :)
2018-04-16 23:13:17,434::DEBUG::[00007ffea5520430] [trakt] lua interface: TraktForVLC shutting down.
2018-04-16 23:13:17,434::DEBUG::[00007ffea712acd0] [cli] lua interface error: Error loading script /Applications/VLC.app/Contents/MacOS/share/lua/intf/cli.luac: ...kage/macosx/../../../share/lua/intf/modules/host.lua:286: Interrupted.
2018-04-16 23:13:17,435::DEBUG::[00007ffea5515de0] [cli] lua interface error: Error loading script /Applications/VLC.app/Contents/MacOS/share/lua/intf/cli.luac: ...kage/macosx/../../../share/lua/intf/modules/host.lua:286: Interrupted.
XaF commented 6 years ago

And you still don't have any trakt_config.json file at /Users/xxxxxx/Library/Application Support/org.videolan.vlc?

Francis2b commented 6 years ago

No the file is missing

XaF commented 6 years ago

Found the issue for that. Will push a fix tonight. Thanks for the report!

Francis2b commented 6 years ago

Great! Happy to be able to help you for this fix :) I will test the fix tomorrow morning!

XaF commented 6 years ago

@Francis2b - Well, what I actually thought was the issue is not! I'm not able to reproduce your problem on Linux nor Windows. I don't have a VM with MacOS unfortunately so I cannot try it directly...

roelvan commented 6 years ago

I was able to install the first time too and sent the TRAKT code. But because I did't see the .json file I tried to re-install, that is where it got stuck for me, as mentioned earlier. Thanks for your help!

XaF commented 6 years ago

@roelvan it's kind of weird you did not see the json file either. I'm wondering if something is happening in MacOS with Lua. Does it work now ? Also, if you just want to regenerate the code, use the init_trakt_auth command of the installer, not the install one. That second will redo the whole installation process while the first one will only try and setup the trakt.tv auth!

Francis2b commented 6 years ago

@XaF yes I think there is a problem in MacOS with LUA because I regenerate a code with init_trakt_auth and I got this at the end of the process and still no .json file:

TraktForVLC is now setup with Trakt.tv!
Thank you :)
2018-04-17 14:33:31,349::DEBUG::[00007fd854d2a170] [trakt] lua interface: TraktForVLC shutting down.
2018-04-17 14:33:31,349::DEBUG::[00007fd854d20180] [cli] lua interface error: Error loading script /Applications/VLC.app/Contents/MacOS/share/lua/intf/cli.luac: ...kage/macosx/../../../share/lua/intf/modules/host.lua:286: Interrupted.
2018-04-17 14:33:31,350::DEBUG::[00007fd854d1fb20] [cli] lua interface error: Error loading script /Applications/VLC.app/Contents/MacOS/share/lua/intf/cli.luac: ...kage/macosx/../../../share/lua/intf/modules/host.lua:286: Interrupted.

Is there a way to help you identify the bug...

XaF commented 6 years ago

I'm curious to know if @roelvan made it work. @Francis2b can you tell me your exact version of vlc? (vlc --version should give us the exact release...), also, how did you install VLC?

Francis2b commented 6 years ago

Can't figured out how to make vlc --version work on macOS but in VLC when I click about I read this: Version 3.0.1 Vetinari (Intel 64bit)

I update VLC by installing the new version from here: https://www.videolan.org/vlc/index.html

XaF commented 6 years ago

You can probably turn that command by using the full vlc path then --version as VLC doesn't seem to be in your PATH.

What would be interesting is if you could try installing vlc through brew install. Travis CI - that builds the osx binary for TraktForVLC - is configured to use brew install to install VLC. I don't know if that makes a difference though, but I don't see what else would be different here!

Also, please note that the "Interrupted" messages you have at the end are expected. As long as you got the "TraktForVLC shutting down" message before the end, that's fine, it means TraktForVLC finished its work to initialize the authentication and shut down VLC.

Francis2b commented 6 years ago

I finally managed to get the info with cd /Applications/VLC.app/Contents/MacOS/ and /Applications/VLC.app/Contents/MacOS/VLC --version and here it is:

VLC media player 3.0.1 Vetinari (revision 3.0.1-0-gec0f700fcc)
VLC version 3.0.1 Vetinari (3.0.1-0-gec0f700fcc)
Compiled by d-fu on d-fus-Mac.local (Feb 26 2018 20:59:34)
Compiler: clang: warning: argument unused during compilation: '-mmacosx-version-min=10.7' [-Wunused-command-line-argument]
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by the VideoLAN team; see the AUTHORS file.

For installing VLC through brew install I don't really know how to do it. However, I still can learn how to do it if you help me this weekend.

roelvan commented 6 years ago

Now I see the json file. :-). Had to manually delete some files under /Users/roel/Library/Application Support/org.videolan.vlc/lua because the script couldn't uninstall itself. Thanks.

XaF commented 6 years ago

@roelvan Happy to know it fixed things for you! The previous version was doing things properly... But the README was wrong, mostly :)

I would be interested to know the errors you got from the uninstall. Install/Uninstall/Update process was kind of tricky to setup, and there is probably some cases or checks that I missed, so if you happen to reach a similar situation, please do report it as an issue so I can try and fix it - that's the whole point of having TraktForVLC as an alpha for now :)