Closed Francis2b closed 7 years ago
Hi! I've just found out that the reason I had no scrobbles for some time was because TraktForVLC wasn't launched by launchd
anymore. Try running:
python /Users/Francois/TraktForVLC/TraktForVLC.py
directly and see what you get. My issue was that fuzzywuzzy
, imdbpie
and python-levenshtein
weren't installed (and are now required I guess). So I installed them, checked it could be run from Terminal and then launchctl load ~/Library/LaunchAgents/org.TraktForVLC.plist
again and voilà, it was back in the list !
Here what I get when I type python /Users/Francois/TraktForVLC/TraktForVLC.py
Francoiss-MacBook-Pro:~ Francois$ python /Users/Francois/TraktForVLC/TraktForVLC.py
Traceback (most recent call last):
File "/Users/Francois/TraktForVLC/TraktForVLC.py", line 36, in <module>
import requests
ImportError: No module named requests
Francoiss-MacBook-Pro:~ Francois$
Please install all the dependencies indicated in the requirements.txt file. With the last update, part of the requirements were removed from the TraktForVLC repository in the idea that it should be managed and installed on the client side directly!
Ok thanks for the info XaF! So I took the latest version with the requirements included to make it easier for me. Now I have this:
Francoiss-MacBook-Pro:~ Francois$ python /Users/Francois/TraktForVLC/TraktForVLC.py /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fuzzywuzzy/fuzz.py:35: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning') Traceback (most recent call last): File "/Users/Francois/TraktForVLC/TraktForVLC.py", line 54, in <module> import movie_info File "/Users/Francois/TraktForVLC/movie_info.py", line 33, in <module> import imdbpie File "/Users/Francois/TraktForVLC/imdbpie/__init__.py", line 1, in <module> from .imdbpie import Imdb File "/Users/Francois/TraktForVLC/imdbpie/imdbpie.py", line 12, in <module> from cachecontrol import CacheControl ImportError: No module named cachecontrol Francoiss-MacBook-Pro:~ Francois$
Try the commands mentioned here : https://github.com/XaF/TraktForVLC/issues/67#issuecomment-310813055
pip install fuzzywuzzy
or sudo pip install fuzzywuzzy
should do the trick. Same goes for the other modules/requirements mentioned in my previous comment.
EDIT : I changes easy_install
to install
(no idea why I wrote that in the first place...)
It's fine a finaly figure out how to run org.user.TraktForVLC ! But it doesn't seem to keep track of what I'm watching :/
edit:
2017-07-15 22:57:23,727::TraktForVLC::ERROR::An error occurred while trying to mark as watching South Park - 2x04 Traceback (most recent call last): File "/Users/Francois/TraktForVLC/TraktForVLC.py", line 559, in main self.get_episode(video)) File "/Users/Francois/TraktForVLC/TraktClient.py", line 420, in startWatching return self.__watching('start', imdb_id, progress, episode) File "/Users/Francois/TraktForVLC/TraktClient.py", line 377, in __watching progress=progress) File "/Users/Francois/TraktForVLC/TraktClient.py", line 416, in __watchingEpisode return self.__scrobble(action, data) File "/Users/Francois/TraktForVLC/TraktClient.py", line 347, in __scrobble self.__get_access_token() File "/Users/Francois/TraktForVLC/TraktClient.py", line 295, in __get_access_token stream.status_code, stream.reason)) TraktError: Unable to authenticate: 401 Unauthorized
I just found out mine had the same issue. I'm guessing the recent VLC update reset that part of the settings? Just follow the TrakForVLC guide again : https://github.com/XaF/TraktForVLC#configuring-vlc EDIT: I see you've edited and mine wasn't finding VLC on localhost:4222, so not the same issue. Maybe you should close this one and open a new one/check if this is an issue others have too.
I followed the guide and now I get this:
Francoiss-MacBook-Pro:~ Francois$ python /Users/Francois/TraktForVLC/TraktForVLC.py Traceback (most recent call last): File "/Users/Francois/TraktForVLC/TraktForVLC.py", line 875, in <module> daemon=(should_daemon or pidfile)) File "/Users/Francois/TraktForVLC/TraktForVLC.py", line 225, in __init__ self.__check_version() File "/Users/Francois/TraktForVLC/TraktForVLC.py", line 100, in __check_version url="https://api.github.com/repos/XaF/TraktForVLC/releases") File "/Users/Francois/TraktForVLC/requests/api.py", line 68, in get return request('get', url, **kwargs) File "/Users/Francois/TraktForVLC/requests/api.py", line 50, in request response = session.request(method=method, url=url, **kwargs) File "/Users/Francois/TraktForVLC/requests/sessions.py", line 464, in request resp = self.send(prep, **send_kwargs) File "/Users/Francois/TraktForVLC/requests/sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "/Users/Francois/TraktForVLC/requests/adapters.py", line 415, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', error(54, 'Connection reset by peer'))
In the ini file the pin code didn't change into token strange :/
edit: I'm using TraktForVLC-1.3.0-rc2
Hi,
I have some troubles to launch org.TraktForVLC.plist. Type in Terminal:
launchctl load ~/Library/LaunchAgents/org.TraktForVLC.plist
but nothing happens
Here my plist:
Here what is displayed when I do a launchctl list
When I do a telnet localhost 4222 VLC is doing its job so runing the .plist is the only step that blocks me.