Public bug reported:

Installing a minimal virtualenv on Trusty Tahr (using libpython-minimal
2.7.10-4~14.04), I ran into crashes because:

      File "/usr/lib/python2.7/ssl.py", line 491, in inner
        import configparser
    ImportError: No module named configparser

Looking at the code in ssl.py, it uses "import configparser" even though
the package is called "ConfigParser" in Python 2.7 (it changed in 3.0),
this means that a clean virtualenv cannot install any packages using
easy_install (since they're served over an https connection which uses
the code in ssl.py).

As a workaround, you can `pip install configparser` to install the
package under the 3.0 name or change the code to be `import ConfigParser
as configparser` to import the correct package.

** Affects: python2.7 (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  libpython2.7 uses the 3.x name for ConfigParser

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1513565/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to