← Back to team overview

touch-packages team mailing list archive

[Bug 1486841] Re: from click import commands: ImportError: cannot import name 'commands'

 

Colin,

Thank you for the suggestion!  I generated the strace output as you
suggested [see attached file] and looked through it before attaching it.
I realized it was looking in my ~/.local/ directory.  So, I guessed [I
only know some Python...not too knowledgeable about it] renaming
~/.local/lib/python3.4/ might help and indeed it worked and click
installed successfully.

Of course, I don't know if it will solve other people's problems, but it
solved mine.  Hopefully the attached strace output can help you come up
with a better solution for others?

I'm not too sure what I've broken by renaming that directory...I guess
as it's local to my home directory, it should be fine.

Thank you!


** Attachment added: "strace output for running click"
   https://bugs.launchpad.net/ubuntu/+source/click/+bug/1486841/+attachment/4524449/+files/click.trace

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

Title:
  from click import commands: ImportError: cannot import name 'commands'

Status in click package in Ubuntu:
  Incomplete

Bug description:
  Fails on startup

  ProblemType: Package
  DistroRelease: Ubuntu 15.04
  Package: click-apparmor 0.3.8
  ProcVersionSignature: Ubuntu 3.19.0-25.26-generic 3.19.8-ckt2
  Uname: Linux 3.19.0-25-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.17.2-0ubuntu1.2
  Architecture: amd64
  Date: Wed Aug 19 13:58:31 2015
  DuplicateSignature: package:click-apparmor:0.3.8:subprocess installed post-installation script returned error exit status 1
  ErrorMessage: subprocess installed post-installation script returned error exit status 1
  InstallationDate: Installed on 2015-07-19 (31 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
  RelatedPackageVersions:
   dpkg 1.17.25ubuntu1
   apt  1.0.9.7ubuntu4.1
  SourcePackage: click-apparmor
  Title: package click-apparmor 0.3.8 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

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


References