Package: python-pip-whl
Version: 1.5.6-5
Severity: important

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
     I am working in venvs managed by virtualenvwrapper. I used
     `add2virtualenv` to add a subpath of something that was already on
     the path to the path of the current virtual environment.
     add2virtualenv 

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
     pip install <some_package> would result in the following traceback:
     nikhil@nikhildev:~/dev/dsff$ workon dsff
     (dsff)nikhil@nikhildev:~/dev/dsff$ pip install -U pip --force-reinstal
     Traceback (most recent call last):
       File "/home/nikhil/.virtualenvs/dsff/bin/pip", line 7, in <module>
         from pip import main
       File 
"/home/nikhil/.virtualenvs/dsff/local/lib/python2.7/site-packages/pip/__init__.py",
 line 74, in <module>
         from pip.vcs import git, mercurial, subversion, bazaar  # noqa
       File 
"/home/nikhil/.virtualenvs/dsff/local/lib/python2.7/site-packages/pip/vcs/mercurial.py",
 line 9, in <module>
         from pip.download import path_to_url
       File 
"/home/nikhil/.virtualenvs/dsff/local/lib/python2.7/site-packages/pip/download.py",
 line 22, in <module>
         import requests, six
       File 
"/home/nikhil/.virtualenvs/dsff/lib/python-wheels/requests-2.4.3-py2.py3-none-any.whl/requests/__init__.py",
 line 68, in <module>
         
       File 
"/home/nikhil/.virtualenvs/dsff/lib/python-wheels/requests-2.4.3-py2.py3-none-any.whl/requests/__init__.py",
 line 63, in _attach_namespace
         
       File 
"/home/nikhil/dev/dsff/dsff/contrib/sites/migrations/0001_initial.py", line 5, 
in <module>
         import django.contrib.sites.models
       File 
"/home/nikhil/.virtualenvs/dsff/local/lib/python2.7/site-packages/django/contrib/sites/models.py",
 line 78, in <module>
         class Site(models.Model):
       File 
"/home/nikhil/.virtualenvs/dsff/local/lib/python2.7/site-packages/django/contrib/sites/models.py",
 line 81, in Site
         validators=[_simple_domain_name_validator])
       File 
"/home/nikhil/.virtualenvs/dsff/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py",
 line 1081, in __init__
         super(CharField, self).__init__(*args, **kwargs)
       File 
"/home/nikhil/.virtualenvs/dsff/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py",
 line 161, in __init__
         self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE
       File 
"/home/nikhil/.virtualenvs/dsff/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 48, in __getattr__
         self._setup(name)
       File 
"/home/nikhil/.virtualenvs/dsff/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 42, in _setup
         % (desc, ENVIRONMENT_VARIABLE))
     django.core.exceptions.ImproperlyConfigured: Requested setting 
DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either 
define the environment variable DJANGO_SETTINGS_MODULE or call 
settings.configure() before accessing settings.

   * What outcome did you expect instead?
   For the package to be reinstalled. This happened with the package
   premailer too.
   
   * The Fix:
   curl https://bootstrap.pypa.io/get-pip.py 
   python get-pip.py --upgrade --force-reinstall # inside venv




-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_ZA.utf8, LC_CTYPE=en_ZA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-pip-whl depends on:
ii  python-chardet-whl     2.3.0-1
ii  python-colorama-whl    0.3.2-1
ii  python-distlib-whl     0.1.9-1
ii  python-html5lib-whl    0.999-3
ii  python-requests-whl    2.4.3-6
ii  python-setuptools-whl  5.5.1-1
ii  python-six-whl         1.8.0-1
ii  python-urllib3-whl     1.9.1-3

python-pip-whl recommends no packages.

python-pip-whl suggests no packages.

-- no debconf information

_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to