{"action":"closed","issue":{"url":"https://api.github.com/repos/blueman-project/blueman/issues/278","labels_url":"https://api.github.com/repos/blueman-project/blueman/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/blueman-project/blueman/issues/278/comments","events_url":"https://api.github.com/repos/blueman-project/blueman/issues/278/events","html_url":"https://github.com/blueman-project/blueman/issues/278","id":74430994,"number":278,"title":"UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 15: ordian not in range","user":{"login":"yars068","id":11477745,"avatar_url":"https://avatars.githubusercontent.com/u/11477745?v=3","gravatar_id":"","url":"https://api.github.com/users/yars068","html_url":"https://github.com/yars068","followers_url":"https://api.github.com/users/yars068/followers","following_url":"https://api.github.com/users/yars068/following{/other_user}","gists_url":"https://api.github.com/users/yars068/gists{/gist_id}","starred_url":"https://api.github.com/users/yars068/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yars068/subscriptions","organizations_url":"https://api.github.com/users/yars068/orgs","repos_url":"https://api.github.com/users/yars068/repos","events_url":"https://api.github.com/users/yars068/events{/privacy}","received_events_url":"https://api.github.com/users/yars068/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/blueman-project/blueman/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"infirit","id":3465730,"avatar_url":"https://avatars.githubusercontent.com/u/3465730?v=3","gravatar_id":"","url":"https://api.github.com/users/infirit","html_url":"https://github.com/infirit","followers_url":"https://api.github.com/users/infirit/followers","following_url":"https://api.github.com/users/infirit/following{/other_user}","gists_url":"https://api.github.com/users/infirit/gists{/gist_id}","starred_url":"https://api.github.com/users/infirit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infirit/subscriptions","organizations_url":"https://api.github.com/users/infirit/orgs","repos_url":"https://api.github.com/users/infirit/repos","events_url":"https://api.github.com/users/infirit/events{/privacy}","received_events_url":"https://api.github.com/users/infirit/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/blueman-project/blueman/milestones/1","html_url":"https://github.com/blueman-project/blueman/milestones/2.0","labels_url":"https://api.github.com/repos/blueman-project/blueman/milestones/1/labels","id":477715,"number":1,"title":"2.0","description":"","creator":{"login":"cschramm","id":464848,"avatar_url":"https://avatars.githubusercontent.com/u/464848?v=3","gravatar_id":"","url":"https://api.github.com/users/cschramm","html_url":"https://github.com/cschramm","followers_url":"https://api.github.com/users/cschramm/followers","following_url":"https://api.github.com/users/cschramm/following{/other_user}","gists_url":"https://api.github.com/users/cschramm/gists{/gist_id}","starred_url":"https://api.github.com/users/cschramm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschramm/subscriptions","organizations_url":"https://api.github.com/users/cschramm/orgs","repos_url":"https://api.github.com/users/cschramm/repos","events_url":"https://api.github.com/users/cschramm/events{/privacy}","received_events_url":"https://api.github.com/users/cschramm/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":51,"state":"open","created_at":"2013-11-07T16:22:04Z","updated_at":"2015-05-11T19:38:26Z","due_on":null,"closed_at":null},"comments":25,"created_at":"2015-05-08T17:11:55Z","updated_at":"2015-05-11T19:38:26Z","closed_at":"2015-05-11T19:38:26Z","body":"Hi!\r\nAfter [bug #277](https://github.com/blueman-project/blueman/issues/277), I managed to get working blueman, but I occured an error:\r\n```\r\n$ blueman-applet \r\nblueman-applet version 1.99.alpha2 starting\r\n_________\r\nLoad (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:60)\r\n['RecentConns', 'NMDUNSupport', 'AuthAgent', 'PPPSupport', 'Menu', 'StatusIcon', 'ExitItem', 'StandardItems', 'SerialManager', 'ShowConnected', 'KillSwitch', 'TransferService', 'DhcpClient', 'PowerManager', 'GameControllerWakelock', 'DiscvManager', 'NMPANSupport', 'DBusService', 'Networking', 'Headset', 'AppIndicator', 'NetUsage'] \r\n_________\r\nget_interface_version (/usr/lib64/python2.7/site-packages/blueman/bluez/BlueZInterface.py:13)\r\nDetected BlueZ 5 \r\nERROR:root:Could not find any typelib for AppIndicator3\r\n_________\r\nLoad (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:60)\r\nUnable to load plugin module AppIndicator\r\ncannot import name AppIndicator3 \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.StatusIcon.StatusIcon'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.DBusService.DBusService'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.Networking.Networking'> \r\n_________\r\nload_nap_settings (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/Networking.py:36)\r\nLoading NAP settings \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.Menu.Menu'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.PowerManager.PowerManager'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.NMDUNSupport.NMDUNSupport'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.Headset.Headset'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.ExitItem.ExitItem'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.KillSwitch.KillSwitch'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.AuthAgent.AuthAgent'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.ShowConnected.ShowConnected'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nNot loading DhcpClient because it's conflict has higher priority \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.TransferService.TransferService'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.SerialManager.SerialManager'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.RecentConns.RecentConns'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.NetUsage.NetUsage'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nNot loading PPPSupport because it's conflict has higher priority \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.StandardItems.StandardItems'> \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.DiscvManager.DiscvManager'> \r\n_________\r\nupdate_menuitems (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/DiscvManager.py:123)\r\nwarning: Adapter is None \r\n_________\r\n__load_plugin (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:133)\r\nloading <class 'blueman.plugins.applet.NMPANSupport.NMPANSupport'> \r\nTraceback (most recent call last):\r\n  File \"/usr/lib64/python2.7/site-packages/gi/overrides/GLib.py\", line 700, in <lambda>\r\n    func_fdtransform = lambda _, cond, data: func(channel, cond, data)\r\n  File \"/usr/lib64/python2.7/site-packages/gi/overrides/GLib.py\", line 635, in <lambda>\r\n    return (lambda a1, a2, data: callback(a1, a2, *data), user_data)\r\n  File \"/usr/lib64/python2.7/site-packages/blueman/plugins/applet/KillSwitch.py\", line 62, in <lambda>\r\n    lambda *args: ref() and ref().io_event(*args))\r\n  File \"/usr/lib64/python2.7/site-packages/blueman/plugins/applet/KillSwitch.py\", line 81, in io_event\r\n    (idx, type, op, soft, hard) = struct.unpack(\"IBBBB\", data)\r\nTypeError: Struct() argument 1 must be string, not unicode\r\n_________\r\non_obex_owner_changed (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/TransferService.py:55)\r\nobex owner changed:  \r\n_________\r\non_dbus_name_owner_change (/usr/bin/blueman-applet:94)\r\norg.bluez owner changed to :1.1 \r\n_________\r\nset_nap (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/Networking.py:65)\r\nset nap False \r\n_________\r\nregister_agent (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/AuthAgent.py:63)\r\nRegistering agent \r\n_________\r\ntry_start_ods (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/TransferService.py:49)\r\nCould not acquire obex-data-server org.freedesktop.DBus.Error.ServiceUnknown: The name org.openobex was not provided by any .service files \r\n_________\r\n__init__ (/usr/lib64/python2.7/site-packages/blueman/main/Device.py:26)\r\ncaching initial properties \r\n_________\r\n__init__ (/usr/lib64/python2.7/site-packages/blueman/main/Device.py:26)\r\ncaching initial properties \r\n_________\r\n__init__ (/usr/lib64/python2.7/site-packages/blueman/main/Device.py:26)\r\ncaching initial properties \r\n_________\r\ninitialize (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/RecentConns.py:144)\r\nrebuilding menu \r\n_________\r\nenumerate_connections (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/ShowConnected.py:50)\r\nFound 0 existing connections \r\n_________\r\nRequestPowerState (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/PowerManager.py:131)\r\nRequesting True \r\n_________\r\non_power_state_change_requested (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/KillSwitch.py:119)\r\nTrue \r\n_________\r\nUpdatePowerState (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/PowerManager.py:159)\r\noff False \r\nfoff False \r\non True \r\ncurrent state True \r\nnew state True \r\n_________\r\ncheck (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/PowerManager.py:119)\r\ncallbacks done \r\n_________\r\nset_adapter_state (/usr/lib64/python2.7/site-packages/blueman/plugins/applet/PowerManager.py:90)\r\nTrue \r\nTraceback (most recent call last):\r\n  File \"/usr/bin/blueman-manager\", line 278, in <module>\r\n    Blueman()\r\n  File \"/usr/bin/blueman-manager\", line 59, in __init__\r\n    self.Plugins.Load()\r\n  File \"/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py\", line 92, in Load\r\n    dprint(\"Unable to load plugin module %s\\n%s\" % (plugin, e))\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 15: ordinal not in range(128)\r\n^C\r\n\r\n```\r\nHere is a patch which should fix issue above (as #277), but in KillSwitch plugin:\r\n```\r\n*** ./blueman/plugins/applet/KillSwitch.py.orig\t2015-05-08 13:27:15.542219566 +0300\r\n--- ./blueman/plugins/applet/KillSwitch.py\t2015-05-08 13:28:19.674057738 +0300\r\n***************\r\n*** 78,84 ****\r\n              dprint(\"Bad rfkill event size\")\r\n              return True\r\n  \r\n!         (idx, type, op, soft, hard) = struct.unpack(\"IBBBB\", data)\r\n  \r\n          if type != RFKILL_TYPE_BLUETOOTH:\r\n              return True\r\n--- 78,84 ----\r\n              dprint(\"Bad rfkill event size\")\r\n              return True\r\n  \r\n!         (idx, type, op, soft, hard) = struct.unpack(str(\"IBBBB\"), data)\r\n  \r\n          if type != RFKILL_TYPE_BLUETOOTH:\r\n              return True\r\n```\r\nBut after rebuilding and upgrading the package, I have 2nd issue (see end of listing above, where PluginManager). That should be fixed with these patch:\r\n```\r\n*** ./blueman/main/PluginManager.py.orig\t2015-05-08 11:48:02.000000000 +0300\r\n--- ./blueman/main/PluginManager.py\t2015-05-08 14:21:55.062109113 +0300\r\n***************\r\n*** 89,95 ****\r\n              try:\r\n                  __import__(self.module_path.__name__ + \".%s\" % plugin, None, None, [])\r\n              except ImportError as e:\r\n!                 dprint(\"Unable to load plugin module %s\\n%s\" % (plugin, e))\r\n  \r\n          for cls in self.plugin_class.__subclasses__():\r\n              self.__classes[cls.__name__] = cls\r\n--- 89,95 ----\r\n              try:\r\n                  __import__(self.module_path.__name__ + \".%s\" % plugin, None, None, [])\r\n              except ImportError as e:\r\n!                 dprint(\"Unable to load plugin module %s\\n%s\" % (str(plugin).encode('UTF-8'), e)\r\n  \r\n          for cls in self.plugin_class.__subclasses__():\r\n              self.__classes[cls.__name__] = cls\r\n```\r\nBut after this patch applying, I have a issue again:\r\n```\r\n$ blueman-applet \r\nTraceback (most recent call last):\r\n  File \"/usr/bin/blueman-applet\", line 43, in <module>\r\n    from blueman.main.PluginManager import PersistentPluginManager\r\n  File \"/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py\", line 94\r\n    for cls in self.plugin_class.__subclasses__():\r\n                                                 ^\r\nSyntaxError: invalid syntax\r\n```\r\nI'm is not a guru of Python, and I don't know how to fix it, unfortunately."}}