jbach
Posts: 15
Joined: Tue Oct 29, 2013 3:41 pm

Installing OSC

Thu Oct 31, 2013 7:11 pm

I need to enable TouchOSC on a mobile device to communicate with a Rasberry Pi. So first step is getting OSC installed on the Pi.

To use 'SimpleOSC' http://www.ixi-software.net/content/bod ... d_osc.html

do I first need to install PyOSC?

Is there a tutorial anywhere that walks thru the process for a Python-linux newbie?

User avatar
DougieLawson
Posts: 36904
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Installing OSC

Thu Oct 31, 2013 7:34 pm

There's no Raspbian package for PyOSC so you're going to need to clone it from the Git repo then install it by running the setup program.

Start with

Code: Select all

sudo apt-get install git
if you don't already have git installed.

Then pick up a copy of the PyOSC code:

Code: Select all

cd /tmp
git clone git://gitorious.org/pyosc/devel.git
Installation is then quite simple :

Code: Select all

cd devel
sudo ./setup.py install
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

honsey
Posts: 5
Joined: Sat Nov 09, 2013 2:59 pm

Re: Installing OSC

Sat Nov 09, 2013 6:22 pm

Hello,

I'm running into problems trying to use OSC within python scripts.

Installed pyOSC by cloning from git into ~/devel and running the installer

Code: Select all

 sudo ./setup.py install
This gives me the following output

Code: Select all

running install
running build
running build_py
running install_lib
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/pyOSC-0.3.6_6382.egg-info
Writing /usr/local/lib/python2.7/dist-packages/pyOSC-0.3.6_6382.egg-info
Running the testbench.py to listen to my OSC server

Code: Select all

python testbench.py -l 192.168.0.199:7000
This throws an error after (trying to?) instantiating the OSC server:

Code: Select all

Instantiating OSCClient:
OSCClient v0.3.6-6382 connected to osc://Dose.home:7000

Instantiating OSCServer:
Traceback (most recent call last):
  File "testbench.py", line 362, in <module>
    s = OSCServer(listen_address, c, return_port=listen_address[1])
  File "/home/pi/devel/OSC.py", line 1876, in __init__
    UDPServer.__init__(self, server_address, self.RequestHandlerClass)
  File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/SocketServer.py", line 430, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address
Whats wrong with my installation?

Hope somebody can help me — Thank you + Bye,
Hans

nolman
Posts: 32
Joined: Sat Mar 30, 2013 9:33 am

Re: Installing OSC

Thu Jan 30, 2014 8:51 am

i would also be very interested in getting osc to work with the raspberry pi. Any tips very welcome!
thanks.

Angelus88
Posts: 442
Joined: Mon May 13, 2013 9:25 am
Location: Ivrea, TO (Italy)

Re: Installing OSC

Thu Jan 30, 2014 9:36 am

Try with sudo

Code: Select all

sudo python testbench.py -l 192.168.0.199:7000
If it doesn't work, is "192.168.0.199" the IP address of your RPi? If so try

Code: Select all

python testbench.py -l 127.0.0.1:7000
or again

Code: Select all

sudo python testbench.py -l 127.0.0.1:7000
and make sure port 7000 is free!!

Return to “Beginners”