Raspberry Pi



I started looking into pi3D but how did you manage to get it working? I keep getting this error:

Pi3D module - version 0.07<br />
Copyright (c) Tim Skillman, 2012<br />
Updates available from www.github.com/tipam/pi3d<br />
Screen size 1920 1080<br />
* failed to add service - already in use?


Hi Guys,



Its exciting to see all the work that is going on here.



I tested this last night and video works great, i just cant get audio through my hdmi connection.

Audio always plays through the 3.5mm audio jack.



I am using a fresh install of Raspbian and the steps i performed are below.



sudo apt-get update && sudo apt-get upgrade

sudo apt-get install git-core

sudo wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update

sudo cp rpi-update /usr/local/bin/rpi-update

sudo chmod +x /usr/local/bin/rpi-update

sudo rpi-update 192

sudo reboot

sudo vim config.txt > to set arm_freq to 1000

sudo reboot

sudo apt-get install avahi-daemon

sudo apt-get install python-pip

sudo pip install tornado

sudo pip install pexpect

sudo apt-get install python-avahi

sudo aptitude install python-gobject

mkdir apps

cd apps

git clone https://github.com/megawubs/pyplex.git

python pyplex hdmi &



Just tried to play directly and hdmi audio worked ok.

omxplayer -o hdmi http://192.168.0.26:32400/library/parts/30/file.mp4


Delete [ and ] from your statement and it'll work.



Hi JiK,

Thanks for your reply,

I should of said that i was trying both ways
I did try this way "python pyplex hdmi &" but i still get audio through the 3.5 jack

Are you using Raspbian.

Thanks


Whats does your log file say? I'll test later today with audio over HDMI. Normally I test with audio over the jack so this bug might have slipped through.

I have a Raspbian installation on my pi.


Hi JiK,

Here is my log file, Thanks for your help.


Hey!

Thanks, I downloaded the newest commit and tried launching again.
Although I can't start the application using

python pyplex [hdmi] &

, but instead I have to type this:


python2 __main__.py

in order to start execution.

Still, I can’t get the application to launch and I’ve already installed the other modules it’s been asking me for. Now I get this error:


<br />
Traceback (most recent call last):<br />
  File "__main__.py", line 1, in <module><br />
    from interface import pyPlex<br />
  File "/home/jonathan/Applications/pyplex/interface.py", line 6, in <module><br />
    from service.zeroconf import ZeroconfService, AvahiLookUp<br />
  File "/home/jonathan/Applications/pyplex/service/zeroconf.py", line 4, in <module><br />
    from dbus.mainloop.glib import DBusGMainLoop<br />
  File "/usr/lib/python2.7/site-packages/dbus/mainloop/glib.py", line 29, in <module><br />
    from _dbus_glib_bindings import DBusGMainLoop, gthreads_init<br />
ImportError: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory<br />




As I mentioned I am running Arch Linux which comes with very few (almost none) packages installed from the beginning.
I've been trying to install libdbus etc, but haven't gotten it to work yet. Could anyone here try to help me? :)

Thanks in advance!


This changed since a few days.

To start it now you have to do from your pyplex folder:


cd ../<br />
python pyplex hdmi &


To start it (I'll run in the background)
To stop it run


python pyplex stop 



Log file is located inside the pyplex folder.

HDMI output is currently broken. Have found the bug but something went wrong while fixing it. Will take a bit longer to push the fix

Also, you should read the updated readme.md file. It contains some new info you might want to know. And one new package you need to install


Fixed it. If you do git pull it'll update to a working pyplex with hdmi working again.

I just installed the latest version and was able to get it running. I didn't try running pyplex alongside this time.

Did you do this:

sudo apt-get install python-imaging python-imaging-tk


I ran: python BouncingBalls.py

I believe I have followed the instructions correctly, however I do not think I can get it to start with:



python pyplex hdmi &



I get the response


[1] 2446 



(service starting I guess) but I cannot see a log file being created, and I cannot see the "Raspberry Plex" client on any remotes or Web GUI.

Any thoughts?


Look at the log with (make sure you replace with your correct path):

tail -n 15 ~/pyplex/pyplexlogger/pyplex.log



Or use *more* on a fresh log and you'll get something like this:

pi@raspberrypi ~/pyplex/pyplexlogger $ more pyplex.log<br />
2013-01-03 22:32:30,610 INFO PyPlex: Starting up...<br />
2013-01-03 22:32:30,613 INFO PyPlex: Audo output over HDMI<br />
2013-01-03 22:32:30,640 INFO AvahiLookUp: Looking for _plexmediasvr._tcp type Avahi shares<br />
2013-01-03 22:32:30,828 INFO AvahiLookUp: Found Service 'Main' at 192.168.2.52 on port 32400<br />
2013-01-03 22:32:30,837 INFO PyPlex: Setting up listeners<br />
2013-01-03 22:32:30,901 INFO ZeroconfService: 'Published avahi Service with name 'raspberrypi PyPlex' on port 3000 with text '['machineIdentifier=raspbe<br />
rrypi', 'version=2.0']'<br />
2013-01-03 22:32:30,907 INFO xbmcCommands: Initated xbmcCommands<br />
2013-01-03 22:32:30,921 INFO udplistener: Started UDP listener<br />
2013-01-03 22:32:30,931 INFO httplistener: HTTP Init done<br />
2013-01-03 22:32:30,934 INFO PyPlex: Running PyPlex<br />
2013-01-03 22:32:30,989 INFO httplistener: Started HTTP listener

[deleted, double post.]




Right,

Found the log, and it is getting stuck on:


INFO AvahiLookUp: Looking for _plexmediasvr._tcp type Avahi shares



Do I need to check anything on PMS? I have PMS running on a Windows 7 machine with Mac, iOS, Android and Windows clients.

It means it can't find one (it automatically stops looking if it finds one server)

Can you check in the server settings (I think you have to set it to advanced) to what kind of avahi _tcp it's sending/looking for? Don't know how to get there, can't see those settings when I login from outside the house.

This is all tested in combination with a linux installation of the server. Have no idea if it'll recognize the windows server correctly.



Thanks for the response, but it still doesn't work.
I am inside the pyplex folder that I cloned the git to and this is my input and the output:

<br />
[jonathan@alarmpi pyplex]$ python pyplex hdmi &<br />
[1] 4928<br />
[jonathan@alarmpi pyplex]$ python: can't open file 'pyplex': [Errno 2] No such file or directory<br />




What am I doing wrong?

The folder is the program now, you have to go one folder up (the folder you did the git clone command in) and there you have to do python pyplex hdmi & to run it.

Python sees the folder as a program because of the __main__.py file inside it.

These are the advanced settings for network discovery with plex. Seems to be correct from what I see. But then…


https://dl.dropbox.com/s/avjg8h9xtmx3g1q/plex_settings.png?dl=1



So i followed these instructions for the most part, as well as read all the later posts and installed those packages, but i'm getting this error. I assume i'm missing a package somewhere.

pi@raspbmc:~/apps$ python pyplex hdmi
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/pi/apps/pyplex/__main__.py", line 1, in
from interface import pyPlex
File "pyplex/interface.py", line 2, in
from gui.image import image
File "pyplex/gui/image.py", line 1, in
import pygame.image, pygame.display
ImportError: No module named pygame.image

nevermind

sudo apt-get install python-pygame

did the trick