[Bug 1157687] Re: Upgrade to raring fails in prerm

Timmie 1157687 at bugs.launchpad.net
Thu May 9 21:11:12 UTC 2013


here's a workaround:
http://stackoverflow.com/a/16299628

If you are using virtualenvwrapper then you can recreate the virtualenv
on top of the existing one (with no environment currently active):

mkvirtualenv <existing name>

which should pull in the latest (upgraded) python version from the
system and fix any mismatch errors.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1157687

Title:
  Upgrade to raring fails in prerm

Status in Virtualenv: library isolated for Python:
  New
Status in “python2.7” package in Ubuntu:
  Fix Released
Status in “python2.7” package in Debian:
  Fix Released

Bug description:
  During an upgrade to raring (from quantal), the prerm script tries to
  use things that are not defined.  There are broken Dependencies in the
  package.

  ----

  Preparing to replace python-novaclient 1:2.9.0-0ubuntu1 (using .../python-novaclient_1%3a2.11.1-0ubuntu1_all.deb) ...
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site.py", line 562, in <module>
      main()
    File "/usr/lib/python2.7/site.py", line 544, in main
      known_paths = addusersitepackages(known_paths)
    File "/usr/lib/python2.7/site.py", line 271, in addusersitepackages
      user_site = getusersitepackages()
    File "/usr/lib/python2.7/site.py", line 246, in getusersitepackages
      user_base = getuserbase() # this will also set USER_BASE
    File "/usr/lib/python2.7/site.py", line 236, in getuserbase
      USER_BASE = get_config_var('userbase')
    File "/usr/lib/python2.7/sysconfig.py", line 548, in get_config_var
      return get_config_vars().get(name)
    File "/usr/lib/python2.7/sysconfig.py", line 475, in get_config_vars
      import re
    File "/usr/lib/python2.7/re.py", line 105, in <module>
      import sre_compile
    File "/usr/lib/python2.7/sre_compile.py", line 14, in <module>
      import sre_parse
    File "/usr/lib/python2.7/sre_parse.py", line 17, in <module>
      from sre_constants import *
    File "/usr/lib/python2.7/sre_constants.py", line 18, in <module>
      from _sre import MAXREPEAT
  ImportError: cannot import name MAXREPEAT
  dpkg: warning: subprocess old pre-removal script returned error exit status 1
  dpkg: trying script from the new package instead ...
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site.py", line 562, in <module>
      main()
    File "/usr/lib/python2.7/site.py", line 544, in main
      known_paths = addusersitepackages(known_paths)
    File "/usr/lib/python2.7/site.py", line 271, in addusersitepackages
      user_site = getusersitepackages()
    File "/usr/lib/python2.7/site.py", line 246, in getusersitepackages
      user_base = getuserbase() # this will also set USER_BASE
    File "/usr/lib/python2.7/site.py", line 236, in getuserbase
      USER_BASE = get_config_var('userbase')
    File "/usr/lib/python2.7/sysconfig.py", line 548, in get_config_var
      return get_config_vars().get(name)
    File "/usr/lib/python2.7/sysconfig.py", line 475, in get_config_vars
      import re
    File "/usr/lib/python2.7/re.py", line 105, in <module>
      import sre_compile
    File "/usr/lib/python2.7/sre_compile.py", line 14, in <module>
      import sre_parse
    File "/usr/lib/python2.7/sre_parse.py", line 17, in <module>
      from sre_constants import *
    File "/usr/lib/python2.7/sre_constants.py", line 18, in <module>
      from _sre import MAXREPEAT
  ImportError: cannot import name MAXREPEAT
  dpkg: error processing /var/cache/apt/archives/python-novaclient_1%3a2.11.1-0ubuntu1_all.deb (--unpack):
   subprocess new pre-removal script returned error exit status 1
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site.py", line 562, in <module>
      main()
    File "/usr/lib/python2.7/site.py", line 544, in main
      known_paths = addusersitepackages(known_paths)
    File "/usr/lib/python2.7/site.py", line 271, in addusersitepackages
      user_site = getusersitepackages()
    File "/usr/lib/python2.7/site.py", line 246, in getusersitepackages
      user_base = getuserbase() # this will also set USER_BASE
    File "/usr/lib/python2.7/site.py", line 236, in getuserbase
      USER_BASE = get_config_var('userbase')
    File "/usr/lib/python2.7/sysconfig.py", line 548, in get_config_var
      return get_config_vars().get(name)
    File "/usr/lib/python2.7/sysconfig.py", line 475, in get_config_vars
      import re
    File "/usr/lib/python2.7/re.py", line 105, in <module>
      import sre_compile
    File "/usr/lib/python2.7/sre_compile.py", line 14, in <module>
      import sre_parse
    File "/usr/lib/python2.7/sre_parse.py", line 17, in <module>
      from sre_constants import *
    File "/usr/lib/python2.7/sre_constants.py", line 18, in <module>
      from _sre import MAXREPEAT
  ImportError: cannot import name MAXREPEAT
  dpkg: error while cleaning up:
   subprocess installed post-installation script returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/virtualenv/+bug/1157687/+subscriptions




More information about the foundations-bugs mailing list