Re: [LAU] pyOSC problem

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: R. Mattes <rm@...>
Cc: <linux-audio-user@...>
Date: Wednesday, February 27, 2013 - 2:54 pm

This is a multi-part message in MIME format.
--------------080400000507020505060404
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I did not try liblo yet, but it would be the alternative, if I cannot
figure out how to get it working with pyOSC.

> Two general remarks - first: show us (some) code?

Why so offensive?

I expect nothing!
I ask for help, if you dont want to, then dont.

Anyway...

I am reffering to this version of PyOSC:
https://gitorious.org/pyosc/devel/commits/python3

> What event loop do you use in your program? Some code please ...

I have a python3 app, that calls a class OSC_Communication.

address = localhost, port = 9001

class OSC_Communication(object):

def __init__(self, address, port):

self.osc_server = ForkingOSCServer((address, port))
self.register_osc_callbacks()
#__________________________________________________________________________________________________

def register_osc_callbacks(self):
self.osc_server.addMsgHandler("/test", self.test_callback)
self.osc_server.addDefaultHandlers("", "/info", "/error")

print ("Registered Callback-functions are :")
for addr in self.osc_server.getOSCAddressSpace():
print (addr)
#_________________________________________________________________________________________________

def test_callback(self, path, tags, args, source):
print("test")
#__________________________________________________________________________________________________

as simple as it is, it does not receive any OSC message.
The addressing is correct and the messages are sent.
I checked with puredata and printed messages correctly.
Wireshark captured messages correctly as well.

So, what am I missing?

Regards,
Ck

--------------080400000507020505060404
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi,

I did not try liblo yet, but it would be the alternative, if I
cannot figure out how to get it working with pyOSC.

Two general remarks - first: show us (some) code?
Do you _really_ expect us to debug your problem with the
information you provided?

Why so offensive?

I expect nothing!
I ask for help, if you dont want to, then dont.

Anyway...

Which PyOSC? There seem to be quite a few out in the wild ...

I am reffering to this version of PyOSC:
https://gitorious.org/pyosc/devel/commits/python3

What event loop do you use in your program?
Some code please ... Cheers ,Ralf Mattes

I have a python3 app, that calls a class OSC_Communication.

address = localhost, port = 9001

class OSC_Communication(object):
def __init__(self, address, port):
       
        self.osc_server = ForkingOSCServer((address, port))       

        self.register_osc_callbacks()
   
#__________________________________________________________________________________________________  

    def register_osc_callbacks(self):
        self.osc_server.addMsgHandler("/test", self.test_callback)
        self.osc_server.addDefaultHandlers("", "/info", "/error")
 
        print ("Registered Callback-functions are :")
        for addr in self.osc_server.getOSCAddressSpace():
            print (addr)             
   
#_________________________________________________________________________________________________

    def test_callback(self, path, tags, args, source):
        print("test")
   
#__________________________________________________________________________________________________

as simple as it is, it does not receive any OSC message.
The addressing is correct and the messages are sent.
I checked with puredata and printed messages correctly.
Wireshark captured messages correctly as well.

So, what am I missing?

Regards,
Ck

--------------080400000507020505060404--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] pyOSC problem, Christoph Kuhr, (Wed Feb 27, 12:06 pm)
Re: [LAU] pyOSC problem, R. Mattes, (Wed Feb 27, 1:00 pm)
Re: [LAU] pyOSC problem, Christoph Kuhr, (Wed Feb 27, 2:54 pm)
Re: [LAU] pyOSC problem, Marije Baalman, (Sat Mar 2, 11:58 am)
Re: [LAU] pyOSC problem, Patrick Shirkey, (Wed Feb 27, 12:50 pm)