Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
buaboo
Visitor

Re: My Media - Your Music and Video on the Roku DVP

I have a different NAS unit (Maxtor Central Axis) which I have gotten this to work.. I installed python via optware. Here's what my config.ini looks like in vi

[config]^M
music_dir = /share/Public/Our_Music/publicmp3/^M
video_dir = /share/Public/Our_Movies/^M
server_ip = 192.168.0.31^M
roku_ip = 192.168.0.51^M
max_folders_before_split = 10^M
python_path = /opt/bin^M
theme = default^M
collapse_collections = False^M
server_port = 8001^M
photo_dir = /share/Public/Our_Photos/^M
^M
~

To launch rss_server, I executive the command -- /opt/bin/python2.6 /share/Public/media/rss_server.py

I noticed that your python path in the ini file is python_path = /ipkg/opt/bin/python2.6^M but you are launch rss_server with
/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server # python2.6 ./rss_server.py... I am not a linux person or anything, so this might be a silly question, but why is the python directory different between the one in ini and the one in your launch command?? Could that cause the issue?


"wbmurray" wrote:
Springboard does not run (see below). My understanding of the DNS-323 install process is that the config.ini is prepared on your PC and then copied over to the DNS323 so springboard is not used for the config. Launch server button is not used either - a script on the DNS323 (linux) is executed.

Aditionally, I have been able to run python and load springboard from my PC and been able to connect to it from the ROKU. The DNS (a NAS) is where I want to serve the media files from.

Thanks for your interest in helping...my ideas are running dry.

/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server # python2.6 ./springboard.py
Traceback (most recent call last):
File "./springboard.py", line 116, in <module>
from Tkinter import *
File "/opt/lib/python2.6/lib-tk/Tkinter.py", line 39, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server #
0 Kudos
wbmurray
Visitor

Re: My Media - Your Music and Video on the Roku DVP

Thanks - I updated the paths so they were consistent. Same "Segmentation fault" error.

Thinking maybe I have a permissions problem. Here is what my directory that holds rss_server.py looks like. Can you share your directory? ( type ls -l ). Thanks much!

/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server # ls -l
-rwxr-xr-x 1 root root 14316 May 21 07:25 PyRSS2Gen.py
-rw-r--r-- 1 root root 16244 May 21 18:19 PyRSS2Gen.pyc
-rw-r--r-- 1 root root 1 May 21 08:50 _
-rwxr-xr-x 1 root root 6380 May 21 07:25 common.py
-rw-r--r-- 1 root root 9272 May 21 10:53 common.pyc
-rwxrwxrwx 1 wbmurray 502 213 May 21 18:07 config.ini
drwxrwxrwx 2 wbmurray 502 4096 May 21 18:19 eyeD3
-rwxr-xr-x 1 root root 16184 May 21 07:25 rss_server.py
-rwxr-xr-x 1 root root 197 May 21 07:25 sample_config.ini
drwxrwxrwx 3 wbmurray 502 4096 May 21 07:27 simplejson
-rwxr-xr-x 1 root root 5723 May 21 07:25 springboard.py
drwxrwxrwx 4 wbmurray 502 4096 May 21 18:19 web
0 Kudos
renojim
Community Streaming Expert

Re: My Media - Your Music and Video on the Roku DVP

Can you update to the latest version here and see if you still have the problem?

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
buaboo
Visitor

Re: My Media - Your Music and Video on the Roku DVP

Here is what my directory looks like

-rw-rw-rw- 1 nobody nobody 14316 Apr 24 10:55 PyRSS2Gen.py
-rw-r--r-- 1 root root 14781 Apr 24 10:52 PyRSS2Gen.pyc
-rw-rw-rw- 1 nobody nobody 9300 Apr 24 10:55 common.py
-rw-rw-rw- 1 nobody nobody 17327 Apr 24 10:57 common.pyc
-rw-rw-rw- 1 nobody nobody 310 Apr 24 10:58 config.ini
-rw-rw-rw- 1 nobody nobody 399 Apr 24 10:55 default_streams.pickle
drwxrwxrwx 2 nobody nobody 4096 Mar 27 22:47 eyeD3
-rw-r--r-- 1 root root 1649046 May 15 23:34 my_media_log.txt
-rw-r--r-- 1 root root 501 Apr 18 12:30 my_streams.pickle
-rw-rw-rw- 1 nobody nobody 24827 Apr 24 10:55 rss_server.py
-rw-rw-rw- 1 nobody nobody 25134 Apr 18 22:25 rss_server.py.mycustomwt
elnet
-rw-r--r-- 1 root root 24327 Apr 24 10:52 rss_server.pyc
-rw-rw-rw- 1 nobody nobody 197 Apr 24 10:55 sample_config.ini
drwxrwxrwx 3 nobody nobody 4096 Apr 24 10:52 simplejson
-rw-rw-rw- 1 nobody nobody 7338 Apr 24 10:55 springboard.py
-rwxrwxrwx 1 nobody nobody 86 Feb 21 18:31 startserver.sh
drwxrwxrwx 4 nobody nobody 4096 Mar 27 22:47 static
drwxrwxrwx 4 nobody nobody 4096 Apr 24 10:52 web

I placed the mymedia stuff in the "Public" folder area of the NAS, so everything should have full permissions...

To test this out, you could just do a chmod 999 or 777 or whatever and make it recurrsive and see what happen... I think I said that right..



"wbmurray" wrote:
Thanks - I updated the paths so they were consistent. Same "Segmentation fault" error.

Thinking maybe I have a permissions problem. Here is what my directory that holds rss_server.py looks like. Can you share your directory? ( type ls -l ). Thanks much!

/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server # ls -l
-rwxr-xr-x 1 root root 14316 May 21 07:25 PyRSS2Gen.py
-rw-r--r-- 1 root root 16244 May 21 18:19 PyRSS2Gen.pyc
-rw-r--r-- 1 root root 1 May 21 08:50 _
-rwxr-xr-x 1 root root 6380 May 21 07:25 common.py
-rw-r--r-- 1 root root 9272 May 21 10:53 common.pyc
-rwxrwxrwx 1 wbmurray 502 213 May 21 18:07 config.ini
drwxrwxrwx 2 wbmurray 502 4096 May 21 18:19 eyeD3
-rwxr-xr-x 1 root root 16184 May 21 07:25 rss_server.py
-rwxr-xr-x 1 root root 197 May 21 07:25 sample_config.ini
drwxrwxrwx 3 wbmurray 502 4096 May 21 07:27 simplejson
-rwxr-xr-x 1 root root 5723 May 21 07:25 springboard.py
drwxrwxrwx 4 wbmurray 502 4096 May 21 18:19 web
0 Kudos
buaboo
Visitor

Re: My Media - Your Music and Video on the Roku DVP

Whileyou are in the media server directory have you tried executive --- /ipkg/opt/bin/python2.6 ./rss_server.py --- to make sure you are picking up the right instance...



"wbmurray" wrote:
Thanks - I updated the paths so they were consistent. Same "Segmentation fault" error.

Thinking maybe I have a permissions problem. Here is what my directory that holds rss_server.py looks like. Can you share your directory? ( type ls -l ). Thanks much!

/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server # ls -l
-rwxr-xr-x 1 root root 14316 May 21 07:25 PyRSS2Gen.py
-rw-r--r-- 1 root root 16244 May 21 18:19 PyRSS2Gen.pyc
-rw-r--r-- 1 root root 1 May 21 08:50 _
-rwxr-xr-x 1 root root 6380 May 21 07:25 common.py
-rw-r--r-- 1 root root 9272 May 21 10:53 common.pyc
-rwxrwxrwx 1 wbmurray 502 213 May 21 18:07 config.ini
drwxrwxrwx 2 wbmurray 502 4096 May 21 18:19 eyeD3
-rwxr-xr-x 1 root root 16184 May 21 07:25 rss_server.py
-rwxr-xr-x 1 root root 197 May 21 07:25 sample_config.ini
drwxrwxrwx 3 wbmurray 502 4096 May 21 07:27 simplejson
-rwxr-xr-x 1 root root 5723 May 21 07:25 springboard.py
drwxrwxrwx 4 wbmurray 502 4096 May 21 18:19 web
0 Kudos
wbmurray
Visitor

Re: My Media - Your Music and Video on the Roku DVP

@renojim
I re-downloaded the server directory to the DNS323 and still had the same error.

@buaboo
I have doublechecked the path by trying it fully qualified and unfortunately had the same result.
There are a lot of permission differences . I'll have to look them over and try a few alternatives.

Thanks!
0 Kudos
renojim
Community Streaming Expert

Re: My Media - Your Music and Video on the Roku DVP

"wbmurray" wrote:
@renojim
I re-downloaded the server directory to the DNS323 and still had the same error.

Did you re-download the same version you already had, or did you download the version in the link I gave. Looking at your directory listing, it doesn't look like you have the latest version.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
buaboo
Visitor

Re: My Media - Your Music and Video on the Roku DVP

Good Luck.. Have you tried a simple python program or script to see if that works? i.e. hello world app... I don't know python so I can't help create it, but perhaps someone else can help with that if you think its appropriate..

"wbmurray" wrote:
@renojim
I re-downloaded the server directory to the DNS323 and still had the same error.

@buaboo
I have doublechecked the path by trying it fully qualified and unfortunately had the same result.
There are a lot of permission differences . I'll have to look them over and try a few alternatives.

Thanks!
0 Kudos
wbmurray
Visitor

Re: My Media - Your Music and Video on the Roku DVP

@buaboo
I just tried it. So now I'm pretty sure that Python is functioning properly

/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server # python2.6
Python 2.6.5 (r265:79063, Mar 21 2010, 01:25:01)
[GCC 3.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "hello world"
hello world

>>>


Can I see what your SET looks like? Mind below:
/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server # set
HISTFILE='/.ash_history'
HOME='/'
IFS='
'
OLDPWD='/opt/bin'
OPTIND='1'
PATH='/opt/bin:/opt/sbin:/opt/bin:/opt/sbin:/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin'
PPID='2022'
PS1='\w \$ '
PS2='> '
PS4='+ '
PWD='/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server'
SHELL='/bin/sh'
TERM='vt102'
USER='root'
_='python2.6'
/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server #




@renojim
I downloaded via the link you sent. I think the directory listing was from before that. Here is an updated directory (and a time stamp).

/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server # ls -l
-rwxrwxrwx 1 root root 14316 May 21 19:00 PyRSS2Gen.py
-rwxrwxrwx 1 root root 9300 May 21 19:00 common.py
-rwxrwxrwx 1 root root 213 May 21 18:07 config.ini
-rwxrwxrwx 1 root root 399 May 21 19:00 default_streams.pickle
drwxrwxrwx 2 root root 4096 May 21 19:01 eyeD3
-rwxrwxrwx 1 root root 24827 May 21 19:00 rss_server.py
-rwxrwxrwx 1 root root 197 May 21 19:00 sample_config.ini
drwxrwxrwx 3 root root 4096 May 21 19:01 simplejson
-rwxrwxrwx 1 root root 7338 May 21 19:00 springboard.py
drwxrwxrwx 4 root root 4096 May 21 19:00 static
drwxrwxrwx 4 root root 4096 May 21 19:01 web
/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server # /opt/bin/python2.6 ./rss_ser
ver.py
Segmentation fault
/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server # date
Sat May 22 07:16:06 DST 2010
/mnt/HD_a2/ipkg/opt/exec/roku_media_server/server #
0 Kudos
renojim
Community Streaming Expert

Re: My Media - Your Music and Video on the Roku DVP

Ok. Darn, I was really hoping it was a version problem. Hopefully you and buaboo can figure out what's different between your setup and his. I know there are others that have installed this on a NAS, so maybe someone else will chime in.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos