pulseaudio-dlna icon indicating copy to clipboard operation
pulseaudio-dlna copied to clipboard

Attribute Error on network.py

Open camlafit opened this issue 8 years ago • 11 comments

HI

From debian package 0.5.3+git20170406-1

I get this error :

Jul 26 09:44:44 laptop pulseaudio-dlna.desktop[738]: 07-26 09:44:44 pulseaudio_dlna.pulseaudio                     INFO     on_device_updated "/org/pulseaudio/core1/sink1"
Jul 26 09:44:44 laptop pulseaudio-dlna.desktop[738]: 07-26 09:44:44 pulseaudio_dlna.pulseaudio                     INFO     on_device_updated "/org/pulseaudio/core1/sink1"
Jul 26 09:44:44 laptop pulseaudio-dlna.desktop[738]: 07-26 09:44:44 pulseaudio_dlna.pulseaudio                     INFO     on_device_updated "/org/pulseaudio/core1/sink1"
Jul 26 09:44:44 laptop pulseaudio-dlna.desktop[738]: 07-26 09:44:44 pulseaudio_dlna.pulseaudio                     INFO     on_device_updated "/org/pulseaudio/core1/sink1"
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]: 07-26 09:44:45 pulseaudio_dlna.pulseaudio                     INFO     _async_handle_sink_update /org/pulseaudio/core1/sink1
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]: 07-26 09:44:45 pulseaudio_dlna.pulseaudio                     INFO     Instructing the device "Corridoio - Sonos PLAY:3 Media Renderer (DLNA)" to play ...
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]: Traceback (most recent call last):
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:   File "/usr/lib/python2.7/dist-packages/pulseaudio_dlna/pulseaudio.py", line 693, in _handle_sink_update
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:     result = future.result()
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:   File "/usr/lib/python2.7/dist-packages/concurrent/futures/_base.py", line 405, in result
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:     return self.__get_result()
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:   File "/usr/lib/python2.7/dist-packages/concurrent/futures/thread.py", line 55, in run
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:     result = self.fn(*self.args, **self.kwargs)
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:   File "/usr/lib/python2.7/dist-packages/pulseaudio_dlna/pulseaudio.py", line 738, in __handle_sink_update
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:     artist=artist, title=title, thumb=thumb)
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:   File "/usr/lib/python2.7/dist-packages/pulseaudio_dlna/plugins/upnp/renderer.py", line 462, in play
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:     stream_url = url or self.get_stream_url()
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:   File "/usr/lib/python2.7/dist-packages/pulseaudio_dlna/plugins/renderer.py", line 411, in get_stream_url
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:     return self._encode_settings(settings, 'stream.' + self.codec.suffix)
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:   File "/usr/lib/python2.7/dist-packages/pulseaudio_dlna/plugins/renderer.py", line 390, in _encode_settings
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:     server_ip = pulseaudio_dlna.utils.network.get_host_by_ip(self.ip)
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:   File "/usr/lib/python2.7/dist-packages/pulseaudio_dlna/utils/network.py", line 52, in get_host_by_ip
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:     return __pyroute2_get_host_by_ip(ip)
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:   File "/usr/lib/python2.7/dist-packages/pulseaudio_dlna/utils/network.py", line 75, in __pyroute2_get_host_by_ip
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]:     if attr.cell[0] == 'RTA_PREFSRC':
Jul 26 09:44:45 laptop pulseaudio-dlna.desktop[738]: AttributeError: 'list' object has no attribute 'cell'

camlafit avatar Jul 26 '17 07:07 camlafit

@camlafit : Could you please current master and check if that solves your problem?

masmu avatar Jul 26 '17 10:07 masmu

@camlafit if that is the case, let us know and I will update the debian package.

muammar avatar Jul 26 '17 12:07 muammar

Hi

Are they deb master download ? I don't found it.

camlafit avatar Jul 26 '17 12:07 camlafit

Are they deb master download ? I don't found it.

I decided to mostly upload stable versions. But from time to time I upload master snapshots. You should actually clone the repo and test what @masmu asked you. I will update the debian package this weekend with latest master snapshot just in case.

muammar avatar Jul 26 '17 12:07 muammar

Hi

I try to compile by hand deb but I can't. python-futures is required but I don't found it in jessie packages.

camlafit avatar Jul 26 '17 12:07 camlafit

@camlafit it seems to be available when you active the backports. See the package here.

muammar avatar Jul 26 '17 13:07 muammar

Hi

I do a workaround with fpm packager , I've just try with master and looks ok.

This package is not provided in stable release (stretch). Looks replaced by https://packages.debian.org/stretch/python-concurrent.futures

You can update deb package from master :)

camlafit avatar Jul 26 '17 13:07 camlafit

@camlafit thanks for confirming this. I will update the package this weekend.

muammar avatar Jul 26 '17 14:07 muammar

I've done a mistake , I use stretch and not jessie .... (I've forgotten that on my previous message, upgrade too recently :)

About fpm I do as this

fpm -s python -t deb --no-python-fix-name --no-python-dependencies setup.py

camlafit avatar Jul 26 '17 14:07 camlafit

@muammar thank for your help

camlafit avatar Jul 26 '17 14:07 camlafit

@muammar I'm seeing the same issue after upgrading to 0.5.3+git20170406-1 which seems to be the most recent version available. Did you got around to update the debian package? Or it ended up being more complicated? Thanks!

bp-dev avatar Oct 22 '18 15:10 bp-dev