TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Main TiVo Forums > TiVo Home Media Features & TiVoToGo
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 10-08-2014, 09:57 PM   #4921
mattack
Registered User
 
Join Date: Apr 2001
Location: sunnyvale
Posts: 17,271
I don't think I asked this before -- how do you QUIT pyTivo?

It doesn't seem to like being ^Ced.. often it just ends up in Python exceptions and still not going back to the shell.. I couldn't figure out any 'q' or 'quit' or anything it responding to..

so I usually just have to ^Z then kill %1 it... I wish it had a 'real' quit capability.
mattack is offline   Reply With Quote
Old 10-09-2014, 12:00 AM   #4922
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,087
^C is the official way. I sometimes see the symptoms you describe when there's a crash in a pyTivo thread (but the overall program keeps running). Normally that shouldn't happen.

Edit: There's also a "Shutdown pyTivo" button under the Settings page of the web interface, if you run under Python 2.6 or 2.7. I doubt you'd see different behavior with the crashed threads.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wmcbrine : 10-14-2014 at 03:25 AM.
wmcbrine is offline   Reply With Quote
Old 10-28-2014, 09:18 PM   #4923
globalgreg
Registered User
 
Join Date: Feb 2005
Posts: 14
pyTivo home page not rendering correctly

I've got pyTivo installed but when I go to the pyTivo home page (http://localhost:9032) it doesn't look like any of the screenshots. It's all white with text as if it's not rendering correctly. I've tried it in IE (with and w/o compatibility mode), Chrome, and Firefox. See attached pic and I pasted what the text in the cmd windows. Thanks for any help.

Code:
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58504)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58505)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58506)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58509)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58510)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58513)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
INFO:pyTivo:127.0.0.1 [28/Oct/2014 20:17:21] "GET /TiVoConnect?Command=Settings&
Container=Settings HTTP/1.1" 200 -
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58514)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 342, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58519)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58518)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58520)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str
ERROR:pyTivo:Exception during request from ('127.0.0.1', 58523)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 595, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\pytivo\httpserver.py", line 91, in __init__
    client_address, server)
  File "C:\Python27\lib\SocketServer.py", line 651, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:\pytivo\httpserver.py", line 131, in do_GET
    self.handle_file(query, splitpath)
  File "C:\pytivo\httpserver.py", line 256, in handle_file
    self.send_content_file(path)
  File "C:\pytivo\httpserver.py", line 222, in send_content_file
    mime = mimetypes.guess_type(path)[0]
  File "C:\Python27\lib\mimetypes.py", line 290, in guess_type
    init()
  File "C:\Python27\lib\mimetypes.py", line 351, in init
    db.read_windows_registry()
  File "C:\Python27\lib\mimetypes.py", line 254, in read_windows_registry
    with _winreg.OpenKey(hkcr, subkeyname) as subkey:
TypeError: must be string without null bytes or None, not str

Attached Images
File Type: jpg pytivo.jpg (31.2 KB, 5 views)
globalgreg is offline   Reply With Quote
Old 10-28-2014, 09:25 PM   #4924
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,087
Bizarre. What version of Windows are you using?

The errors there are in Python's standard library, apparently just trying to read some MIME-related stuff from the registry. pyTivo proper doesn't even know about the registry, it's just calling mimetypes.guess_type(). So, you may have to take it up with the Python people. But first, make sure you're running the latest release from the 2.7 line.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 10-28-2014, 09:28 PM   #4925
globalgreg
Registered User
 
Join Date: Feb 2005
Posts: 14
Quote:
Originally Posted by wmcbrine View Post
Bizarre. What version of Windows are you using?

The errors there are in Python's standard library, apparently just trying to read some MIME-related stuff from the registry. pyTivo proper doesn't even know about the registry, it's just calling mimetypes.guess_type(). So, you may have to take it up with the Python people. But first, make sure you're running the latest release from the 2.7 line.
I'm on Windows 8.1 64-bit. I installed the 2.7.8 64-bit version of Python.
globalgreg is offline   Reply With Quote
Old 10-28-2014, 11:16 PM   #4926
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,087
I had 2.7.6 on my Windows machine, so I DLed 2.7.8 to see if I could reproduce this. I could not. But, the first thing I noticed on the download page was this:

"Python 2.7.8 was released on July 1, 2014. This release includes regression and security fixes over 2.7.7 including:
...
A regression in the mimetypes module on Windows has been fixed."

This leads me to strongly suspect that you are, in fact, running 2.7.7. In any case, you should try [re-?]installing 2.7.8.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is offline   Reply With Quote
Old 10-29-2014, 12:23 AM   #4927
globalgreg
Registered User
 
Join Date: Feb 2005
Posts: 14
Quote:
Originally Posted by wmcbrine View Post
I had 2.7.6 on my Windows machine, so I DLed 2.7.8 to see if I could reproduce this. I could not. But, the first thing I noticed on the download page was this:

"Python 2.7.8 was released on July 1, 2014. This release includes regression and security fixes over 2.7.7 including:
...
A regression in the mimetypes module on Windows has been fixed."

This leads me to strongly suspect that you are, in fact, running 2.7.7. In any case, you should try [re-?]installing 2.7.8.
I assure you it's 2.7.8. Tried uninstalling and re-installing with same results. Strange.
globalgreg is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media

(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 06:58 AM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |