← Back to team overview

touch-packages team mailing list archive

[Bug 1378037] Re: ImportError: cannot import name 'click'

 

If you are upgrading from 0.2.11.1 to 0.2.11.2 errors again!
reinstall python3-apparmor-click not help.

paul@ubuntu:~$ sudo dpkg-reconfigure click-apparmor
Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 61, in main
    %s""") % commands.help_text())
  File "/usr/lib/python3/dist-packages/click/commands/__init__.py", line 53, in help_text
    mod = load_command(command)
  File "/usr/lib/python3/dist-packages/click/commands/__init__.py", line 45, in load_command
    return importlib.import_module("click.commands.%s" % command)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/click/commands/build.py", line 26, in <module>
    from click.build import ClickBuildError, ClickBuilder
ImportError: No module named 'click.build'

-- 
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/1378037

Title:
  ImportError: cannot import name 'click'

Status in “click-apparmor” package in Ubuntu:
  Invalid

Bug description:
  :~$ LANG=en sudo apt-get install apparmor-easyprof-ubuntu
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  apparmor-easyprof-ubuntu is already the newest version.
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  1 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue? [Y/n] y
  perl: warning: Setting locale failed.
  perl: warning: Please check that your locale settings:
          LANGUAGE = "ru_UA:ru",
          LC_ALL = (unset),
          LANG = "en"
      are supported and installed on your system.
  perl: warning: Falling back to the standard locale ("C").
  locale: Cannot set LC_CTYPE to default locale: No such file or directory
  locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  locale: Cannot set LC_ALL to default locale: No such file or directory
  Setting up apparmor-easyprof-ubuntu (1.2.34) ...
  (may take a while)
  Traceback (most recent call last):
    File "/usr/bin/aa-clickhook", line 14, in <module>
      from apparmor import click
  ImportError: cannot import name 'click'
  dpkg: error processing package apparmor-easyprof-ubuntu (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   apparmor-easyprof-ubuntu
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: apparmor-easyprof-ubuntu 1.2.34
  ProcVersionSignature: Ubuntu 3.16.0-20.27-generic 3.16.3
  Uname: Linux 3.16.0-20-generic x86_64
  ApportVersion: 2.14.7-0ubuntu3
  Architecture: amd64
  Date: Mon Oct  6 20:35:15 2014
  InstallationDate: Installed on 2014-07-25 (73 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=ru_UA:ru
   TERM=xterm
   PATH=(custom, no user)
   LANG=ru_UA.UTF-8
   SHELL=/bin/bash
  SourcePackage: apparmor-easyprof-ubuntu
  UpgradeStatus: No upgrade log present (probably fresh install)

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


References