← Back to team overview

touch-packages team mailing list archive

[Bug 1444347] Re: /usr/bin/aa-clickhook:ImportError:/usr/bin/aa-clickhook@14:/usr/lib/python3/dist-packages/apparmor/click.py@15:/usr/lib/python3.4/ctypes/__init__.py@7

 

objdump doesn't exist on the device, so I copied the python3.4 binary
over to my desktop.  Running that command doesn't produce any output.
(Just objdump -T alone does, so I assume it's working but producing
nothing that grep matches.)

FWIW, it looks like the only use for ctypes in click.py is to import the
nih_dbus_path() function.  But you can just write it in python in about
as many lines as it took to import it:

def encode_byte(b):
    if ord(b'a') <= b <= ord(b'z') or ord(b'A') <= b <= ord(b'Z') or ord(b'0') <= b <= ord(b'9'):
        return bytes([b])
    return ('_%0.2x' % b).encode()

def my_dbus_path(x, *args):
    return b'/'.join(b''.join(encode_byte(b) for b in arg) for arg in args if arg is not None)

It probably doesn't fail in the same ways, but for a few tests with
valid imports, it seems to work.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click-apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1444347

Title:
  /usr/bin/aa-clickhook:ImportError:/usr/bin/aa-
  clickhook@14:/usr/lib/python3/dist-
  packages/apparmor/click.py@15:/usr/lib/python3.4/ctypes/__init__.py@7

Status in click-apparmor package in Ubuntu:
  Confirmed
Status in python3.4 package in Ubuntu:
  New

Bug description:
  The Ubuntu Error Tracker has been receiving reports about a problem
  regarding click-apparmor.  This problem was most recently seen with
  version 0.3.6, the problem page at
  https://errors.ubuntu.com/problem/76f68536265ec2ed46837fd3f35abbda886cb568
  contains more details.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click-apparmor/+bug/1444347/+subscriptions


References