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

Nothing happens #23

Closed
bcyran opened this issue Jul 25, 2015 · 16 comments
Closed

Nothing happens #23

bcyran opened this issue Jul 25, 2015 · 16 comments

Comments

@bcyran
Copy link

bcyran commented Jul 25, 2015

When I run "start_process.bat" or "start_debug_process.bat" absolutely nothing happens, there is nothing in console, there are no log files. I'm pretty shure I did configuration properly, I have Python 2.7, I read many issues and followed a few advices but still can't force it to work.
I know that I'm not very specific and it's really hard to help in this case but I hope you will at least try.
Oh, and I'm using Windows 8.1.

@XaF
Copy link
Owner

XaF commented Jul 27, 2015

Could you start a console and run the batch script start_debug_process.bat directly in the console?
If it doesn't give anything, keep that console open an run:

C:\path\to\pythonw.exe C:\path\to\TraktForVLC\TraktForVLC.py --debug --small-timers

After adjusting the paths of course.

If you can provide the results of these commands, I'll do my best to help you!

@bcyran
Copy link
Author

bcyran commented Jul 28, 2015

As you can see start_debug_proocess.bat executes properly:

C:\Program Files\TraktForVLC\windows_batch>start_debug_process.bat

C:\Program Files\TraktForVLC\windows_batch>cd /D C:\Program Files\TraktForVLC\wi
ndows_batch\

C:\Program Files\TraktForVLC\windows_batch>call ".\config.bat"

C:\Program Files\TraktForVLC\windows_batch>set python=C:\Python27\pythonw.exe

C:\Program Files\TraktForVLC\windows_batch>set tfv_py=C:\Program Files\TraktForV
LC\TraktForVLC.py

C:\Program Files\TraktForVLC\windows_batch>set tfv_data=C:\Program Files\TraktFo
rVLC\data\

C:\Program Files\TraktForVLC\windows_batch>set tfv_config=C:\Program Files\Trakt
ForVLC\

C:\Program Files\TraktForVLC\windows_batch>set tfv_pidfile=C:\Program Files\Trak
tForVLC\TraktForVLC.pid

C:\Program Files\TraktForVLC\windows_batch>set vlc_path=C:\Program Files\VideoLA
N\VLC\vlc.exe

C:\Program Files\TraktForVLC\windows_batch>set ip=localhost

C:\Program Files\TraktForVLC\windows_batch>set port=4222

C:\Program Files\TraktForVLC\windows_batch>set formats=avi, mkv, mov, mp4, wmv,
ts, mpg, m4v

C:\Program Files\TraktForVLC\windows_batch>set vlc_opts=--extraintf=rc --rc-host
=\"localhost\":\"4222\" --rc-quiet

C:\Program Files\TraktForVLC\windows_batch>start "TraktForVLC" C:\Python27\pytho
nw.exe C:\Program Files\TraktForVLC\TraktForVLC.py --datadir C:\Program Files\Tr
aktForVLC\data\ --config C:\Program Files\TraktForVLC\ --pidfile C:\Program File
s\TraktForVLC\TraktForVLC.pid --debug --small-timers

C:\>

But when I run TraktForVLC.py there's no effect:

C:\>C:\Python27\pythonw.exe C:\Program Files\TraktForVLC\TraktForVLC.py --debug
--smal-timers

C:\>

But I noticed another thing: I can't force VLC to save interface settings. When I close settings panel and open it again settings return back to default. Is it possible that this is cause of my problem?

@XaF
Copy link
Owner

XaF commented Jul 29, 2015

Can you try running the following?

C:\Python27\pythonw.exe "C:\Program Files\TraktForVLC\TraktForVLC.py" --debug
--small-timers

VLC does not seem to be the issue at this point, as TraktForVLC should write some messages in the console in debug mode!

@bcyran
Copy link
Author

bcyran commented Jul 29, 2015

Unfortunately still nothing.

C:\>C:\Python27\pythonw.exe "C:\Program Files\TraktForVLC\TraktF
orVLC.py" --debug --small-timers

C:\>

@XaF
Copy link
Owner

XaF commented Jul 30, 2015

And you have nothing in the logs/ directory?
I really don't know how to help you with that...

@bcyran
Copy link
Author

bcyran commented Jul 31, 2015

Yes, nothing in logs/. I even reinstalled Python and TraktForVLC and it stiil don't work.
I think I will give up but if anything changes I will let you know.

@ciakki
Copy link

ciakki commented Aug 12, 2015

I have the exact same problems of sajran, but with:

C:\TraktForVLC\TraktForVLC.py --debug --small-timers

I get this:

Traceback (most recent call last):
File "C:\TraktForVLC\TraktForVLC.py", line 60, in
import tvdb_api
File "C:\TraktForVLC\tvdb_api__init__.py", line 60, in
from tvdb_ui import BaseUI, ConsoleUI
ImportError: No module named 'tvdb_ui'

@XaF
Copy link
Owner

XaF commented Oct 24, 2015

@ciakki your problem should be fixed by the last commits

@sajran Sorry, I don't have any insight with your problem... Could you perhaps try again with the last commits ?

@JimiC
Copy link

JimiC commented Nov 28, 2015

The bug is in config.bat
It is set as

set tfv_data=C:\Program Files\TraktForVLC\data\

when it should be
set tfv_data=C:\Program Files\TraktForVLC\

When using

set tfv_data=C:\Program Files\TraktForVLC\data\

the error message is

Traceback (most recent call last):
  File "C:\Program Files\TraktForVLC.py", line 879, in <module>
    daemon=(should_daemon or pidfile))
  File "C:\Program Files\TraktForVLC.py", line 175, in __init__
    os.mkdir(logdir)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Program Files\\data\\logs'

because the 'data' folder does not exist.

@XaF
Copy link
Owner

XaF commented Nov 28, 2015

Good catch @JimiC, didn't see it before. It could very well be the problem!

@vidavidorra
Copy link

@sajran It may help if you use python.exe instead of pythonw.exe since the addition of the 'w' results in not showing output if I'm correct.

I had a similar issue as this, but when running the following command I was able to get some output. This output contains some errors though and it states that it cannot find the show. How is that possible? The played filename is Elementary S04E02.mkv. It seems that it is thinking it's a movie:

2015-12-01 14:56:08,174::TraktForVLC::INFO::Not able to parse a tvshow from the file title

Does there be a certain layout of folders and files to allow TractForVLC to recognise the serie?
The output of the command is shown below (it is a bit long, so excuse me for posting all that here). I hope someone knows why it is not recognising my series.
I'm running the latest clone from the repository and am running VLC 2.2.1 on Windows 10.

C:\TraktForVLC>C:\Python\34\python.exe TraktForVLC.py --debug --small-timers
2015-12-01 14:55:45,181::TraktForVLC::INFO::## TraktForVLC v1.3.0-rc1 Breaking Bad
2015-12-01 14:55:45,181::TraktForVLC::INFO::## Copyright (C) 2014-2015  Raphael Beamonte <[email protected]>
2015-12-01 14:55:45,181::TraktForVLC::INFO::##
2015-12-01 14:55:45,181::TraktForVLC::INFO::## TraktForVLC is distributed in the hope that it will be useful, but
2015-12-01 14:55:45,181::TraktForVLC::INFO::## with ABSOLUTELY NO WARRANTY. This is free software; you are welcome
2015-12-01 14:55:45,182::TraktForVLC::INFO::## to redistribute and/or modify it under the terms of the GPL2.
2015-12-01 14:55:45,182::TraktForVLC::INFO::
2015-12-01 14:55:45,184::TraktForVLC::DEBUG::Running on Windows-8-6.2.9200, with Python 3.4.3
2015-12-01 14:55:45,188::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api.github.com
2015-12-01 14:55:45,922::requests.packages.urllib3.connectionpool::DEBUG::"GET /repos/XaF/TraktForVLC/releases HTTP/1.1" 200 None
2015-12-01 14:55:45,925::TraktForVLC::INFO::VERSION:TraktForVLC is up to date
2015-12-01 14:55:45,925::TraktForVLC::INFO::Logger level is set to DEBUG
2015-12-01 14:55:45,925::TraktForVLC::INFO::-- Will scrobble movies ? Yes
2015-12-01 14:55:45,925::TraktForVLC::INFO::-- Will scrobble tv shows ? Yes
2015-12-01 14:55:45,925::TraktForVLC::INFO::-- Will we mark movies as being watched ? Yes
2015-12-01 14:55:45,926::TraktForVLC::INFO::-- Will we mark tv shows as being watched ? Yes
2015-12-01 14:55:45,926::TraktForVLC::INFO::-- Videos will be scrobbled after 90% of their duration has been exceeded
2015-12-01 14:55:45,926::TraktForVLC::INFO::-- Timer set to 5 secs
2015-12-01 14:55:45,926::TraktForVLC::INFO::-- Video will be marked as "is watching" from 5 secs
2015-12-01 14:55:45,926::TraktForVLC::INFO::Listening VLC to localhost:4222
2015-12-01 14:55:45,926::TraktClient::DEBUG::TraktClient logger initialized
2015-12-01 14:55:45,926::TraktClient::DEBUG::TraktClient will use PIN Auth
2015-12-01 14:55:45,927::TraktForVLC::DEBUG::reset cache (None, None)
2015-12-01 14:55:47,940::TraktForVLC::INFO::Could not find VLC running at localhost:4222
2015-12-01 14:55:47,940::TraktForVLC::DEBUG::Make sure your VLC player is running with --extraintf=rc --rc-host=localhost:4222 --rc-quiet
Traceback (most recent call last):
  File "TraktForVLC.py", line 408, in main
    vlc = VLCRemote(self.vlc_ip, self.vlc_port)
  File "C:\TraktForVLC\vlcrc\__init__.py", line 38, in __init__
    self.cnx = telnetlib.Telnet(hostname, port)
  File "C:\Python\34\lib\telnetlib.py", line 221, in __init__
    self.open(host, port, timeout)
  File "C:\Python\34\lib\telnetlib.py", line 237, in open
    self.sock = socket.create_connection((host, port), timeout)
  File "C:\Python\34\lib\socket.py", line 512, in create_connection
    raise err
  File "C:\Python\34\lib\socket.py", line 503, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
2015-12-01 14:56:07,450::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:07,450::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:07,451::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-01 14:56:08,170::VLCRemote::DEBUG::<- Received: b'1'
2015-12-01 14:56:08,171::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:08,171::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:08,171::VLCRemote::DEBUG::-> Sending: get_length
2015-12-01 14:56:08,171::VLCRemote::DEBUG::<- Received: b'2609'
2015-12-01 14:56:08,172::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:08,172::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:08,172::VLCRemote::DEBUG::-> Sending: status
2015-12-01 14:56:08,173::VLCRemote::DEBUG::<- Received: b'status change: ( new input: file:///W:/Series/Elementary%20S04E02.mkv )'
2015-12-01 14:56:08,173::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:08,173::VLCRemote::DEBUG::<- Received: b'status change: ( audio volume: 256 )\r\nstatus change: ( play state: 3 )\r\nstatus: returned 0 (no error)'
2015-12-01 14:56:08,174::VLCRemote::DEBUG::-> Sending: get_time
2015-12-01 14:56:08,174::VLCRemote::DEBUG::<- Received: b'0'
2015-12-01 14:56:08,174::TraktForVLC::DEBUG::main::New file: b'Elementary%20S04E02.mkv' (b'2609')
2015-12-01 14:56:08,174::TraktForVLC::DEBUG::reset cache (b'Elementary%20S04E02.mkv', b'2609')
2015-12-01 14:56:08,174::TraktForVLC::INFO::Not able to parse a tvshow from the file title
2015-12-01 14:56:08,175::TraktForVLC::DEBUG::get_Movie::Now playing: {'year': None, 'title': 'Elementary%20S04E02'}
2015-12-01 14:56:08,177::requests.packages.urllib3.connectionpool::INFO::Starting new HTTP connection (1): www.omdbapi.com
2015-12-01 14:56:08,437::requests.packages.urllib3.connectionpool::DEBUG::"GET /?i=&tomatoes=true&t=Elementary%2520S04E02 HTTP/1.1" 200 47
2015-12-01 14:56:08,440::requests.packages.urllib3.connectionpool::INFO::Starting new HTTP connection (1): www.omdbapi.com
2015-12-01 14:56:08,461::requests.packages.urllib3.connectionpool::DEBUG::"GET /?s=Elementary%2520S04E02&i= HTTP/1.1" 200 47
2015-12-01 14:56:08,462::TraktForVLC::DEBUG::valid_Movie::no valid title found
Traceback (most recent call last):
  File "TraktForVLC.py", line 684, in valid_Movie
    movie = movie_info.get_movie_info(vlcTitle, vlcYear)
  File "C:\TraktForVLC\movie_info.py", line 407, in get_movie_info
    raise LookupError("unable to find the movie '%s'" % (movi_name))
LookupError: unable to find the movie 'Elementary%20S04E02'
2015-12-01 14:56:08,463::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-01 14:56:13,465::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:13,465::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:13,465::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-01 14:56:13,466::VLCRemote::DEBUG::<- Received: b'1'
2015-12-01 14:56:13,466::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:13,466::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:13,466::VLCRemote::DEBUG::-> Sending: get_length
2015-12-01 14:56:13,467::VLCRemote::DEBUG::<- Received: b'2609'
2015-12-01 14:56:13,467::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:13,467::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:13,467::VLCRemote::DEBUG::-> Sending: status
2015-12-01 14:56:13,468::VLCRemote::DEBUG::<- Received: b'status change: ( new input: file:///W:/Series/Elementary%20S04E02.mkv )'
2015-12-01 14:56:13,468::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:13,468::VLCRemote::DEBUG::<- Received: b'status change: ( audio volume: 256 )\r\nstatus change: ( play state: 3 )\r\nstatus: returned 0 (no error)'
2015-12-01 14:56:13,468::VLCRemote::DEBUG::-> Sending: get_time
2015-12-01 14:56:13,469::VLCRemote::DEBUG::<- Received: b'5'
2015-12-01 14:56:13,469::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-01 14:56:18,470::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:18,470::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:18,470::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-01 14:56:18,471::VLCRemote::DEBUG::<- Received: b'1'
2015-12-01 14:56:18,471::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:18,471::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:18,471::VLCRemote::DEBUG::-> Sending: get_length
2015-12-01 14:56:18,471::VLCRemote::DEBUG::<- Received: b'2609'
2015-12-01 14:56:18,472::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:18,472::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:18,472::VLCRemote::DEBUG::-> Sending: status
2015-12-01 14:56:18,473::VLCRemote::DEBUG::<- Received: b'status change: ( new input: file:///W:/Series/Elementary%20S04E02.mkv )'
2015-12-01 14:56:18,473::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:18,473::VLCRemote::DEBUG::<- Received: b'status change: ( audio volume: 256 )\r\nstatus change: ( play state: 3 )\r\nstatus: returned 0 (no error)'
2015-12-01 14:56:18,474::VLCRemote::DEBUG::-> Sending: get_time
2015-12-01 14:56:18,474::VLCRemote::DEBUG::<- Received: b'10'
2015-12-01 14:56:18,474::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-01 14:56:23,476::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:23,476::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:23,476::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-01 14:56:23,476::VLCRemote::DEBUG::<- Received: b'1'
2015-12-01 14:56:23,477::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:23,477::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:23,477::VLCRemote::DEBUG::-> Sending: get_length
2015-12-01 14:56:23,477::VLCRemote::DEBUG::<- Received: b'2609'
2015-12-01 14:56:23,477::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:23,478::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:23,478::VLCRemote::DEBUG::-> Sending: status
2015-12-01 14:56:23,478::VLCRemote::DEBUG::<- Received: b'status change: ( new input: file:///W:/Series/Elementary%20S04E02.mkv )'
2015-12-01 14:56:23,479::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:23,479::VLCRemote::DEBUG::<- Received: b'status change: ( audio volume: 256 )\r\nstatus change: ( play state: 3 )\r\nstatus: returned 0 (no error)'
2015-12-01 14:56:23,479::VLCRemote::DEBUG::-> Sending: get_time
2015-12-01 14:56:23,480::VLCRemote::DEBUG::<- Received: b'16'
2015-12-01 14:56:23,480::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-01 14:56:28,482::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:28,482::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:28,482::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-01 14:56:28,482::VLCRemote::DEBUG::<- Received: b'1'
2015-12-01 14:56:28,483::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:28,483::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:28,483::VLCRemote::DEBUG::-> Sending: get_length
2015-12-01 14:56:28,483::VLCRemote::DEBUG::<- Received: b'2609'
2015-12-01 14:56:28,483::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:28,484::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:28,484::VLCRemote::DEBUG::-> Sending: status
2015-12-01 14:56:28,484::VLCRemote::DEBUG::<- Received: b'status change: ( new input: file:///W:/Series/Elementary%20S04E02.mkv )'
2015-12-01 14:56:28,485::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:28,485::VLCRemote::DEBUG::<- Received: b'status change: ( audio volume: 256 )\r\nstatus change: ( play state: 3 )\r\nstatus: returned 0 (no error)'
2015-12-01 14:56:28,485::VLCRemote::DEBUG::-> Sending: get_time
2015-12-01 14:56:28,486::VLCRemote::DEBUG::<- Received: b'20'
2015-12-01 14:56:28,486::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-01 14:56:33,488::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:33,488::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:33,488::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-01 14:56:33,488::VLCRemote::DEBUG::<- Received: b'1'
2015-12-01 14:56:33,489::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:33,489::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:33,489::VLCRemote::DEBUG::-> Sending: get_length
2015-12-01 14:56:33,489::VLCRemote::DEBUG::<- Received: b'2609'
2015-12-01 14:56:33,489::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:33,490::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:56:33,490::VLCRemote::DEBUG::-> Sending: status
2015-12-01 14:56:33,490::VLCRemote::DEBUG::<- Received: b'status change: ( new input: file:///W:/Series/Elementary%20S04E02.mkv )'
2015-12-01 14:56:33,491::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:56:33,491::VLCRemote::DEBUG::<- Received: b'status change: ( audio volume: 256 )\r\nstatus change: ( play state: 3 )\r\nstatus: returned 0 (no error)'
2015-12-01 14:56:33,491::VLCRemote::DEBUG::-> Sending: get_time
2015-12-01 14:56:33,492::VLCRemote::DEBUG::<- Received: b'25'
2015-12-01 14:56:33,492::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-01 14:56:38,493::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:57:49,867::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:57:49,867::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-01 14:57:49,867::VLCRemote::DEBUG::<- Received: b'1'
2015-12-01 14:57:49,867::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:57:49,867::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:57:49,867::VLCRemote::DEBUG::-> Sending: get_length
2015-12-01 14:57:49,868::VLCRemote::DEBUG::<- Received: b'2609'
2015-12-01 14:57:49,868::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:57:49,868::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:57:49,868::VLCRemote::DEBUG::-> Sending: status
2015-12-01 14:57:49,868::VLCRemote::DEBUG::<- Received: b'status change: ( new input: file:///W:/Series/Elementary%20S04E02.mkv )'
2015-12-01 14:57:49,869::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:57:49,869::VLCRemote::DEBUG::<- Received: b'status change: ( audio volume: 256 )\r\nstatus change: ( play state: 3 )\r\nstatus: returned 0 (no error)'
2015-12-01 14:57:49,869::VLCRemote::DEBUG::-> Sending: get_time
2015-12-01 14:57:49,869::VLCRemote::DEBUG::<- Received: b'102'
2015-12-01 14:57:49,870::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-01 14:57:54,872::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:57:54,872::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:57:54,872::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-01 14:57:57,881::TraktForVLC::ERROR::An unknown error occurred
Traceback (most recent call last):
  File "TraktForVLC.py", line 398, in run
    self.main()
  File "TraktForVLC.py", line 435, in main
    vlcStatus = vlc.is_playing()
  File "C:\TraktForVLC\vlcrc\__init__.py", line 152, in is_playing
    playing = self._command('is_playing', fn_re, raw=True)
  File "C:\TraktForVLC\vlcrc\__init__.py", line 109, in _command
    'Pattern: %s\nReceived: %s' % (return_re.pattern, cmd_ret))
vlcrc.VLCBadReturn: Pattern: b'^(?!status change:)>?\\s*(?P<playing>\\d+)\r?\n'
Received: b''
2015-12-01 14:58:02,883::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:58:02,884::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:58:02,884::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-01 14:58:05,896::TraktForVLC::ERROR::An unknown error occurred
Traceback (most recent call last):
  File "TraktForVLC.py", line 398, in run
    self.main()
  File "TraktForVLC.py", line 435, in main
    vlcStatus = vlc.is_playing()
  File "C:\TraktForVLC\vlcrc\__init__.py", line 152, in is_playing
    playing = self._command('is_playing', fn_re, raw=True)
  File "C:\TraktForVLC\vlcrc\__init__.py", line 109, in _command
    'Pattern: %s\nReceived: %s' % (return_re.pattern, cmd_ret))
vlcrc.VLCBadReturn: Pattern: b'^(?!status change:)>?\\s*(?P<playing>\\d+)\r?\n'
Received: b''
2015-12-01 14:58:10,898::VLCRemote::DEBUG::cleaning cache
2015-12-01 14:58:10,899::VLCRemote::DEBUG::<- Received: b''
2015-12-01 14:58:10,899::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-01 14:58:13,912::TraktForVLC::ERROR::An unknown error occurred
Traceback (most recent call last):
  File "TraktForVLC.py", line 398, in run
    self.main()
  File "TraktForVLC.py", line 435, in main
    vlcStatus = vlc.is_playing()
  File "C:\TraktForVLC\vlcrc\__init__.py", line 152, in is_playing
    playing = self._command('is_playing', fn_re, raw=True)
  File "C:\TraktForVLC\vlcrc\__init__.py", line 109, in _command
    'Pattern: %s\nReceived: %s' % (return_re.pattern, cmd_ret))
vlcrc.VLCBadReturn: Pattern: b'^(?!status change:)>?\\s*(?P<playing>\\d+)\r?\n'
Received: b''
2015-12-01 14:58:20,915::TraktForVLC::INFO::Could not find VLC running at localhost:4222
2015-12-01 14:58:21,081::TraktForVLC::DEBUG::Make sure your VLC player is running with --extraintf=rc --rc-host=localhost:4222 --rc-quiet
Traceback (most recent call last):
  File "TraktForVLC.py", line 408, in main
    vlc = VLCRemote(self.vlc_ip, self.vlc_port)
  File "C:\TraktForVLC\vlcrc\__init__.py", line 38, in __init__
    self.cnx = telnetlib.Telnet(hostname, port)
  File "C:\Python\34\lib\telnetlib.py", line 221, in __init__
    self.open(host, port, timeout)
  File "C:\Python\34\lib\telnetlib.py", line 237, in open
    self.sock = socket.create_connection((host, port), timeout)
  File "C:\Python\34\lib\socket.py", line 512, in create_connection
    raise err
  File "C:\Python\34\lib\socket.py", line 503, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
2015-12-01 14:58:21,082::TraktForVLC::DEBUG::reset cache view status (None)
2015-12-01 14:58:21,977::TraktForVLC::INFO::Program closed by SIGINT

@JimiC
Copy link

JimiC commented Dec 1, 2015

@vidavidorra Rename the tv show and replace the white spaces either with underscore, dash or dot.

@XaF
Copy link
Owner

XaF commented Dec 1, 2015

Hmm, it seems there is an encoding problem with windows (again). I'll see if I can patch that cleanly. In the meantime, like proposed by @JimiC, you can replace the space by another character and it should work!

@JimiC
Copy link

JimiC commented Dec 1, 2015

Usage of white spaces in file names never plays well in cross-platform apps.

@vidavidorra
Copy link

@JimiC Replacing the white spaces with underscores resolved that problem. Thanks!

@XaF XaF added wontfix and removed wontfix labels Apr 16, 2018
@XaF
Copy link
Owner

XaF commented Apr 16, 2018

TraktForVLC 2.x makes that issue obsolete - #88

@XaF XaF closed this as completed Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants