TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Underground Playground > Developers Corner
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 09-13-2014, 11:12 PM   #691
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,080
Well, it's not finding zeroconf.py. It should be there right next to start.py.
__________________

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 09-16-2014, 10:41 PM   #692
cweb
Registered User
 
Join Date: May 2004
Posts: 99
Quote:
Originally Posted by wmcbrine View Post
Well, it's not finding zeroconf.py. It should be there right next to start.py.
Well I am getting closer. The zeroconf.py was there, but something, somewhere must have gone bad. I reinstalled hem-python and the vidmgr files and deleted the .pyc files. I see from the output (see below) the the vidmgr server is registered and I see VidMgr in the Tivo Apps and can go into it from the tiro. However, after pressing a few keystrokes Vidmgr just hangs and I have to exit to regain control of the tiro. The terminal output shows there is an exception, but I am not sure how to interpret it.

On another note, which may or may not be related. If I run the buildcache.py or the rebuild (three thumbs down) from within the app, they appear to run and process fine with no errors. However, the thumbs.cache doesn't actually get updated. I don't know if it is write it somewhere else.

As usual, all help is appreciated.

The vidmgr output is:
cd '/Applications/hme-python/' && '/usr/local/bin/pythonw' '/Applications/hme-python/start.py' && echo Exit status: $? && exit 1
Mac-Desktop-Quad-Core:~ cliff$ cd '/Applications/hme-python/' && '/usr/local/bin/pythonw' '/Applications/hme-python/start.py' && echo Exit status: $? && exit 1
HME Server for Python 0.20
Sun Sep 14 23:02:54 2014 PyTivo Video Manager version 2.2f module initializing
Loading thumbnail cache
100 thumbnails loaded from cache
Sun Sep 14 23:02:56 2014 Server Starts
Registering: vidmgr
192.168.1.118 - - [14/Sep/2014 23:03:22] "GET /vidmgr/ HTTP/1.1" 200 -
192.168.1.118 - - [14/Sep/2014 23:03:22] Starting HME: vidmgr
Vidmgr thread entering startup
Vidmgr Entering Handle Resolution
Checking resolution 1280, 720
Found an HD resolution
Vidmgr thread activating
Vidmgr Entering Handle Resolution
Checking resolution 1280, 720
Found an HD resolution
Processing video share Tivo Share
2169 Videos found
Processing video share Tivo Share2
294 Videos found
Processing video share Brothers and Sisters
30 Videos found
All Shows (grouped by Series Title) count: 2493 videos in 135 groups
Alphabetical Groups count: 2493 videos
192.168.1.118 - - [14/Sep/2014 23:04:18] Ending HME: vidmgr
192.168.1.114 - - [14/Sep/2014 23:44:06] "GET /vidmgr/ HTTP/1.1" 200 -
192.168.1.114 - - [14/Sep/2014 23:44:06] Starting HME: vidmgr
Vidmgr thread entering startup
Vidmgr Entering Handle Resolution
Checking resolution 1280, 720
Found an HD resolution
Vidmgr thread activating
Vidmgr Entering Handle Resolution
Checking resolution 1280, 720
Found an HD resolution
Processing video share Tivo Share
2169 Videos found
Processing video share Tivo Share2
294 Videos found
Processing video share Brothers and Sisters
30 Videos found
All Shows (grouped by Series Title) count: 2493 videos in 135 groups
Alphabetical Groups count: 2493 videos
----------------------------------------
Exception happened during processing of request from ('192.168.1.114', 41583)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 595, in process_request_thread
self.finish_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Applications/hme-python/start.py", line 141, in __init__
client_address, server)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 651, in __init__
self.handle()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "/Applications/hme-python/start.py", line 232, in do_GET
self._page(True)
File "/Applications/hme-python/start.py", line 186, in _page
appinst.mainloop()
File "/Applications/hme-python/hme.py", line 1139, in mainloop
while self.active and self.get_event():
File "/Applications/hme-python/hme.py", line 1192, in get_event
handle(keynum, rawcode)
File "/Applications/hme-python/vidmgr/__init__.py", line 246, in handle_key_press
self.ddm.show(self.currentItem)
File "/Applications/hme-python/vidmgr/DetailDisplayManager.py", line 66, in show
thumb = self.getDirThumb(mapkey, otype == TYPE_DVDDIR)
File "/Applications/hme-python/vidmgr/DetailDisplayManager.py", line 134, in getDirThumb
data = self.tc.getImageData(tfn)
File "/Applications/hme-python/vidmgr/ThumbCache.py", line 139, in getImageData
pdata = resizePic(filename, self.width, self.height)
File "/Applications/hme-python/vidmgr/ThumbCache.py", line 36, in resizePic
pic = pic.resize((nwidth, nheight), img.ANTIALIAS)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Image.py", line 1290, in resize
self.load()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageFile.py", line 164, in load
self.load_prepare()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageFile.py", line 231, in load_prepare
self.im = Image.core.new(self.mode, self.size)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Image.py", line 37, in __getattr__
raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed
----------------------------------------
cweb is offline   Reply With Quote
Old 09-17-2014, 01:11 AM   #693
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,080
You're back to the Python Imaging Library not working there.
__________________

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 09-27-2014, 11:14 AM   #694
lrhorer
Registered User
 
Join Date: Aug 2003
Location: San Antonio, Texas, USA
Posts: 6,872
I'm having the same problem. Doing some searching, I think it is because it is expecting the files to be in /usr/lib, but at least some of them are in /usr/lib/86_64-linux-gnu. I tried creating the following symlinks, but it didn't help.

ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/libz.so
ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so.62 /usr/lib/
ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/
lrhorer is offline   Reply With Quote
Old 09-28-2014, 08:31 PM   #695
lrhorer
Registered User
 
Join Date: Aug 2003
Location: San Antonio, Texas, USA
Posts: 6,872
With Jeff's help, I got mine running, again. The first effective fix was to put

import sys
sys.path.append('/usr/lib/python2.7/dist-packages/PIL')

at the top of ThumbCache.py. This worked to get vidmgr up and running, but it is a bit of a kludge, because it is a spot band-aid that only gets PIL working for that one script. The thing that was leading me astray was PIL was reporting properly installed by Debian's package manager, and in a sense it was loaded correctly. Unfortunately in this situation having the app loaded is not the end of the story. We were able to pinpoint the location of PIL and point to it with the path addendum above, but Python in general remained ignorant of the location of PIL. What worked for me was issuing the command:

apt-get install python-imaging

Python-imaging is reportedly a temporary compatibility package that creates a PIL.pth file which allows one to continue to use the `import image` directive in Python scripts.

Anyone else suffering this issue is likely to need to load this package or an analogous one for your distribution.
lrhorer is offline   Reply With Quote
Old 09-29-2014, 09:23 AM   #696
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,080
Quote:
Originally Posted by lrhorer View Post
Python-imaging is reportedly a temporary compatibility package that creates a PIL.pth file which allows one to continue to use the `import image` directive in Python scripts.
So, instead of adding this package, would it be sufficient to change "import Image" to "from PIL import Image"?
__________________

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 09-30-2014, 12:11 PM   #697
lew
Registered User
 
Join Date: Mar 2002
Posts: 3,265
Minor issue:
The
[virtual share name X]

section in the ini dis file should have # .

You don't need to use virtual share but you need to complete the section if you don't either delete [virtual share name X] or change it to
#[virtual share name X] to comment out the section.
lew is offline   Reply With Quote
Old 10-06-2014, 06:27 PM   #698
NJ Webel
Registered User
 
Join Date: Dec 2004
Location: Richmond, VA
Posts: 172
Anyone have any idea why vidmgr will load a temp file into my library of the file I'm trying to push, but the transfer never starts or completes?

I am using a Base Roamio, connected via Ethernet to a HP Mediasmart EX485 running WHSv1.

vidmgr is the version 2 installation.

Last edited by NJ Webel : 10-06-2014 at 08:35 PM. Reason: Added details.
NJ Webel is online now   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 11:22 PM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |