pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

My PyTivo share files don't show on TIVO

 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support
 View previous topic :: View next topic  
Author Message
Mrick1



Joined: 28 Mar 2012
Posts: 4

PostPosted: Wed Mar 28, 2012 9:11 pm    Post subject: My PyTivo share files don't show on TIVO Reply with quote

Pytivo has been working for me for a very long time. Out of the blue, my Pytivo has stopped working. I cannot see the share folder from the TIVO.

Interestingly enough, streambaby still works and so some communication between the TIVO and the Computer seems to be occurring.

I tried to follow the trouble shooting procedures at the Wiki, but have had no luck.

I normally run Pytivo in the command line mode. I don’t know what I normally get, but what I get now is:
Quote:

Checking to see if pyTivo is already running . . .
Starting pyTivo Server. Use ctrl+Break to exit.
C:\Program Files\pyTivo\Cheetah\CacheRegion.py:30: DeprecationWarning: the md5 m
odule is deprecated; use hashlib instead
import md5
2012-03-28 08:16:07,688 INFO pyTivo: pyTivo is ready.


For whatever reason I couldn’t get to the host file. I recreated the host file. Now when I enter http://localhost:9032/ I get this initially:
Quote:

Internet Explorer cannot display the webpage

But after I start Pytivo, I get the Pytivo web screen when I enter http://localhost:9032/ into the browser .

From there I can see my folders. I have tried to click on a video and send it to TIVO by clicking the “Send to TIVO” button. I again get:
Quote:

“ Internet Explorer cannot display the webpage”

But that attempt to push a file does create activity on the console. Here is what the console activity looks like after the failed attempt to push a video to TIVO:
Quote:


Checking to see if pyTivo is already running . . .
Starting pyTivo Server. Use ctrl+Break to exit.
C:\Program Files\pyTivo\Cheetah\CacheRegion.py:30: DeprecationWarning: the md5 m
odule is deprecated; use hashlib instead
import md5
2012-03-28 08:54:54,246 INFO pyTivo: pyTivo is ready.
2012-03-28 08:55:33,190 INFO pyTivo: 127.0.0.1 [28/Mar/2012 08:55:33] "GET / HT
TP/1.1" 200 -
2012-03-28 08:55:33,309 INFO pyTivo: 127.0.0.1 [28/Mar/2012 08:55:33] "GET /fav
icon.ico HTTP/1.1" 200 -
2012-03-28 08:55:42,161 INFO pyTivo: 127.0.0.1 [28/Mar/2012 08:55:42] "GET /TiV
oConnect?Command=QueryContainer&Container=My%20Videos HTTP/1.1" 200 -
2012-03-28 08:55:42,196 INFO pyTivo: 127.0.0.1 [28/Mar/2012 08:55:42] "GET /TiV
oConnect?Command=XSL&Container=My%20Videos HTTP/1.1" 200 -
2012-03-28 08:55:42,250 INFO pyTivo: 127.0.0.1 [28/Mar/2012 08:55:42] "GET /fav
icon.ico HTTP/1.1" 200 -
2012-03-28 08:55:46,517 ERROR pyTivo: Exception during request from ('127.0.0.1'
, 49344)
Traceback (most recent call last):
File "C:\Python26\lib\SocketServer.py", line 560, in process_request_thread
self.finish_request(request, client_address)
File "C:\Python26\lib\SocketServer.py", line 322, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Program Files\pyTivo\httpserver.py", line 61, in __init__
client_address, server)
File "C:\Python26\lib\SocketServer.py", line 617, in __init__
self.handle()
File "C:\Python26\lib\BaseHTTPServer.py", line 329, in handle
self.handle_one_request()
File "C:\Python26\lib\BaseHTTPServer.py", line 323, in handle_one_request
method()
File "C:\Program Files\pyTivo\httpserver.py", line 94, in do_GET
self.handle_query(query)
File "C:\Program Files\pyTivo\httpserver.py", line 126, in handle_query
method(self, query)
File "C:\Program Files\pyTivo\plugins\video\video.py", line 297, in Push
tsn = query['tsn'][0]
KeyError: 'tsn'
2012-03-28 08:55:46,540 ERROR pyTivo: Exception during request from ('127.0.0.1'
, 49348)
Traceback (most recent call last):
File "C:\Python26\lib\SocketServer.py", line 560, in process_request_thread
self.finish_request(request, client_address)
File "C:\Python26\lib\SocketServer.py", line 322, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Program Files\pyTivo\httpserver.py", line 61, in __init__
client_address, server)
File "C:\Python26\lib\SocketServer.py", line 617, in __init__
self.handle()
File "C:\Python26\lib\BaseHTTPServer.py", line 329, in handle
self.handle_one_request()
File "C:\Python26\lib\BaseHTTPServer.py", line 323, in handle_one_request
method()
File "C:\Program Files\pyTivo\httpserver.py", line 94, in do_GET
self.handle_query(query)
File "C:\Program Files\pyTivo\httpserver.py", line 126, in handle_query
method(self, query)
File "C:\Program Files\pyTivo\plugins\video\video.py", line 297, in Push
tsn = query['tsn'][0]
KeyError: 'tsn'
2012-03-28 08:56:11,257 INFO pyTivo: 127.0.0.1 [28/Mar/2012 08:56:11] "GET /TiV
oConnect?Command=XSL&Container=My%20Videos HTTP/1.1" 200 -
2012-03-28 08:56:11,273 INFO pyTivo: 127.0.0.1 [28/Mar/2012 08:56:11] "GET /TiV
oConnect?Command=XSL&Container=My%20Videos HTTP/1.1" 200 –


Before trouble shooting this problem, this is what my configuration looked like:
Quote:


[Server]
port=9032
ffmpeg=C:\Program Files\pyTivo\bin\ffmpeg.exe
temp=C:\Users\Public\Documents\pyTivo

[_tivo_HD]

[_tivo_SD]

[My Videos]
type=video
path=C:\Users\BILL\Videos

[Admin]
type=admin

[loggers]
keys=root

[handlers]
keys=console,rotfile

[formatters]
keys=basicform

[logger_root]
level=DEBUG
handlers=console,rotfile

[handler_console]
class=StreamHandler
formatter=basicform
args=(sys.stdout,)

[handler_rotfile]
class=handlers.RotatingFileHandler
formatter=basicform
args=('C:\Users\Public\Documents\pyTivo\debug.log', 'a', 10485760, 5)

[formatter_basicform]
format=%(asctime)s %(levelname)-5s %(name)s: %(message)s


During trouble shooting, I made suggest changes from the wiki including entering the IP of the TIVO and setting up a Test Video Share. This is what it looks like now:
Quote:


[loggers]
keys = root

[Video Test]
type = video

[_tivo_SD]

[handler_console]
formatter = basicform
class = StreamHandler
args = (sys.stdout,)

[handlers]
keys = console,rotfile

[Admin]
type = admin

[My Videos]
type = video
path = C:\Users\BILL\Videos

[Server]
beacon = 192.168.1.5
port = 9032
temp = C:\Users\Public\Documents\pyTivo
ffmpeg = C:\Program Files\pyTivo\bin\ffmpeg.exe

[formatter_basicform]
format = %(asctime)s %(levelname)-5s %(name)s: %(message)s

[handler_rotfile]
formatter = basicform
class = handlers.RotatingFileHandler
args = ('C:\Users\Public\Documents\pyTivo\debug.log', 'a', 10485760, 5)

[_tivo_HD]

[logger_root]
handlers = console,rotfile
level = DEBUG

[formatters]
keys = basicform


I love my Pytivo. It is what allows me to load high definition files to my TIVO. Any help in getting it fixed is really appreciated.

Thank you,
Mrick1
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2299
Location: Maryland

PostPosted: Wed Mar 28, 2012 11:51 pm    Post subject: Reply with quote

You appear to be running a very old version of pyTivo -- old enough that it doesn't even have the Zeroconf beacon system. (I fixed the "DeprecationWarning" on April 24, 2009, and added Zeroconf on May 3, 2009.) That would explain why you can still see Streambaby, since it uses the new beacon system, while your version of pyTivo only has the old one. It's pretty common for one system (usually the old one) to fail in the TiVo, while the other keeps working.

The fix, as usual, is to reboot the TiVo. (Is that not on the troubleshooting page? It really should be the first step.)

_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
Mrick1



Joined: 28 Mar 2012
Posts: 4

PostPosted: Thu Mar 29, 2012 12:35 am    Post subject: Reply with quote

wmcbrine wrote:
You appear to be running a very old version of pyTivo -- old enough that it doesn't even have the Zeroconf beacon system. ...
The fix, as usual, is to reboot the TiVo. (Is that not on the troubleshooting page? It really should be the first step.)


I don't recall if it is on the Wiki page but I have seen you recommend it before when I was googling for help. I did reset the Tivo. And I just did it again. No luck.

Yes... I have been using the same version for a long time. Being non technical I was amazed when I got everything downloaded and working. And it has worked great ever sense. Well... at least till recently.

What do you suggest for next step?

Mrick1
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2299
Location: Maryland

PostPosted: Thu Mar 29, 2012 3:22 pm    Post subject: Reply with quote

I'm not sure what you mean by "reset". When I say "reboot", I mean either:

Messages & Settings > Restart or Reset > Restart

OR

Pull the plug, wait about a minute, and reinsert the plug.

Actually I'd shut down pyTivo first, and only restart it after the TiVo was fully booted. Oh, and before any of that, change the "beacon" address to 192.168.1.255. If that doesn't fix it, I'm really surprised. Are you sure there were no changes to your network or PC recently?

Anyway, your next step would be to upgrade pyTivo. If nothing else, it would get you Zeroconf, which you say is working for Streambaby.

_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
Mrick1



Joined: 28 Mar 2012
Posts: 4

PostPosted: Thu Mar 29, 2012 5:17 pm    Post subject: Reply with quote

wmcbrine wrote:
I'm not sure what you mean by "reset". When I say "reboot", I mean either:

Messages & Settings > Restart or Reset > Restart


Yes, sir. That's what I did.

wmcbrine wrote:
Actually I'd shut down pyTivo first, and only restart it after the TiVo was fully booted.


Yes, sir. Did that exactly.

wmcbrine wrote:
Oh, and before any of that, change the "beacon" address to 192.168.1.255.


I will do that. Many thanks for your help. I have my fingers crossed.

wmcbrine wrote:
If that doesn't fix it, I'm really surprised. Are you sure there were no changes to your network or PC recently?


No, sir. I had some malware at some point that turned off my firewall and made changes. It was nasty. I got rid of it but it is possible it made some other changes. I am not aware of any though. We use pyTivo about once a week.

wmcbrine wrote:
Anyway, your next step would be to upgrade pyTivo. If nothing else, it would get you Zeroconf, which you say is working for Streambaby.


Again, thanks so much for the help. If that doesn't fix it I will completely uninstall Pytivo and load the newest version. It's been years since I have loaded Pytivo, and I seem to recall I had to load other things first. Various things that Pytivo needed as I recall. Perhaps that was just Python.

If I have to reinstall a newer version, should I load a new Python version as well?

It looks like I go here to get the newest version of Pytivo:

https://github.com/wmcbrine/pytivo

And I download zip file wncbrine-pytivo-d763c8d.zip.

I assume after install, I just copy over my existing configuration file to the new pytivo build?

Many thanks for your help with this wonderful product. It handles things streambaby just can't handle.

Best,
Mrick1
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2299
Location: Maryland

PostPosted: Thu Mar 29, 2012 6:16 pm    Post subject: Reply with quote

You should take out the "Admin" section. Otherwise you can copy it over, yes.
_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
Mrick1



Joined: 28 Mar 2012
Posts: 4

PostPosted: Fri Mar 30, 2012 8:47 pm    Post subject: Reply with quote

wmcbrine wrote:
You should take out the "Admin" section. Otherwise you can copy it over, yes.


It is working. A few notes now for those that might find this through google.

I used the "how to install TIVO" Wiki and followed the directions. I removed the old pyhon and downloaded a new one. I downloaded the wmcbrine-pytivo-d763c8d zip file and extracted it. I didn't put it in programs. I put it in the root directory C:\.

I could not figure out how to open UDP 5353 and the only instructions I found on the net didn't work. When I tried to add a program there was no option to add a port. I gave up.

I uninsatlled Pthon 2.6 and got the latest 2.7 version. I am not sure it is required but I did.

In the pyTivo file folder, I had to create a folder named "bin". I loaded the newest version of ffmpeg.exe into the "bin" folder. Also, I downloaded Tivodecode and after extraction, I copied those into the "bin" file.

I copied over my old config file as discussed above and only altered it to reflect that my pyTivo program is now in the root directory and not in the program directory.

I ran pytivo.py and it binked. Crap.

So... I went to start and typed run. Then I type CMD which got me to a commnad line screen. I changed directories to the pyTivo directory using a command of CD C:\pytivo. Then I typed pyTivo.py.

Now I can see all the lines run and it errored out. The error code said:

"IOError: [Errno 2] No such file or directory: 'C:\\Users\\Public\\Documents\\pyT
ivo\\debug.log'"

I have no idea what that means. But I created the folder pyTivo in the Documents folder.

Ran it again - got the pop us saying that Windows Firewall was blocking Python. Clicked to allow it.

Everything now works fine.

Mr. Brine thank you for all you do. You are much appreciated.

Best
Mrick1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO

Get pytivo at SourceForge.net. Fast, secure and Free Open Source software downloads
[ Time: 0.2112s ][ Queries: 17 (0.0124s) ][ GZIP on - Debug on ]