Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: <type 'exceptions.OSError'> #50

Open
freedreamer82 opened this issue May 13, 2018 · 5 comments
Open

Exception: <type 'exceptions.OSError'> #50

freedreamer82 opened this issue May 13, 2018 · 5 comments

Comments

@freedreamer82
Copy link

Hi , I tried to start the daemon manually and i get thi stuff ( raspberry 3 ).
I see the device on my phone and it tries to connect to it but suddenly the connection drops..

any idea ?

thanks

Marco

Device connected. device=/org/bluez/hci0/dev_B4_9C_DF_3C_D9_26
Hiding adapter from all devices.

  • ogg123 /usr/share/sounds/freedesktop/stereo/service-login.oga

Audio Device: Advanced Linux Sound Architecture (ALSA) output

Playing: /usr/share/sounds/freedesktop/stereo/service-login.oga
Ogg Vorbis stream: 2 channel, 22050 Hz

Done.
Exception: <type 'exceptions.OSError'>
Device disconnected. device=/org/bluez/hci0/dev_B4_9C_DF_3C_D9_26
Showing adapter to all devices.

  • o
@xfjx
Copy link

xfjx commented Jun 4, 2018

I am getting the same error after reinstalling.

Did you find out the root of the problem? Maybe it is related to an updated bluetooth package in rasbian?

@xfjx
Copy link

xfjx commented Jun 4, 2018

I think my problem was ralated to another app already having the alsa device open.

@freedreamer82
Copy link
Author

yes could be. I had another app using alsa as well, stopping that , now it works.

@stupidusername
Copy link

stupidusername commented Jul 18, 2018

Check that you are executing the app from it's source directory. That message is printed when librtpsbc.so can't be found. This code belongs to bt_manager/codecs.py:

def __init__(self, config):

        import sys

        try:
            self.codec = ffi.dlopen('./librtpsbc.so')
        except:
            print 'Exception:', sys.exc_info()[0]

        self.config = ffi.new('sbc_t *')
        self.ts = ffi.new('unsigned int *', 0)
        self.seq_num = ffi.new('unsigned int *', 0)
        self._init_sbc_config(config)
self.codec.sbc_init(self.config, 0)

@schlimmchen
Copy link
Contributor

yes could be. I had another app using alsa as well, stopping that , now it works.

@freedreamer82 In that case you might want to close this issue, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants