New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setuptools 34.1.1: AttributeError: 'module' object has no attribute 'specifiers' #967

Closed
kradan opened this Issue Feb 11, 2017 · 15 comments

Comments

Projects
None yet
4 participants
@kradan

kradan commented Feb 11, 2017

Setuptools's known problem installing itself:

$ easy_install -U setuptools
Searching for setuptools
Reading https://pypi.python.org/simple/setuptools/                      
Downloading https://pypi.python.org/packages/e2/51/3ea582a6d64dcd36858a10de31d43ca8ea0a3be5386dd0caf6503167cdfb/setuptools-34.1.1.zip#md5=a5582186dfd61820e6edc3aecde6f93$
Best match: setuptools 34.1.1                                           
Processing setuptools-34.1.1.zip     
Writing /tmp/easy_install-w7eMBr/setuptools-34.1.1/setup.cfg
Running setuptools-34.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-w7eMBr/setuptools-34.1.1/egg-dist-tmp-Z7oPcP
Traceback (most recent call last):                   
  File "/srv/mediagoblin.latest/bin/easy_install", line 11, in <module>
    sys.exit(main())
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 2270, in main
    **kw
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 411, in run
    self.easy_install(spec, not self.no_deps)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 674, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 700, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 881, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1120, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1106, in run_setup
    run_setup(setup_script, args)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 258, in run_setup
    raise
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)                                     
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 169, in save_modules
    saved_exc.resume()
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 144, in resume
    six.reraise(type, exc, self._tb)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 157, in save_modules
    yield saved
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 255, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 285, in run
    return func()
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in runner
    _execfile(setup_script, ns)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/sandbox.py", line 47, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-w7eMBr/setuptools-34.1.1/setup.py", line 191, in <module>

  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/dist.py", line 320, in __init__
    _Distribution.__init__(self, attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/dist.py", line 387, in finalize_options
    ep.load()(self, ep.name, value)
  File "/srv/mediagoblin.latest/lib/python2.7/site-packages/setuptools/dist.py", line 166, in check_specifier
    except packaging.specifiers.InvalidSpecifier as error:
AttributeError: 'module' object has no attribute 'specifiers'

Problable cause are mixed global and local (virtualenv) libraries.

@jaraco

This comment has been minimized.

Member

jaraco commented Feb 11, 2017

You probably don't have a required version of packaging present. I think 16.8 is the version you need.

@kradan

This comment has been minimized.

kradan commented Feb 11, 2017

Nope, must be something else. All dependencies are satisfied.

$ pip freeze|grep packaging
packaging==16.8

@jaraco

This comment has been minimized.

Member

jaraco commented Feb 11, 2017

It's odd the behavior you're seeing - because packaging should have a specifiers module:

$ python
Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13) 
>>> import setuptools.dist
>>> setuptools.dist.packaging.specifiers
<module 'packaging.specifiers' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/packaging/specifiers.py'>

I wonder if the issue is brought about by the sandbox logic, which does seek to hide setuptools from itself to support a self-install.

@jaraco

This comment has been minimized.

Member

jaraco commented Feb 11, 2017

Testing that hypothesis, it doesn't seem the sandbox.setup_context can cause the issue:

>>> from setuptools import sandbox
>>> with sandbox.setup_context('.'):
...   import setuptools.dist
...   setuptools.dist.packaging.specifiers
... 
<module 'packaging.specifiers' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/packaging/specifiers.py'>
@jaraco

This comment has been minimized.

Member

jaraco commented Feb 11, 2017

I'm not able to replicate your failure. In a clean environment, setuptools is able to upgrade itself fine, even from a pip installed setuptools:

$ python -m virtualenv ~/.virtualenvs/issue-967        
Using base prefix '/Library/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/jaraco/.virtualenvs/issue-967/bin/python3
Also creating executable in /Users/jaraco/.virtualenvs/issue-967/bin/python
Installing setuptools, pip, wheel...done.
$ .virtualenvs/issue-967/bin/easy_install --version
setuptools 34.1.1 from /Users/jaraco/.virtualenvs/issue-967/lib/python3.6/site-packages (Python 3.6)
$ .virtualenvs/issue-967/bin/pip install setuptools==28.8.0
Collecting setuptools==28.8.0
  Downloading setuptools-28.8.0-py2.py3-none-any.whl (472kB)
    100% |████████████████████████████████| 481kB 2.0MB/s 
Installing collected packages: setuptools
  Found existing installation: setuptools 34.1.1
    Uninstalling setuptools-34.1.1:
      Successfully uninstalled setuptools-34.1.1
Successfully installed setuptools-28.8.0
$ .virtualenvs/issue-967/bin/easy_install -U setuptools    
Searching for setuptools
Reading https://pypi.python.org/simple/setuptools/
Downloading https://pypi.python.org/packages/e2/51/3ea582a6d64dcd36858a10de31d43ca8ea0a3be5386dd0caf6503167cdfb/setuptools-34.1.1.zip#md5=a5582186dfd61820e6edc3aecde6f93c
Best match: setuptools 34.1.1
Processing setuptools-34.1.1.zip
Writing /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-4ixw3119/setuptools-34.1.1/setup.cfg
Running setuptools-34.1.1/setup.py -q bdist_egg --dist-dir /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-4ixw3119/setuptools-34.1.1/egg-dist-tmp-f61safxq
warning: no files found matching '*' under directory 'setuptools/_vendor'
Copying setuptools-34.1.1-py3.6.egg to /Users/jaraco/.virtualenvs/issue-967/lib/python3.6/site-packages
Adding setuptools 34.1.1 to easy-install.pth file
Installing easy_install script to /Users/jaraco/.virtualenvs/issue-967/bin
Installing easy_install-3.6 script to /Users/jaraco/.virtualenvs/issue-967/bin

Installed /Users/jaraco/.virtualenvs/issue-967/lib/python3.6/site-packages/setuptools-34.1.1-py3.6.egg
Processing dependencies for setuptools
Finished processing dependencies for setuptools
$ .virtualenvs/issue-967/bin/easy_install --version        
setuptools 34.1.1 from /Users/jaraco/.virtualenvs/issue-967/lib/python3.6/site-packages/setuptools-34.1.1-py3.6.egg (Python 3.6)

Can you help distill what it is about your environment that triggers the failure?

@kradan

This comment has been minimized.

kradan commented Feb 11, 2017

Can you help distill what it is about your environment that triggers
the failure?

I will try to narrow it down tonight. The virtualenv is on mediagoblin's master branch:

git clone git://git.savannah.gnu.org/mediagoblin.git mg && cd mg && git checkout master
./bootstrap.sh && ./configure && make
./bin/python setup.py develop --upgrade

This may not be the minimal setup to reproduce but it raised AttributeError quite persistent on my end.

@kradan

This comment has been minimized.

kradan commented Feb 12, 2017

here is a complete log:

On branch stable
$ ./bin/python setup.py develop --upgrade
running
develop
running egg_info
writing requirements to mediagoblin.egg-info/requires.txt                                                                                                                 
writing mediagoblin.egg-info/PKG-INFO                                                                                                                                     
writing top-level names to mediagoblin.egg-info/top_level.txt                                                                                                             
writing dependency_links to mediagoblin.egg-info/dependency_links.txt
writing entry points to mediagoblin.egg-info/entry_points.txt
reading manifest file 'mediagoblin.egg-info/SOURCES.txt'                              
reading manifest template 'MANIFEST.in'
writing manifest file 'mediagoblin.egg-info/SOURCES.txt'
running build_ext
Creating /srv/mediagoblin/lib/python2.7/site-packages/mediagoblin.egg-link (link to .)
mediagoblin 0.9.0 is already the active version in easy-install.pth
Installing gmg script to /srv/mediagoblin/bin

Installed /srv/mediagoblin
Processing dependencies for mediagoblin==0.9.0
Searching for ExifRead==2.1.2
Reading https://pypi.python.org/simple/ExifRead/
Best match: ExifRead 2.1.2
Processing ExifRead-2.1.2-py2.7.egg
ExifRead 2.1.2 is already the active version in easy-install.pth
Installing EXIF.py script to /srv/mediagoblin/bin

Using /srv/mediagoblin/lib/python2.7/site-packages/ExifRead-2.1.2-py2.7.egg
Searching for mock==1.0.1
Reading https://pypi.python.org/simple/mock/
Best match: mock 1.0.1
Processing mock-1.0.1-py2.7.egg
mock 1.0.1 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/mock-1.0.1-py2.7.egg
Searching for sqlalchemy-migrate==0.10.0
Reading https://pypi.python.org/simple/sqlalchemy-migrate/
Best match: sqlalchemy-migrate 0.10.0
Processing sqlalchemy_migrate-0.10.0-py2.7.egg
sqlalchemy-migrate 0.10.0 is already the active version in easy-install.pth
Installing migrate script to /srv/mediagoblin/bin
Installing migrate-repository script to /srv/mediagoblin/bin


Processing sqlalchemy_migrate-0.10.0-py2.7.egg                              
sqlalchemy-migrate 0.10.0 is already the active version in easy-install.pth                                        
Installing migrate script to /srv/mediagoblin/bin                            
Installing migrate-repository script to /srv/mediagoblin/bin                                                       
                                                                                        
Using /srv/mediagoblin/lib/python2.7/site-packages/sqlalchemy_migrate-0.10.0-py2.7.egg                             
Searching for PyLD==0.7.1                                                              
Reading https://pypi.python.org/simple/PyLD/                                                                             
Best match: PyLD 0.7.1                                                               
Processing PyLD-0.7.1-py2.7.egg                                                                                  
PyLD 0.7.1 is already the active version in easy-install.pth                
                                                                                                   
Using /srv/mediagoblin/lib/python2.7/site-packages/PyLD-0.7.1-py2.7.egg                  
Searching for requests==2.12.4                                         
Reading https://pypi.python.org/simple/requests/            
Best match: requests 2.12.4                                                                            
Processing requests-2.12.4-py2.7.egg                                   
requests 2.12.4 is already the active version in easy-install.pth
                                              
Using /srv/mediagoblin/lib/python2.7/site-packages/requests-2.12.4-py2.7.egg
Searching for PasteScript==2.0.2 
Reading https://pypi.python.org/simple/PasteScript/           
Best match: PasteScript 2.0.2                          
Processing PasteScript-2.0.2-py2.7.egg                
PasteScript 2.0.2 is already the active version in easy-install.pth
Installing paster script to /srv/mediagoblin/bin        

Using /srv/mediagoblin/lib/python2.7/site-packages/PasteScript-2.0.2-py2.7.egg
Searching for PasteDeploy==1.5.2
Reading https://pypi.python.org/simple/PasteDeploy/
Best match: PasteDeploy 1.5.2                                                                                                                                             
Processing PasteDeploy-1.5.2-py2.7.egg
PasteDeploy 1.5.2 is already the active version in easy-install.pth
                                 
Using /srv/mediagoblin/lib/python2.7/site-packages/PasteDeploy-1.5.2-py2.7.egg
Searching for jsonschema==2.5.1                                              
Reading https://pypi.python.org/simple/jsonschema/            
Best match: jsonschema 2.5.1
Processing jsonschema-2.5.1-py2.7.egg                                        
jsonschema 2.5.1 is already the active version in easy-install.pth
Installing jsonschema script to /srv/mediagoblin/bin
                             
Using /srv/mediagoblin/lib/python2.7/site-packages/jsonschema-2.5.1-py2.7.egg
Searching for Unidecode==0.4.20                                    
Reading https://pypi.python.org/simple/Unidecode/
Best match: Unidecode 0.4.20                                                  
Processing Unidecode-0.4.20-py2.7.egg
Unidecode 0.4.20 is already the active version in easy-install.pth
Installing unidecode script to /srv/mediagoblin/bin                         
                                                                                                                   
Using /srv/mediagoblin/lib/python2.7/site-packages/Unidecode-0.4.20-py2.7.egg
Searching for oauthlib==2.0.1                                                                                      
Reading https://pypi.python.org/simple/oauthlib/                                        
Best match: oauthlib 2.0.1                                                                                         
Processing oauthlib-2.0.1-py2.7.egg                                                    
oauthlib 2.0.1 is already the active version in easy-install.pth                                                         
                                                                                     
Using /srv/mediagoblin/lib/python2.7/site-packages/oauthlib-2.0.1-py2.7.egg                                      
Searching for six==1.10.0                                                   
Reading https://pypi.python.org/simple/six/                                                        
Best match: six 1.10.0                                                                   
Processing six-1.10.0-py2.7.egg                                        
six 1.10.0 is already the active version in easy-install.pth
                                                                                                       
Using /srv/mediagoblin/lib/python2.7/site-packages/six-1.10.0-py2.7.egg
Searching for Sphinx==1.5.2
Reading https://pypi.python.org/simple/Sphinx/
Best match: Sphinx 1.5.2
Processing Sphinx-1.5.2-py2.7.egg
Sphinx 1.5.2 is already the active version in easy-install.pth
Installing sphinx-apidoc script to /srv/mediagoblin/bin
Installing sphinx-build script to /srv/mediagoblin/bin
Installing sphinx-quickstart script to /srv/mediagoblin/bin
Installing sphinx-autogen script to /srv/mediagoblin/bin

Using /srv/mediagoblin/lib/python2.7/site-packages/Sphinx-1.5.2-py2.7.egg
Searching for pytz==2016.10
Reading https://pypi.python.org/simple/pytz/
Downloading https://pypi.python.org/packages/a2/c1/7891c11d4f618de272f550de2dced8c63a6df523739bab27b2ad2299103a/pytz-2016.10-py2.7.egg#md5=7554a4ebad7c279fb9efbeb21163977
6
Best match: pytz 2016.10
Processing pytz-2016.10-py2.7.egg
Removing /srv/mediagoblin/lib/python2.7/site-packages/pytz-2016.10-py2.7.egg
Moving pytz-2016.10-py2.7.egg to /srv/mediagoblin/lib/python2.7/site-packages
pytz 2016.10 is already the active version in easy-install.pth

Installed /srv/mediagoblin/lib/python2.7/site-packages/pytz-2016.10-py2.7.egg
Searching for itsdangerous==0.24
Reading https://pypi.python.org/simple/itsdangerous/
Best match: itsdangerous 0.24
Processing itsdangerous-0.24-py2.7.egg
itsdangerous 0.24 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/itsdangerous-0.24-py2.7.egg
Searching for SQLAlchemy==1.1.5
Reading https://pypi.python.org/simple/SQLAlchemy/
Best match: SQLAlchemy 1.1.5                                                
Processing SQLAlchemy-1.1.5-py2.7-linux-i686.egg                                                                   
SQLAlchemy 1.1.5 is already the active version in easy-install.pth
                                                                                                                   
Using /srv/mediagoblin/lib/python2.7/site-packages/SQLAlchemy-1.1.5-py2.7-linux-i686.egg
Searching for Markdown==2.6.8                                                                                      
Reading https://pypi.python.org/simple/Markdown/                                       
Best match: Markdown 2.6.8                                                                                               
Processing Markdown-2.6.8-py2.7.egg                                                  
Markdown 2.6.8 is already the active version in easy-install.pth                                                 
Installing markdown_py script to /srv/mediagoblin/bin                       
                                                                                                   
Using /srv/mediagoblin/lib/python2.7/site-packages/Markdown-2.6.8-py2.7.egg              
Searching for configobj==5.0.6                                         
Reading https://pypi.python.org/simple/configobj/         
Best match: configobj 5.0.6                                                                            
Processing configobj-5.0.6-py2.7.egg
configobj 5.0.6 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/configobj-5.0.6-py2.7.egg
Searching for WebTest==2.0.25
Reading https://pypi.python.org/simple/WebTest/
Best match: WebTest 2.0.25
Processing WebTest-2.0.25-py2.7.egg
WebTest 2.0.25 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/WebTest-2.0.25-py2.7.egg
Searching for Babel==2.3.4
Reading https://pypi.python.org/simple/Babel/
Best match: Babel 2.3.4
Processing Babel-2.3.4-py2.7.egg
Babel 2.3.4 is already the active version in easy-install.pth
Installing pybabel script to /srv/mediagoblin/bin

Using /srv/mediagoblin/lib/python2.7/site-packages/Babel-2.3.4-py2.7.egg
Searching for Jinja2==2.8
Reading https://pypi.python.org/simple/Jinja2/
Best match: Jinja2 2.8
Processing Jinja2-2.8-py2.7.egg
Jinja2 2.8 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/Jinja2-2.8-py2.7.egg
Searching for kombu==3.0.37
Reading https://pypi.python.org/simple/kombu/
Best match: kombu 3.0.37
Processing kombu-3.0.37-py2.7.egg
kombu 3.0.37 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/kombu-3.0.37-py2.7.egg   
Searching for celery==3.1.25                                                                                       
Reading https://pypi.python.org/simple/celery/                  
Best match: celery 3.1.25                                                                                          
Processing celery-3.1.25-py2.7.egg                               
celery 3.1.25 is already the active version in easy-install.pth                                                    
Installing celery script to /srv/mediagoblin/bin                                       
Installing celeryd script to /srv/mediagoblin/bin                                                                        
Installing celeryd-multi script to /srv/mediagoblin/bin                              
Installing celerybeat script to /srv/mediagoblin/bin                                                             
                                                                            
Using /srv/mediagoblin/lib/python2.7/site-packages/celery-3.1.25-py2.7.egg                         
Searching for Werkzeug==0.11.15                                                          
Reading https://pypi.python.org/simple/Werkzeug/                       
Best match: Werkzeug 0.11.15                              
Processing Werkzeug-0.11.15-py2.7.egg                                                                  
Werkzeug 0.11.15 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/Werkzeug-0.11.15-py2.7.egg
Searching for pytest-xdist==1.15.0
Reading https://pypi.python.org/simple/pytest-xdist/
Best match: pytest-xdist 1.15.0
Processing pytest_xdist-1.15.0-py2.7.egg
pytest-xdist 1.15.0 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/pytest_xdist-1.15.0-py2.7.egg
Searching for pytest==3.0.6
Reading https://pypi.python.org/simple/pytest/
Best match: pytest 3.0.6
Processing pytest-3.0.6-py2.7.egg
pytest 3.0.6 is already the active version in easy-install.pth
Installing pytest script to /srv/mediagoblin/bin
Installing py.test script to /srv/mediagoblin/bin

Using /srv/mediagoblin/lib/python2.7/site-packages/pytest-3.0.6-py2.7.egg
Searching for py-bcrypt==0.4
Reading https://pypi.python.org/simple/py-bcrypt/
Best match: py-bcrypt 0.4
Processing py_bcrypt-0.4-py2.7-linux-i686.egg
py-bcrypt 0.4 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/py_bcrypt-0.4-py2.7-linux-i686.egg
Searching for WTForms==2.1
Reading https://pypi.python.org/simple/WTForms/
Best match: WTForms 2.1
Processing WTForms-2.1-py2.7.egg
WTForms 2.1 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/WTForms-2.1-py2.7.egg    
Searching for python-dateutil==2.5.3                                                                               
Reading https://pypi.python.org/simple/python-dateutil/        
Best match: python-dateutil 2.5.3                                                                                  
Processing python_dateutil-2.5.3-py2.7.egg                       
python-dateutil 2.5.3 is already the active version in easy-install.pth                                            
                                                                                       
Using /srv/mediagoblin/lib/python2.7/site-packages/python_dateutil-2.5.3-py2.7.egg                                       
Searching for alembic==0.8.10                         
Reading https://pypi.python.org/simple/alembic/                                                                  
Best match: alembic 0.8.10                                                  
Processing alembic-0.8.10-py2.7.egg                                                                
alembic 0.8.10 is already the active version in easy-install.pth                         
Installing alembic script to /srv/mediagoblin/bin                      
                                                          
Using /srv/mediagoblin/lib/python2.7/site-packages/alembic-0.8.10-py2.7.egg                            
Searching for waitress==1.0.2               
Reading https://pypi.python.org/simple/waitress/                         
Best match: waitress 1.0.2
Processing waitress-1.0.2-py2.7.egg                                                 
waitress 1.0.2 is already the active version in easy-install.pth
Installing waitress-serve script to /srv/mediagoblin/bin
                           
Using /srv/mediagoblin/lib/python2.7/site-packages/waitress-1.0.2-py2.7.egg
Searching for Tempita==0.5.2                                     
Reading https://pypi.python.org/simple/Tempita/
Best match: Tempita 0.5.2                                                   
Processing Tempita-0.5.2-py2.7.egg
Tempita 0.5.2 is already the active version in easy-install.pth
                           
Using /srv/mediagoblin/lib/python2.7/site-packages/Tempita-0.5.2-py2.7.egg
Searching for sqlparse==0.2.2                                    
Reading https://pypi.python.org/simple/sqlparse/
Best match: sqlparse 0.2.2                                                  
Processing sqlparse-0.2.2-py2.7.egg 
sqlparse 0.2.2 is already the active version in easy-install.pth
Installing sqlformat script to /srv/mediagoblin/bin
                                          
Using /srv/mediagoblin/lib/python2.7/site-packages/sqlparse-0.2.2-py2.7.egg
Searching for decorator==4.0.11
Reading https://pypi.python.org/simple/decorator/                                 
Best match: decorator 4.0.11  
Processing decorator-4.0.11-py2.7.egg           
decorator 4.0.11 is already the active version in easy-install.pth
                                    
Using /srv/mediagoblin/lib/python2.7/site-packages/decorator-4.0.11-py2.7.egg
Searching for pbr==1.10.0                                      
Reading https://pypi.python.org/simple/pbr/
Best match: pbr 1.10.0                                
Processing pbr-1.10.0-py2.7.egg                                                                                    
pbr 1.10.0 is already the active version in easy-install.pth   
Installing pbr script to /srv/mediagoblin/bin                                                                      
                                                                 
Using /srv/mediagoblin/lib/python2.7/site-packages/pbr-1.10.0-py2.7.egg                                            
Searching for Paste==2.0.3                                                             
Reading https://pypi.python.org/simple/Paste/                                                                            
Best match: Paste 2.0.3                               
Processing Paste-2.0.3-py2.7.egg                                                                                 
Paste 2.0.3 is already the active version in easy-install.pth               
                                                                                                   
Using /srv/mediagoblin/lib/python2.7/site-packages/Paste-2.0.3-py2.7.egg                 
Searching for functools32==3.2.3.post2                                 
Reading https://pypi.python.org/simple/functools32/
Best match: functools32 3.2.3.post2                                                                    
Processing functools32-3.2.3.post2-py2.7.egg        
functools32 3.2.3.post2 is already the active version in easy-install.pth
                                                                           
Using /srv/mediagoblin/lib/python2.7/site-packages/functools32-3.2.3.post2-py2.7.egg
Searching for imagesize==0.7.1                        
Reading https://pypi.python.org/simple/imagesize/
Best match: imagesize 0.7.1              
Processing imagesize-0.7.1-py2.7.egg                                  
imagesize 0.7.1 is already the active version in easy-install.pth
                                                                                 
Using /srv/mediagoblin/lib/python2.7/site-packages/imagesize-0.7.1-py2.7.egg
Searching for alabaster==0.7.9               
Reading https://pypi.python.org/simple/alabaster/
Best match: alabaster 0.7.9     
Processing alabaster-0.7.9-py2.7.egg                         
alabaster 0.7.9 is already the active version in easy-install.pth
                                                                        
Using /srv/mediagoblin/lib/python2.7/site-packages/alabaster-0.7.9-py2.7.egg
Searching for snowballstemmer==1.2.1              
Reading https://pypi.python.org/simple/snowballstemmer/
Best match: snowballstemmer 1.2.1              
Processing snowballstemmer-1.2.1-py2.7.egg                       
snowballstemmer 1.2.1 is already the active version in easy-install.pth
                                                                                       
Using /srv/mediagoblin/lib/python2.7/site-packages/snowballstemmer-1.2.1-py2.7.egg
Searching for docutils==0.13.1              
Reading https://pypi.python.org/simple/docutils/
Best match: docutils 0.13.1    
Processing docutils-0.13.1-py2.7.egg                        
docutils 0.13.1 is already the active version in easy-install.pth
Installing rst2odt_prepstyles.py script to /srv/mediagoblin/bin
Installing rst2html5.py script to /srv/mediagoblin/bin
Installing rst2s5.py script to /srv/mediagoblin/bin                                                                
Installing rst2xml.py script to /srv/mediagoblin/bin           
Installing rst2odt.py script to /srv/mediagoblin/bin                                                               
Installing rstpep2html.py script to /srv/mediagoblin/bin         
Installing rst2html.py script to /srv/mediagoblin/bin                                                              
Installing rst2man.py script to /srv/mediagoblin/bin                                   
Installing rst2latex.py script to /srv/mediagoblin/bin                                                                   
Installing rst2xetex.py script to /srv/mediagoblin/bin
                                                                                                                 
Using /srv/mediagoblin/lib/python2.7/site-packages/docutils-0.13.1-py2.7.egg
Searching for Pygments==2.2.0                                                                      
Reading https://pypi.python.org/simple/Pygments/                                         
Best match: Pygments 2.2.0                                             
Processing Pygments-2.2.0-py2.7.egg       
Pygments 2.2.0 is already the active version in easy-install.pth                                       
Installing pygmentize script to /srv/mediagoblin/bin

Using /srv/mediagoblin/lib/python2.7/site-packages/Pygments-2.2.0-py2.7.egg
Searching for beautifulsoup4==4.5.3
Reading https://pypi.python.org/simple/beautifulsoup4/
Best match: beautifulsoup4 4.5.3
Processing beautifulsoup4-4.5.3-py2.7.egg
beautifulsoup4 4.5.3 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/beautifulsoup4-4.5.3-py2.7.egg
Searching for WebOb==1.6.2
Reading https://pypi.python.org/simple/WebOb/
Best match: WebOb 1.6.2
Processing WebOb-1.6.2-py2.7.egg
WebOb 1.6.2 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/WebOb-1.6.2-py2.7.egg
Searching for MarkupSafe==0.23
Reading https://pypi.python.org/simple/MarkupSafe/
Best match: MarkupSafe 0.23
Processing MarkupSafe-0.23-py2.7-linux-i686.egg
MarkupSafe 0.23 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/MarkupSafe-0.23-py2.7-linux-i686.egg
Searching for amqp==1.4.9
Reading https://pypi.python.org/simple/amqp/
Best match: amqp 1.4.9
Processing amqp-1.4.9-py2.7.egg
amqp 1.4.9 is already the active version in easy-install.pth

Using /srv/mediagoblin/lib/python2.7/site-packages/amqp-1.4.9-py2.7.egg
Searching for anyjson==0.3.3
Reading https://pypi.python.org/simple/anyjson/
Best match: anyjson 0.3.3                                                                                          
Processing anyjson-0.3.3-py2.7.egg                             
anyjson 0.3.3 is already the active version in easy-install.pth                                                    
                                                     
Using /srv/mediagoblin/lib/python2.7/site-packages/anyjson-0.3.3-py2.7.egg                                         
Searching for billiard==3.3.0.23                           
Reading https://pypi.python.org/simple/billiard/                                                                         
Best match: billiard 3.3.0.23                     
Processing billiard-3.3.0.23-py2.7-linux-i686.egg                                                                
billiard 3.3.0.23 is already the active version in easy-install.pth
                                                                                                   
Using /srv/mediagoblin/lib/python2.7/site-packages/billiard-3.3.0.23-py2.7-linux-i686.egg
Searching for py==1.4.32                                       
Reading https://pypi.python.org/simple/py/
Best match: py 1.4.32                                                                                  
Processing py-1.4.32-py2.7.egg
py 1.4.32 is already the active version in easy-install.pth    
                                          
Using /srv/mediagoblin/lib/python2.7/site-packages/py-1.4.32-py2.7.egg                                
Searching for execnet==1.4.1
Reading https://pypi.python.org/simple/execnet/                                                 
Best match: execnet 1.4.1           
Processing execnet-1.4.1-py2.7.egg                                                                    
execnet 1.4.1 is already the active version in easy-install.pth
                                                                                                       
Using /srv/mediagoblin/lib/python2.7/site-packages/execnet-1.4.1-py2.7.egg
Searching for setuptools==34.1.1                                                                   
Reading https://pypi.python.org/simple/setuptools/
Downloading https://pypi.python.org/packages/e2/51/3ea582a6d64dcd36858a10de31d43ca8ea0a3be5386dd0caf6503167cdfb/setuptools-34.1.1.zip#md5=a5582186dfd61820e6edc3aecde6f93c
Best match: setuptools 34.1.1
Processing setuptools-34.1.1.zip                                                                
Writing /tmp/easy_install-F0AQpz/setuptools-34.1.1/setup.cfg
Running setuptools-34.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-F0AQpz/setuptools-34.1.1/egg-dist-tmp-eB2MbU
Traceback (most recent call last):
  File "setup.py", line 142, in <module>                                           
    "Topic :: Internet :: WWW/HTTP :: Dynamic Content"
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()                      
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands                       
    self.run_command(cmd)              
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()          
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/command/develop.py", line 36, in run   
    self.install_for_development() 
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/command/develop.py", line 150, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 757, in process_distribution
    self.easy_install(dist.as_requirement())
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 674, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 700, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 881, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1120, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1106, in run_setup
    run_setup(setup_script, args)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/sandbox.py", line 258, in run_setup
    raise
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/sandbox.py", line 169, in save_modules
    saved_exc.resume()
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/sandbox.py", line 144, in resume
    six.reraise(type, exc, self._tb)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/sandbox.py", line 157, in save_modules
    yield saved
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/sandbox.py", line 255, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/sandbox.py", line 285, in run
    return func()
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/sandbox.py", line 253, in runner
    _execfile(setup_script, ns)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/sandbox.py", line 47, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-F0AQpz/setuptools-34.1.1/setup.py", line 191, in <module>
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/dist.py", line 320, in __init__
    _Distribution.__init__(self, attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/dist.py", line 387, in finalize_options
    ep.load()(self, ep.name, value)
  File "/srv/mediagoblin/lib/python2.7/site-packages/setuptools/dist.py", line 166, in check_specifier
    except packaging.specifiers.InvalidSpecifier as error:
AttributeError: 'module' object has no attribute 'specifiers
@jaraco

This comment has been minimized.

Member

jaraco commented Feb 12, 2017

I tried replicating your steps, but when I try to use mediagoblin at stable or master, it installs setuptools 28.8.0 and doesn't encounter the error.

I tried replicating the issue with a distilled replication of what you're doing with mediagoblin, but the issue doesn't occur.

$ cat setup.py
import setuptools

setuptools.setup(
	name='proj',
	version='1.0',
	install_requires=['setuptools==34.1.1'],
)
$ python -m venv .env
$ .env/bin/pip install setuptools==34.1.1
Collecting setuptools==34.1.1
  Using cached setuptools-34.1.1-py2.py3-none-any.whl
Collecting appdirs>=1.4.0 (from setuptools==34.1.1)
  Using cached appdirs-1.4.0-py2.py3-none-any.whl
Collecting six>=1.6.0 (from setuptools==34.1.1)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting packaging>=16.8 (from setuptools==34.1.1)
  Using cached packaging-16.8-py2.py3-none-any.whl
Collecting pyparsing (from packaging>=16.8->setuptools==34.1.1)
  Using cached pyparsing-2.1.10-py2.py3-none-any.whl
Installing collected packages: appdirs, six, pyparsing, packaging, setuptools
  Found existing installation: setuptools 28.8.0
    Uninstalling setuptools-28.8.0:
      Successfully uninstalled setuptools-28.8.0
Successfully installed appdirs-1.4.0 packaging-16.8 pyparsing-2.1.10 setuptools-34.1.1 six-1.10.0
$ .env/bin/pip install setuptools==28.8.0
Collecting setuptools==28.8.0
  Using cached setuptools-28.8.0-py2.py3-none-any.whl
Installing collected packages: setuptools
  Found existing installation: setuptools 34.1.1
    Uninstalling setuptools-34.1.1:
      Successfully uninstalled setuptools-34.1.1
Successfully installed setuptools-28.8.0
$ .env/bin/python setup.py develop --upgrade
running develop
running egg_info
creating proj.egg-info
writing proj.egg-info/PKG-INFO
writing dependency_links to proj.egg-info/dependency_links.txt
writing requirements to proj.egg-info/requires.txt
writing top-level names to proj.egg-info/top_level.txt
writing manifest file 'proj.egg-info/SOURCES.txt'
reading manifest file 'proj.egg-info/SOURCES.txt'
writing manifest file 'proj.egg-info/SOURCES.txt'
running build_ext
Creating /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages/proj.egg-link (link to .)
Adding proj 1.0 to easy-install.pth file

Installed /Users/jaraco/Dropbox/code/main/setuptools/issue-967
Processing dependencies for proj==1.0
Searching for setuptools==34.1.1
Reading https://pypi.python.org/simple/setuptools/
Downloading https://pypi.python.org/packages/e2/51/3ea582a6d64dcd36858a10de31d43ca8ea0a3be5386dd0caf6503167cdfb/setuptools-34.1.1.zip#md5=a5582186dfd61820e6edc3aecde6f93c
Best match: setuptools 34.1.1
Processing setuptools-34.1.1.zip
Writing /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-mh5unfva/setuptools-34.1.1/setup.cfg
Running setuptools-34.1.1/setup.py -q bdist_egg --dist-dir /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-mh5unfva/setuptools-34.1.1/egg-dist-tmp-huo22qc5
warning: no files found matching '*' under directory 'setuptools/_vendor'
Copying setuptools-34.1.1-py3.6.egg to /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages
Adding setuptools 34.1.1 to easy-install.pth file
Installing easy_install script to /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/bin
Installing easy_install-3.6 script to /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/bin

Installed /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages/setuptools-34.1.1-py3.6.egg
Searching for appdirs==1.4.0
Reading https://pypi.python.org/simple/appdirs/
Downloading https://pypi.python.org/packages/bd/66/0a7f48a0f3fb1d3a4072bceb5bbd78b1a6de4d801fb7135578e7c7b1f563/appdirs-1.4.0.tar.gz#md5=1d17b4c9694ab84794e228f28dc3275b
Best match: appdirs 1.4.0
Processing appdirs-1.4.0.tar.gz
Writing /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-336xkg5e/appdirs-1.4.0/setup.cfg
Running appdirs-1.4.0/setup.py -q bdist_egg --dist-dir /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-336xkg5e/appdirs-1.4.0/egg-dist-tmp-y62a13kn
zip_safe flag not set; analyzing archive contents...
Copying appdirs-1.4.0-py3.6.egg to /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages
Adding appdirs 1.4.0 to easy-install.pth file

Installed /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages/appdirs-1.4.0-py3.6.egg
Searching for six==1.10.0
Reading https://pypi.python.org/simple/six/
Downloading https://pypi.python.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55
Best match: six 1.10.0
Processing six-1.10.0.tar.gz
Writing /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-750_dfv2/six-1.10.0/setup.cfg
Running six-1.10.0/setup.py -q bdist_egg --dist-dir /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-750_dfv2/six-1.10.0/egg-dist-tmp-cx1nwut7
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
__pycache__.six.cpython-36: module references __path__
creating /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages/six-1.10.0-py3.6.egg
Extracting six-1.10.0-py3.6.egg to /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages
Adding six 1.10.0 to easy-install.pth file

Installed /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages/six-1.10.0-py3.6.egg
Searching for packaging==16.8
Reading https://pypi.python.org/simple/packaging/
Downloading https://pypi.python.org/packages/c6/70/bb32913de251017e266c5114d0a645f262fb10ebc9bf6de894966d124e35/packaging-16.8.tar.gz#md5=53895cdca04ecff80b54128e475b5d3b
Best match: packaging 16.8
Processing packaging-16.8.tar.gz
Writing /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-_at9y0jd/packaging-16.8/setup.cfg
Running packaging-16.8/setup.py -q bdist_egg --dist-dir /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-_at9y0jd/packaging-16.8/egg-dist-tmp-y5zxlazy
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'dev-requirements.txt'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'tasks'
zip_safe flag not set; analyzing archive contents...
Copying packaging-16.8-py3.6.egg to /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages
Adding packaging 16.8 to easy-install.pth file

Installed /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages/packaging-16.8-py3.6.egg
Searching for pyparsing==2.1.10
Reading https://pypi.python.org/simple/pyparsing/
Downloading https://pypi.python.org/packages/38/bb/bf325351dd8ab6eb3c3b7c07c3978f38b2103e2ab48d59726916907cd6fb/pyparsing-2.1.10.tar.gz#md5=065908b92904e0d3634eb156f44cc80e
Best match: pyparsing 2.1.10
Processing pyparsing-2.1.10.tar.gz
Writing /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-yn_k9jt6/pyparsing-2.1.10/setup.cfg
Running pyparsing-2.1.10/setup.py -q bdist_egg --dist-dir /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-yn_k9jt6/pyparsing-2.1.10/egg-dist-tmp-6la7o4kj
zip_safe flag not set; analyzing archive contents...
Copying pyparsing-2.1.10-py3.6.egg to /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages
Adding pyparsing 2.1.10 to easy-install.pth file

Installed /Users/jaraco/Dropbox/code/main/setuptools/issue-967/.env/lib/python3.6/site-packages/pyparsing-2.1.10-py3.6.egg
Finished processing dependencies for proj==1.0
@kradan

This comment has been minimized.

kradan commented Feb 13, 2017

I was able to reproduce the issue for mediagoblin stable with python3. Can you please try with python2? Mediagoblin's audio plugin depends on scikits.audiolab which is not available for python3 (yet).

$  python --version
Python 2.7.13

$ python -m venv .env
/usr/bin/python: No module named venv

$ python3 -m venv .env
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/srv/mediagoblin.neu/.env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

# apt-get install python3-venv python-pip3

The following packages will be REMOVED:
  python-chardet-whl python-colorama-whl python-distlib-whl python-html5lib-whl python-requests-whl python-setuptools-whl python-six-whl python-urllib3-whl
The following NEW packages will be installed:
  libpython3-dev libpython3.5-dev python3-cffi-backend python3-crypto python3-cryptography python3-dev python3-idna python3-keyring python3-keyrings.alt python3-pip
  python3-pyasn1 python3-secretstorage python3-wheel python3.5-dev
The following packages will be upgraded:
  python-pip-whl

$ python3 -m venv .env
$ .env/bin/pip install setuptools==34.1.1
...
Successfully installed appdirs-1.4.0 packaging-16.8 pyparsing-2.1.10 setuptools-34.1.1 six-1.10.0
$ .env/bin/pip install setuptools==28.8.0
...
Successfully installed setuptools-28.8.0
$ .env/bin/python setup.py develop --upgrade
...
Finished processing dependencies for mediagoblin==1.0.dev0

Building mediagoblin stable with python3

mediagoblin.python3$ ./configure --with-python3 && make
checking for python3... python3
checking for virtualenv... virtualenv
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
...
Running Jinja2-2.9.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wxn5zhak/Jinja2-2.9.5/egg-dist-tmp-d4qa43gb                                                       
warning: no files found matching 'run-tests.py'                                                                                                                           
warning: no files found matching '*' under directory 'custom_fixers'                                                                                                      
warning: no files found matching '*' under directory 'jinja2/testsuite/res'                                                                                               
warning: no previously-included files matching '*' found under directory 'docs/_build'                                                                                    
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
  File "build/bdist.linux-i686/egg/jinja2/asyncsupport.py", line 35
    yield event
    ^
SyntaxError: 'yield' inside async function

  File "build/bdist.linux-i686/egg/jinja2/asyncfilters.py", line 24
    yield item
    ^
SyntaxError: 'yield' inside async function
                         
creating /srv/mediagoblin.python3/lib/python3.5/site-packages/Jinja2-2.9.5-py3.5.egg
Extracting Jinja2-2.9.5-py3.5.egg to /srv/mediagoblin.python3/lib/python3.5/site-packages                                                                               
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/Jinja2-2.9.5-py3.5.egg/jinja2/asyncsupport.py", line 35
    yield event
    ^
SyntaxError: 'yield' inside async function

  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/Jinja2-2.9.5-py3.5.egg/jinja2/asyncfilters.py", line 24
    yield item
    ^
SyntaxError: 'yield' inside async function

Adding Jinja2 2.9.5 to easy-install.pth file
...
Reading https://pypi.python.org/simple/setuptools/                                                                                                                        
Downloading https://pypi.python.org/packages/e2/51/3ea582a6d64dcd36858a10de31d43ca8ea0a3be5386dd0caf6503167cdfb/setuptools-34.1.1.zip#md5=a5582186dfd61820e6edc3aecde6f93c
Best match: setuptools 34.1.1                                                                                                                                             
Processing setuptools-34.1.1.zip                                                                                                                                          
Writing /tmp/easy_install-138qwhba/setuptools-34.1.1/setup.cfg                                                                                                            
Running setuptools-34.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-138qwhba/setuptools-34.1.1/egg-dist-tmp-mu75phm4                                             
Traceback (most recent call last):                                                                                                                                        
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/dist.py", line 165, in check_specifier
    packaging.specifiers.SpecifierSet(value)
AttributeError: module 'packaging' has no attribute 'specifiers'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 157, in save_modules
    yield saved
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 255, in run_setup                                                               
    DirectorySandbox(setup_dir).run(runner)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 285, in run
    return func()
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 253, in runner
    _execfile(setup_script, ns)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 47, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-138qwhba/setuptools-34.1.1/setup.py", line 191, in <module>
  File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/dist.py", line 320, in __init__
    _Distribution.__init__(self, attrs)
  File "/usr/lib/python3.5/distutils/dist.py", line 281, in __init__
    self.finalize_options()
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/dist.py", line 387, in finalize_options
    ep.load()(self, ep.name, value)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/dist.py", line 166, in check_specifier
    except packaging.specifiers.InvalidSpecifier as error:
AttributeError: module 'packaging' has no attribute 'specifiers'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 142, in <module>
    "Topic :: Internet :: WWW/HTTP :: Dynamic Content"
  File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/command/develop.py", line 36, in run
    self.install_for_development()
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/command/develop.py", line 150, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 757, in process_distribution
    self.easy_install(dist.as_requirement())
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 674, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 700, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 881, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1120, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1106, in run_setup
    run_setup(setup_script, args)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 258, in run_setup
    raise
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 169, in save_modules
    saved_exc.resume()
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 144, in resume
    six.reraise(type, exc, self._tb)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 157, in save_modules
    yield saved
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 198, in setup_context
    yield
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 255, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 285, in run
    return func()
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 253, in runner
    _execfile(setup_script, ns)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/sandbox.py", line 47, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-138qwhba/setuptools-34.1.1/setup.py", line 191, in <module>
  File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/dist.py", line 320, in __init__
    _Distribution.__init__(self, attrs)
  File "/usr/lib/python3.5/distutils/dist.py", line 281, in __init__
    self.finalize_options()
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/dist.py", line 387, in finalize_options
    ep.load()(self, ep.name, value)
  File "/srv/mediagoblin.python3/lib/python3.5/site-packages/setuptools/dist.py", line 166, in check_specifier
    except packaging.specifiers.InvalidSpecifier as error:
AttributeError: module 'packaging' has no attribute 'specifiers'
Makefile:123: recipe for target 'bin/python' failed
make: *** [bin/python] Error 1

For python3.4 I found a strange version conflict in Debian stretch between python-setuptools-whl and python-pip-whl. I report it although it may not be setuptool's fault.

# apt-get install python3.4-venv python3.4 libpython3.4-stdlib python-setuptools-whl libpython3.4-minimal python3.4-minimal python-pip-whl

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-pip-whl is already the newest version (9.0.1-2).
python-pip-whl set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-pip-whl : Breaks: python-setuptools-whl (< 20.1.1-1) but 5.5.1-1 is to be installed
E: Unable to correct problems, you have held broken packages.

# aptitude install python3.4-venv python3.4
The following NEW packages will be installed:
  libpython3.4-minimal{a} libpython3.4-stdlib{a} python-setuptools-whl{a}
  python3.4 python3.4-minimal{a} python3.4-venv
The following packages will be REMOVED:
  apg{u} gir1.2-mediaart-2.0{u} gir1.2-tracker-1.0{u}
  gstreamer0.10-plugins-base{u} icoutils{u} kate-data{u} katepart{u}
  kde-runtime-data{u} kdelibs-bin{u} kdelibs5-data{u} kdelibs5-plugins{u}
  kdoctools{u} libattica0.4{u} libb-hooks-endofscope-perl{u}
  libcairo-gobject-perl{u} libclass-method-modifiers-perl{u}
  libclass-xsaccessor-perl{u} libclone-perl{u} libconfig-any-perl{u}
  libconfig-tiny-perl{u} libcpanel-json-xs-perl{u} libcue1{u}
  libdata-optlist-perl{u} libdata-perl-perl{u} libdata-record-perl{u}
  libdbusmenu-qt2{u} libdevel-caller-perl{u} libdevel-globaldestruction-perl{u}
  libdevel-hide-perl{u} libdevel-lexalias-perl{u} libdlrestrictions1{u}
  libdmapsharing-3.0-2{u} libexporter-lite-perl{u} libextutils-depends-perl{u}
  libextutils-pkgconfig-perl{u} libfam0{u} libfile-configdir-perl{u}
  libfile-find-rule-perl{u} libfile-homedir-perl{u} libfile-which-perl{u}
  libgetopt-long-descriptive-perl{u} libgfbgraph-0.2-0{u}
  libglib-object-introspection-perl{u} libgnupg-interface-perl{u}
  libgom-1.0-0{u} libgom-1.0-common{u} libgsf-1-114{u} libgsf-1-common{u}
  libgstreamer-plugins-base0.10-0{u} libgstreamer0.10-0{u} libgtk3-perl{u}
  libimport-into-perl{u} libintl-perl{u} libintl-xs-perl{u}
  libio-stringy-perl{u} libiodbc2{u} libjson-maybexs-perl{u} libkactivities6{u}
  libkatepartinterfaces4{u} libkcmutils4{u} libkde3support4{u}
  libkdeclarative5{u} libkdecore5{u} libkdesu5{u} libkdeui5{u} libkdewebkit5{u}
  libkdnssd4{u} libkemoticons4{u} libkfile4{u} libkhtml5{u} libkio5{u}
  libkjsapi4{u} libkjsembed4{u} libkmediaplayer4{u} libknewstuff3-4{u}
  libknotifyconfig4{u} libkntlm4{u} libkparts4{u} libkpty4{u} libkrosscore4{u}
  libktexteditor4{u} libkxmlrpcclient4{u} libmediaart-2.0-0{u}
  libmodule-implementation-perl{u} libmodule-pluggable-perl{u}
  libmodule-runtime-perl{u} libmoo-perl{u} libmoox-configfromfile-perl{u}
  libmoox-file-configdir-perl{u} libmoox-handlesvia-perl{u}
  libmoox-late-perl{u} libmoox-options-perl{u} libnamespace-clean-perl{u}
  libnepomuk4{u} libnepomukquery4a{u} libnepomukutils4{u}
  libnet-dbus-glib-perl{u} libnl-route-3-200{u} libnm-gtk-common{u}
  libnma-common{u} libnss-myhostname{u} libntrack-qt4-1{u} libntrack0{u}
  libnumber-compare-perl{u} libosinfo-1.0-0{u} libpackage-stash-perl{u}
  libpackage-stash-xs-perl{u} libpadwalker-perl{u} libparams-classify-perl{u}
  libparams-util-perl{u} libparams-validate-perl{u} libpath-class-perl{u}
  libpath-tiny-perl{u} libplasma3{u} libpolkit-qt-1-1{u} libqca2{u}
  libqca2-plugins{u} libquvi-0.9-0.9.3{u} libquvi-scripts-0.9{u}
  librole-tiny-perl{u} librygel-core-2.6-2{u} librygel-db-2.6-2{u}
  librygel-renderer-2.6-2{u} librygel-server-2.6-2{u} libsolid4{u}
  libsoprano4{u} libstrictures-perl{u} libsub-exporter-perl{u}
  libsub-exporter-progressive-perl{u} libsub-identify-perl{u}
  libsub-install-perl{u} libsub-uplevel-perl{u} libterm-size-any-perl{u}
  libterm-size-perl-perl{u} libtext-glob-perl{u} libthreadweaver4{u}
  libtime-duration-parse-perl{u} libtime-duration-perl{u}
  libtotem-plparser-common{u} libtracker-miner-1.0-0{u} libtry-tiny-perl{u}
  libtype-tiny-perl{u} libtype-tiny-xs-perl{u} libtypes-path-tiny-perl{u}
  libunicode-utf8-perl{u} libvariable-magic-perl{u} libyaml-libyaml-perl{u}
  libzapojit-0.0-0{u} lua-bitop{u} lua-expat{u} lua-json{u} lua-lpeg{u}
  lua-socket{u} ntrack-module-libnl-0{u} osinfo-db{u} oxygen-icon-theme{u}
  plasma-scriptengine-javascript{u} python-jinja2{u} python-libturpial{u}
  python-markupsafe{u} python-webkit{u} python3-xdg{u} rygel{u}
  soprano-daemon{u} totem-common{u}
0 packages upgraded, 6 newly installed, 165 to remove and 62 not upgraded.
Need to get 6,100 kB of archives. After unpacking 148 MB will be freed.
The following packages have unmet dependencies:
 findutils : Breaks: libpython3.4-minimal (< 3.4.4-2) but 3.4.2-1 is to be installed
 **python-pip-whl : Breaks: python-setuptools-whl (< 20.1.1-1) but 5.5.1-1 is to be installed**
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libpython3.4-minimal [Not Installed]
2)     libpython3.4-stdlib [Not Installed]
3)     python-setuptools-whl [Not Installed]
4)     python3.4 [Not Installed]
5)     python3.4-minimal [Not Installed]
6)     python3.4-venv [Not Installed]

     Leave the following dependencies unresolved:
7)     python3.4-minimal recommends python3.4

Accept this solution? [Y/n/q/?] n

# apt-cache show python-pip-whl|grep Version
Version: 9.0.1-2
Version: 1.5.6-5

# apt-cache show python-setuptools-whl|grep Version
Version: 5.5.1-1

# apt-cache show python-setuptools|grep Version
Version: 33.1.1-1
Version: 5.5.1-1
Python-Version: 2.7

# apt-get install python-setuptools-whl=33.1.1-1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '33.1.1-1' for 'python-setuptools-whl' was not found

$cat /etc/apt/sources.list
deb tor://ftp.de.debian.org/debian/ stable main
deb tor://ftp.de.debian.org/debian/ stretch main contrib
deb tor://debug.mirrors.debian.org/debian-debug/ stretch-debug main

$ dpkg -l *python*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                               Version                                     Architecture Description
+++-==================================-===========================================-============-===============================================================================
ii  dh-python                          2.20170125                                  all          Debian helper tools for packaging Python libraries and applications
un  gimp-python                        <none>                                      <none>       (no description available)
un  hexchat-python                     <none>                                      <none>       (no description available)
un  hexchat-python2                    <none>                                      <none>       (no description available)
ii  hexchat-python3                    2.12.4-2                                    i386         Python 3 plugin for HexChat
un  libapache2-mod-python              <none>                                      <none>       (no description available)
un  libpeas-1.0-0-python3loader        <none>                                      <none>       (no description available)
ii  libpython-dev:i386                 2.7.13-2                                    i386         header files and a static library for Python (default)
ii  libpython-stdlib:i386              2.7.13-2                                    i386         interactive high-level object-oriented language (default python version)
ii  libpython2.7:i386                  2.7.13-2                                    i386         Shared Python runtime library (version 2.7)
ii  libpython2.7-dev:i386              2.7.13-2                                    i386         Header files and a static library for Python (v2.7)
ii  libpython2.7-minimal:i386          2.7.13-2                                    i386         Minimal subset of the Python language (version 2.7)
ii  libpython2.7-stdlib:i386           2.7.13-2                                    i386         Interactive high-level object-oriented language (standard library, version 2.7)
ii  libpython3-dev:i386                3.5.3-1                                     i386         header files and a static library for Python (default)
ii  libpython3-stdlib:i386             3.5.3-1                                     i386         interactive high-level object-oriented language (default python3 version)
rc  libpython3.4-minimal:i386          3.4.4-2                                     i386         Minimal subset of the Python language (version 3.4)
un  libpython3.4-stdlib                <none>                                      <none>       (no description available)
ii  libpython3.5:i386                  3.5.3-1                                     i386         Shared Python runtime library (version 3.5)
ii  libpython3.5-dev:i386              3.5.3-1                                     i386         Header files and a static library for Python (v3.5)
ii  libpython3.5-minimal:i386          3.5.3-1                                     i386         Minimal subset of the Python language (version 3.5)
ii  libpython3.5-stdlib:i386           3.5.3-1                                     i386         Interactive high-level object-oriented language (standard library, version 3.5)
ii  libreoffice-script-provider-python 1:5.2.5-1                                   all          Python script support provider for LibreOffice scripting framework
ii  python                             2.7.13-2                                    i386         interactive high-level object-oriented language (default version)
un  python-4suite                      <none>                                      <none>       (no description available)
un  python-all                         <none>                                      <none>       (no description available)
un  python-all-dbg                     <none>                                      <none>       (no description available)
un  python-all-dev                     <none>                                      <none>       (no description available)
ii  python-apt                         1.4.0~beta2                                 i386         Python interface to libapt-pkg
ii  python-apt-common                  1.4.0~beta2                                 all          Python interface to libapt-pkg (locales)
un  python-apt-dbg                     <none>                                      <none>       (no description available)
un  python-apt-doc                     <none>                                      <none>       (no description available)
un  python-aptdaemon                   <none>                                      <none>       (no description available)
un  python-argparse                    <none>                                      <none>       (no description available)
ii  python-attr                        16.3.0-1                                    all          Attributes without boilerplate (Python 2)
un  python-attr-doc                    <none>                                      <none>       (no description available)
ii  python-bs4                         4.5.3-1                                     all          error-tolerant HTML parser for Python
ii  python-cairo                       1.8.8-2.1                                   i386         Python bindings for the Cairo vector graphics library
un  python-cdd                         <none>                                      <none>       (no description available)
un  python-central                     <none>                                      <none>       (no description available)
un  python-cffi                        <none>                                      <none>       (no description available)
ii  python-cffi-backend                1.9.1-2                                     i386         Foreign Function Interface for Python calling C code - backend
un  python-cffi-backend-api-9729       <none>                                      <none>       (no description available)
un  python-cffi-backend-api-max        <none>                                      <none>       (no description available)
un  python-cffi-backend-api-min        <none>                                      <none>       (no description available)
ii  python-chardet                     2.3.0-2                                     all          universal character encoding detector for Python2
un  python-chardet-whl                 <none>                                      <none>       (no description available)
ii  python-click                       6.6-1                                       all          Simple wrapper around optparse for powerful command line utilities - Python 2.7
ii  python-colorama                    0.3.7-1                                     all          Cross-platform colored terminal text in Python - Python 2.x
un  python-colorama-whl                <none>                                      <none>       (no description available)
ii  python-constantly                  15.1.0-1                                    all          Symbolic constants in Python
ii  python-crypto                      2.6.1-7                                     i386         cryptographic algorithms and protocols for Python
un  python-crypto-dbg                  <none>                                      <none>       (no description available)
un  python-crypto-doc                  <none>                                      <none>       (no description available)
ii  python-cryptography                1.7.1-2                                     i386         Python library exposing cryptographic recipes and primitives (Python 2)
un  python-cryptography-doc            <none>                                      <none>       (no description available)
un  python-cryptography-vectors        <none>                                      <none>       (no description available)
un  python-ctypes                      <none>                                      <none>       (no description available)
un  python-cups                        <none>                                      <none>       (no description available)
rc  python-cupshelpers                 1.4.6-1                                     all          Python utility modules around the CUPS printing system
ii  python-daemon                      2.1.2-1                                     all          library for making a Unix daemon process — Python 2
ii  python-dateutil                    2.5.3-2                                     all          powerful extensions to the standard datetime module
un  python-dbg                         <none>                                      <none>       (no description available)
ii  python-dbus                        1.2.4-1                                     i386         simple interprocess messaging system (Python interface)
un  python-dbus-dbg                    <none>                                      <none>       (no description available)
un  python-dbus-doc                    <none>                                      <none>       (no description available)
un  python-deb822                      <none>                                      <none>       (no description available)
ii  python-debian                      0.1.30                                      all          Python modules to work with Debian-related data formats
ii  python-debianbts                   2.6.1                                       all          Python interface to Debian's Bug Tracking System
ii  python-decorator                   4.0.11-1                                    all          simplify usage of Python decorators by programmers
ii  python-dev                         2.7.13-2                                    i386         header files and a static library for Python (default)
ii  python-dirspec                     13.10-1                                     all          Python User Folders Specification Library
un  python-distlib-whl                 <none>                                      <none>       (no description available)
un  python-distribute                  <none>                                      <none>       (no description available)
ii  python-dnspython                   1.15.0-1                                    all          DNS toolkit for Python
un  python-doc                         <none>                                      <none>       (no description available)
ii  python-docopt                      0.6.2-1                                     all          command-line interface description language
ii  python-docutils                    0.13.1+dfsg-2                               all          text processing system for reStructuredText (implemented in Python 2)
un  python-dogtail                     <none>                                      <none>       (no description available)
ii  python-egenix-mxdatetime           3.2.9-1                                     i386         date and time handling routines for Python
un  python-egenix-mxdatetime-dbg       <none>                                      <none>       (no description available)
un  python-egenix-mxdatetime-doc       <none>                                      <none>       (no description available)
ii  python-egenix-mxtools              3.2.9-1                                     i386         collection of additional builtins for Python
un  python-egenix-mxtools-dbg          <none>                                      <none>       (no description available)
un  python-egenix-mxtools-doc          <none>                                      <none>       (no description available)
un  python-email                       <none>                                      <none>       (no description available)
un  python-enet                        <none>                                      <none>       (no description available)
un  python-enum                        <none>                                      <none>       (no description available)
ii  python-enum34                      1.1.6-1                                     all          backport of Python 3.4's enum package
un  python-enum34-doc                  <none>                                      <none>       (no description available)
un  python-epydoc                      <none>                                      <none>       (no description available)
un  python-examples                    <none>                                      <none>       (no description available)
un  python-f2py                        <none>                                      <none>       (no description available)
un  python-fife                        <none>                                      <none>       (no description available)
un  python-fiona                       <none>                                      <none>       (no description available)
ii  python-formencode                  1.3.0-1                                     all          validation and form generation Python package
un  python-fs                          <none>                                      <none>       (no description available)
ii  python-funcsigs                    1.0.2-3                                     all          function signatures from PEP362 - Python 2.7
un  python-funcsigs-doc                <none>                                      <none>       (no description available)
ii  python-functools32                 3.2.3.2-3                                   all          Backport of the functools module from Python 3.2.3 to Python 2.7
ii  python-gconf                       2.28.1+dfsg-1.2                             i386         Python bindings for the GConf configuration database system
un  python-gdata                       <none>                                      <none>       (no description available)
un  python-genshi                      <none>                                      <none>       (no description available)
ii  python-gi                          3.22.0-2                                    i386         Python 2.x bindings for gobject-introspection libraries
un  python-gi-cairo                    <none>                                      <none>       (no description available)
ii  python-glade2                      2.24.0-5.1                                  i386         GTK+ bindings: Glade support
ii  python-gnome2                      2.28.1+dfsg-1.2                             i386         Python bindings for the GNOME desktop environment
un  python-gnome2-doc                  <none>                                      <none>       (no description available)
un  python-gnomecanvas                 <none>                                      <none>       (no description available)
un  python-gnupg                       <none>                                      <none>       (no description available)
ii  python-gnupg-ng                    2.0.2-3+0~20151103152146.26+sid~1.gbp602dc5 all          Python wrapper for GnuPG
ii  python-gobject                     3.22.0-2                                    all          Python 2.x bindings for GObject - transitional package
ii  python-gobject-2                   2.28.6-13                                   i386         deprecated static Python bindings for the GObject library
un  python-gobject-2-dbg               <none>                                      <none>       (no description available)
ii  python-gobject-2-dev               2.28.6-13                                   all          development headers for the static GObject Python bindings
un  python-gobject-dev                 <none>                                      <none>       (no description available)
un  python-gpgme                       <none>                                      <none>       (no description available)
ii  python-gst-1.0                     1.10.2-1                                    i386         GStreamer GObject Introspection overrides for Python
ii  python-gtk2                        2.24.0-5.1                                  i386         Python bindings for the GTK+ widget set
ii  python-gtk2-dev                    2.24.0-5.1                                  all          GTK+ bindings: devel files
ii  python-gtk2-doc                    2.24.0-5.1                                  all          Python bindings for the GTK+ widget set - documentation
un  python-gtkglext1                   <none>                                      <none>       (no description available)
un  python-guiqwt                      <none>                                      <none>       (no description available)
un  python-healpy                      <none>                                      <none>       (no description available)
un  python-hsi                         <none>                                      <none>       (no description available)
ii  python-html5lib                    0.999999999-1                               all          HTML parser/tokenizer based on the WHATWG HTML5 specification
un  python-html5lib-whl                <none>                                      <none>       (no description available)
un  python-htseq                       <none>                                      <none>       (no description available)
ii  python-httplib2                    0.9.2+dfsg-1                                all          comprehensive HTTP client library written for Python
ii  python-idna                        2.2-1                                       all          Python IDNA2008 (RFC 5891) handling (Python 2)
ii  python-imaging                     4.0.0-4                                     all          Python Imaging Library compatibility layer
un  python-imaging-compat              <none>                                      <none>       (no description available)
un  python-importlib                   <none>                                      <none>       (no description available)
un  python-imposm                      <none>                                      <none>       (no description available)
ii  python-incremental                 16.10.1-3                                   all          Library for versioning Python projects.
ii  python-ipaddr                      2.1.11-2                                    all          Python module for working with IP addresses, both IPv4 and IPv6
ii  python-ipaddress                   1.0.17-1                                    all          Backport of Python 3 ipaddress module (Python 2)
ri  python-jinja2                      2.8-1                                       all          small but fast and easy to use stand-alone template engine
un  python-jinja2-doc                  <none>                                      <none>       (no description available)
un  python-jppy                        <none>                                      <none>       (no description available)
ii  python-jsonschema                  2.5.1-6                                     all          An(other) implementation of JSON Schema (Draft 3 and 4) - Python 2.7
un  python-kde4                        <none>                                      <none>       (no description available)
ii  python-keybinder                   0.3.1-1                                     i386         registers global key bindings for applications - Python bindings
un  python-keyczar                     <none>                                      <none>       (no description available)
ii  python-keyring                     10.1-1                                      all          store and access your passwords safely
ii  python-keyrings.alt                1.3-1                                       all          alternate backend implementations for python-keyring
ii  python-latexcodec                  1.0.3-4                                     all          LaTeX lexer and codec library for Python
ii  python-latexcodec-doc              1.0.3-4                                     all          LaTeX lexer and codec library for Python (docs)
ii  python-leap-common                 0.5.1+0~20160518155052.44+sid~1.gbpe05d61   all          Common Python files needed by LEAP projects
ri  python-libturpial                  1.7.0-3                                     all          Python library that handles multiple microblogging protocols
ii  python-libxml2                     2.9.4+dfsg1-2.2                             i386         Python bindings for the GNOME XML library
ii  python-lockfile                    1:0.12.2-2                                  all          file locking library for Python — Python 2 library
un  python-lockfile-doc                <none>                                      <none>       (no description available)
ii  python-logbook                     0.12.3-1                                    all          logging system for Python that replaces the standard library's module
un  python-logbook-doc                 <none>                                      <none>       (no description available)
ii  python-lxml                        3.7.1-1                                     i386         pythonic binding for the libxml2 and libxslt libraries
un  python-lxml-dbg                    <none>                                      <none>       (no description available)
un  python-lxml-doc                    <none>                                      <none>       (no description available)
un  python-mako-doc                    <none>                                      <none>       (no description available)
ri  python-markupsafe                  0.23-3                                      i386         HTML/XHTML/XML string library for Python
un  python-mini-buildd                 <none>                                      <none>       (no description available)
ii  python-minimal                     2.7.13-2                                    i386         minimal subset of the Python language (default version)
ii  python-mlt                         6.4.1-1                                     i386         multimedia framework (Python bindings)
un  python-mlt2                        <none>                                      <none>       (no description available)
un  python-mlt3                        <none>                                      <none>       (no description available)
un  python-mlt5                        <none>                                      <none>       (no description available)
ii  python-mock                        2.0.0-3                                     all          Mocking and Testing Library
un  python-mock-doc                    <none>                                      <none>       (no description available)
un  python-mysqldb                     <none>                                      <none>       (no description available)
un  python-nose                        <none>                                      <none>       (no description available)
ii  python-notify                      0.1.1-4                                     i386         Python bindings for libnotify
un  python-ntlm                        <none>                                      <none>       (no description available)
ii  python-numpy                       1:1.12.0-2                                  i386         Numerical Python adds a fast array facility to the Python language
un  python-numpy-abi9                  <none>                                      <none>       (no description available)
un  python-numpy-api10                 <none>                                      <none>       (no description available)
un  python-numpy-dbg                   <none>                                      <none>       (no description available)
un  python-numpy-dev                   <none>                                      <none>       (no description available)
un  python-numpy-doc                   <none>                                      <none>       (no description available)
ii  python-oauth                       1.0.1-5                                     all          Python library implementing of the OAuth protocol
un  python-odtwriter                   <none>                                      <none>       (no description available)
ii  python-openid                      2.2.5-6                                     all          OpenID support for servers and consumers
ii  python-openssl                     16.2.0-1                                    all          Python 2 wrapper around the OpenSSL library
un  python-openssl-dbg                 <none>                                      <none>       (no description available)
un  python-openssl-doc                 <none>                                      <none>       (no description available)
ii  python-pam                         0.4.2-13.2                                  i386         Python interface to the PAM library
un  python-parted                      <none>                                      <none>       (no description available)
ii  python-paste                       2.0.3+dfsg-4                                all          tools for using a Web Server Gateway Interface stack - Python 2.x
un  python-pastedeploy                 <none>                                      <none>       (no description available)
un  python-pastescript                 <none>                                      <none>       (no description available)
un  python-pastewebkit                 <none>                                      <none>       (no description available)
ii  python-pbr                         1.10.0-1                                    all          inject useful and sensible default behaviors into setuptools - Python 2.x
ii  python-pil:i386                    4.0.0-4                                     i386         Python Imaging Library (Pillow fork)
un  python-pil-dbg                     <none>                                      <none>       (no description available)
un  python-pil-doc                     <none>                                      <none>       (no description available)
un  python-pil.imagetk                 <none>                                      <none>       (no description available)
un  python-pillow                      <none>                                      <none>       (no description available)
ii  python-pip-whl                     9.0.1-2                                     all          Python package installer
ii  python-pkg-resources               33.1.1-1                                    all          Package Discovery and Resource Access using pkg_resources
un  python-profiler                    <none>                                      <none>       (no description available)
ii  python-psutil                      5.0.1-1                                     i386         module providing convenience functions for managing processes
un  python-psutil-doc                  <none>                                      <none>       (no description available)
ii  python-psycopg2                    2.6.2-1                                     i386         Python module for PostgreSQL
un  python-psycopg2-doc                <none>                                      <none>       (no description available)
ii  python-pyasn1                      0.1.9-2                                     all          ASN.1 library for Python (Python 2 module)
ii  python-pyasn1-modules              0.0.7-0.1                                   all          Collection of protocols modules written in ASN.1 language
un  python-pybabel                     <none>                                      <none>       (no description available)
ii  python-pycurl                      7.43.0-2                                    i386         Python bindings to libcurl
un  python-pycurl-dbg                  <none>                                      <none>       (no description available)
un  python-pycurl-doc                  <none>                                      <none>       (no description available)
ii  python-pygame                      1.9.1release+dfsg-10+b2                     i386         SDL bindings for games development in Python
ii  python-pygments                    2.2.0+dfsg-1                                all          syntax highlighting package written in Python
ii  python-pygoocanvas                 0.14.1-1.1                                  i386         GooCanvas Python bindings
un  python-pylons                      <none>                                      <none>       (no description available)
ii  python-pyorbit                     2.24.0-7.2                                  i386         A Python language binding for the ORBit2 CORBA implementation
ii  python-pyqt5                       5.7+dfsg-5                                  i386         Python 2 bindings for Qt5
un  python-pyqt5-dbg                   <none>                                      <none>       (no description available)
ii  python-pyqt5.qtmultimedia          5.7+dfsg-5                                  i386         Python 2 bindings for Qt5's Multimedia module
ii  python-pyqt5.qtsvg                 5.7+dfsg-5                                  i386         Python 2 bindings for Qt5's SVG module
ii  python-pyqt5.qtwebkit              5.7+dfsg-5                                  i386         Python 2 bindings for Qt5's WebKit module
ii  python-pyside                      1.2.2-2                                     all          Python bindings for Qt4 (big metapackage)
ii  python-pyside.phonon               1.2.2-2+b1                                  i386         Qt 4 Phonon module - Python bindings
ii  python-pyside.qtcore               1.2.2-2+b1                                  i386         Qt 4 core module - Python bindings
ii  python-pyside.qtdeclarative        1.2.2-2+b1                                  i386         Qt 4 Declarative module - Python bindings
ii  python-pyside.qtgui                1.2.2-2+b1                                  i386         Qt 4 GUI module - Python bindings
ii  python-pyside.qthelp               1.2.2-2+b1                                  i386         Qt 4 help module - Python bindings
ii  python-pyside.qtnetwork            1.2.2-2+b1                                  i386         Qt 4 network module - Python bindings
ii  python-pyside.qtopengl             1.2.2-2+b1                                  i386         Qt 4 OpenGL module - Python bindings
ii  python-pyside.qtscript             1.2.2-2+b1                                  i386         Qt 4 script module - Python bindings
ii  python-pyside.qtsql                1.2.2-2+b1                                  i386         Qt 4 SQL module - Python bindings
ii  python-pyside.qtsvg                1.2.2-2+b1                                  i386         Qt 4 SVG module - Python bindings
ii  python-pyside.qttest               1.2.2-2+b1                                  i386         Qt 4 test module - Python bindings
ii  python-pyside.qtuitools            1.2.2-2+b1                                  i386         Qt 4 UI tools module - Python bindings
ii  python-pyside.qtwebkit             1.2.2-2+b1                                  i386         Qt 4 WebKit module - Python bindings
ii  python-pyside.qtxml                1.2.2-2+b1                                  i386         Qt 4 XML module - Python bindings
ii  python-pysimplesoap                1.16-2                                      all          simple and lightweight SOAP Library (Python 2)
un  python-pysph                       <none>                                      <none>       (no description available)
un  python-qgis                        <none>                                      <none>       (no description available)
un  python-qscintilla                  <none>                                      <none>       (no description available)
un  python-qscintilla2                 <none>                                      <none>       (no description available)
un  python-qt3                         <none>                                      <none>       (no description available)
ii  python-qt4                         4.11.4+dfsg-2                               i386         Python bindings for Qt4
un  python-qt4-dbg                     <none>                                      <none>       (no description available)
un  python-qt4-dbus                    <none>                                      <none>       (no description available)
un  python-qt4-dev                     <none>                                      <none>       (no description available)
un  python-qt4-gl                      <none>                                      <none>       (no description available)
un  python-qt4-gl-dbg                  <none>                                      <none>       (no description available)
un  python-qt4-phonon                  <none>                                      <none>       (no description available)
un  python-qt4-phonon-dbg              <none>                                      <none>       (no description available)
un  python-qt4-sql                     <none>                                      <none>       (no description available)
un  python-qt4-sql-dbg                 <none>                                      <none>       (no description available)
ii  python-qtpy                        1.2.1-1                                     all          abtraction layer for PySide/PyQt4/PyQt5 (Python 2)
un  python-qwt3d-qt4                   <none>                                      <none>       (no description available)
un  python-qwt5-qt4                    <none>                                      <none>       (no description available)
un  python-rasterio                    <none>                                      <none>       (no description available)
ii  python-reportbug                   6.6.6                                       all          Python modules for interacting with bug tracking systems
ii  python-repoze.lru                  0.6-6                                       all          tiny LRU cache implementation and decorator
un  python-repoze.who                  <none>                                      <none>       (no description available)
ii  python-requests                    2.12.4-1                                    all          elegant and simple HTTP library for Python2, built for human beings
un  python-requests-whl                <none>                                      <none>       (no description available)
ii  python-roman                       2.0.0-2                                     all          module for generating/analyzing Roman numerals for Python 2
ii  python-routes                      2.3.1-2                                     all          Routing Recognition and Generation Tools
un  python-samba                       <none>                                      <none>       (no description available)
ii  python-scgi                        1.13-1.1                                    i386         Server-side implementation of the SCGI protocol
ii  python-scipy                       0.18.1-2                                    i386         scientific tools for Python
un  python-scipy-doc                   <none>                                      <none>       (no description available)
un  python-scour                       <none>                                      <none>       (no description available)
un  python-scrapy                      <none>                                      <none>       (no description available)
ii  python-scrypt                      0.6.1-5.1+b1                                i386         Python bindings for the scrypt key derivation function library
ii  python-secretstorage               2.3.1-2                                     all          Python module for storing secrets - Python 2.x version
un  python-secretstorage-doc           <none>                                      <none>       (no description available)
ii  python-serial                      3.2.1-1                                     all          pyserial - module encapsulating access for the serial port
ii  python-service-identity            16.0.0-2                                    all          Service identity verification for pyOpenSSL (Python 2 module)
ii  python-setuptools                  33.1.1-1                                    all          Python Distutils Enhancements
un  python-setuptools-doc              <none>                                      <none>       (no description available)
un  python-setuptools-whl              <none>                                      <none>       (no description available)
un  python-sfml                        <none>                                      <none>       (no description available)
ii  python-simplejson                  3.10.0-1                                    i386         simple, fast, extensible JSON encoder/decoder for Python 2.x
ii  python-sip                         4.18.1+dfsg-1                               i386         Python/C++ bindings generator runtime library
un  python-sip4                        <none>                                      <none>       (no description available)
un  python-sip4-dbg                    <none>                                      <none>       (no description available)
ii  python-six                         1.10.0-3                                    all          Python 2 and 3 compatibility library (Python 2 interface)
un  python-six-whl                     <none>                                      <none>       (no description available)
un  python-socks                       <none>                                      <none>       (no description available)
un  python-software-properties         <none>                                      <none>       (no description available)
un  python-sphinx                      <none>                                      <none>       (no description available)
ii  python-sqlcipher                   2.6.3.5+0~20151102222650.27+sid~1.gbp6d245f i386         DB-API 2.0 interface for SQLCIPHER 3.x
ii  python-srp                         1.0.4-2+0~20160226121927.20+sid~1.gbp459cc8 i386         Secure Remote Password protocol implementation
ii  python-support                     1.0.15                                      all          automated rebuilding support for Python modules
ii  python-talloc                      2.1.8-1                                     i386         hierarchical pool based memory allocator - Python bindings
ii  python-tempita                     0.5.2-1                                     all          very small text templating language
ii  python-tk                          2.7.13-1                                    i386         Tkinter - Writing Tk applications with Python
un  python-tk-dbg                      <none>                                      <none>       (no description available)
rc  python-twisted                     14.0.2-3                                    all          Event-based framework for internet applications (dependency package)
ii  python-twisted-bin:i386            16.6.0-2                                    i386         Event-based framework for internet applications
un  python-twisted-bin-dbg             <none>                                      <none>       (no description available)
ii  python-twisted-conch               1:16.6.0-2                                  all          twisted dummy package for Twisted SSH Implementation
ii  python-twisted-core                16.6.0-2                                    all          Event-based framework for internet applications
un  python-twisted-lore                <none>                                      <none>       (no description available)
ii  python-twisted-mail                16.6.0-2                                    all          twisted dummy package for SMTP, IMAP and POP protocol implementation
ii  python-twisted-names               16.6.0-2                                    all          twisted package for DNS protocol implementation
ii  python-twisted-news                16.6.0-2                                    all          twisted dummy package for NNTP protocol implementation
ii  python-twisted-runner              16.6.0-2                                    all          twisted dummy package for process management
un  python-twisted-runner-dbg          <none>                                      <none>       (no description available)
ii  python-twisted-web                 16.6.0-2                                    all          twisted dummy package for HTTP protocol implementation
ii  python-twisted-words               16.6.0-2                                    all          twisted dummy package for Chat and Instant Messaging
ii  python-txzmq                       0.7.4-1                                     all          ZeroMQ binding for the Twisted framework (Python2 version)
ii  python-u1db                        13.10-6.2                                   all          Ubuntu One structured data storage - Python API
un  python-uniconvertor                <none>                                      <none>       (no description available)
un  python-uno                         <none>                                      <none>       (no description available)
ii  python-urllib3                     1.19.1-1                                    all          HTTP library with thread-safe connection pooling for Python
un  python-urllib3-whl                 <none>                                      <none>       (no description available)
ii  python-urwid                       1.3.1-2+b1                                  i386         curses-based UI/widget library for Python 2
ii  python-virtualenv                  15.1.0+ds-1                                 all          Python virtual environment creator
ii  python-vte                         1:0.28.2-5+b1                               i386         Python bindings for the VTE widget set
ii  python-webencodings                0.5-2                                       all          Python implementation of the WHATWG Encoding standard
ri  python-webkit                      1.1.8-3.1                                   i386         WebKit/Gtk Python bindings
ii  python-webob                       1:1.6.2-2                                   all          Python module providing WSGI request and response objects (Python 2)
un  python-webob-doc                   <none>                                      <none>       (no description available)
ii  python-wheel                       0.29.0-2                                    all          built-package format for Python
ii  python-whoosh                      2.7.0-1                                     all          pure-Python full-text indexing, search, and spell checking library (Python 2)
un  python-whoosh-doc                  <none>                                      <none>       (no description available)
un  python-wsgiref                     <none>                                      <none>       (no description available)
un  python-wxgtk                       <none>                                      <none>       (no description available)
un  python-wxgtk3.0                    <none>                                      <none>       (no description available)
ii  python-xapian                      1.4.3-1                                     i386         Xapian search engine interface for Python
ii  python-xdg                         0.25-4                                      all          Python 2 library to access freedesktop.org standards
ii  python-yaml                        3.12-1                                      i386         YAML parser and emitter for Python
ii  python-zmq                         16.0.2-2                                    i386         Python bindings for 0MQ library
un  python-zope                        <none>                                      <none>       (no description available)
ii  python-zope.interface              4.3.2-1                                     i386         Interfaces for Python
ii  python-zope.proxy                  4.2.0-1                                     i386         Generic transparent proxies for Python
un  python-zopeinterface               <none>                                      <none>       (no description available)
un  python2.3-egenix-mxdatetime        <none>                                      <none>       (no description available)
un  python2.3-egenix-mxtools           <none>                                      <none>       (no description available)
un  python2.3-pam                      <none>                                      <none>       (no description available)
un  python2.3-pyorbit                  <none>                                      <none>       (no description available)
un  python2.3-tk                       <none>                                      <none>       (no description available)
un  python2.4-dbus                     <none>                                      <none>       (no description available)
un  python2.4-egenix-mxdatetime        <none>                                      <none>       (no description available)
un  python2.4-egenix-mxtools           <none>                                      <none>       (no description available)
un  python2.4-pam                      <none>                                      <none>       (no description available)
un  python2.4-pyorbit                  <none>                                      <none>       (no description available)
un  python2.4-tk                       <none>                                      <none>       (no description available)
un  python2.5-minimal                  <none>                                      <none>       (no description available)
un  python2.6                          <none>                                      <none>       (no description available)
un  python2.6-minimal                  <none>                                      <none>       (no description available)
ii  python2.7                          2.7.13-2                                    i386         Interactive high-level object-oriented language (version 2.7)
un  python2.7-apt                      <none>                                      <none>       (no description available)
un  python2.7-argparse                 <none>                                      <none>       (no description available)
un  python2.7-cairo                    <none>                                      <none>       (no description available)
un  python2.7-celementtree             <none>                                      <none>       (no description available)
un  python2.7-cjkcodecs                <none>                                      <none>       (no description available)
un  python2.7-crypto                   <none>                                      <none>       (no description available)
un  python2.7-ctypes                   <none>                                      <none>       (no description available)
un  python2.7-dbus                     <none>                                      <none>       (no description available)
un  python2.7-debianbts                <none>                                      <none>       (no description available)
ii  python2.7-dev                      2.7.13-2                                    i386         Header files and a static library for Python (v2.7)
un  python2.7-doc                      <none>                                      <none>       (no description available)
un  python2.7-elementtree              <none>                                      <none>       (no description available)
un  python2.7-gi                       <none>                                      <none>       (no description available)
un  python2.7-gnupg-ng                 <none>                                      <none>       (no description available)
un  python2.7-gobject                  <none>                                      <none>       (no description available)
un  python2.7-gobject-2                <none>                                      <none>       (no description available)
un  python2.7-incremental              <none>                                      <none>       (no description available)
un  python2.7-keybinder                <none>                                      <none>       (no description available)
un  python2.7-libxml2                  <none>                                      <none>       (no description available)
un  python2.7-lxml                     <none>                                      <none>       (no description available)
un  python2.7-markupsafe               <none>                                      <none>       (no description available)
ii  python2.7-minimal                  2.7.13-2                                    i386         Minimal subset of the Python language (version 2.7)
un  python2.7-mlt                      <none>                                      <none>       (no description available)
un  python2.7-notify                   <none>                                      <none>       (no description available)
un  python2.7-numpy                    <none>                                      <none>       (no description available)
un  python2.7-oauth                    <none>                                      <none>       (no description available)
un  python2.7-pam                      <none>                                      <none>       (no description available)
un  python2.7-pil                      <none>                                      <none>       (no description available)
un  python2.7-profiler                 <none>                                      <none>       (no description available)
un  python2.7-pygoocanvas              <none>                                      <none>       (no description available)
un  python2.7-pyorbit                  <none>                                      <none>       (no description available)
un  python2.7-pyside.phonon            <none>                                      <none>       (no description available)
un  python2.7-pyside.qtcore            <none>                                      <none>       (no description available)
un  python2.7-pyside.qtdeclarative     <none>                                      <none>       (no description available)
un  python2.7-pyside.qtgui             <none>                                      <none>       (no description available)
un  python2.7-pyside.qthelp            <none>                                      <none>       (no description available)
un  python2.7-pyside.qtnetwork         <none>                                      <none>       (no description available)
un  python2.7-pyside.qtopengl          <none>                                      <none>       (no description available)
un  python2.7-pyside.qtscript          <none>                                      <none>       (no description available)
un  python2.7-pyside.qtsql             <none>                                      <none>       (no description available)
un  python2.7-pyside.qtsvg             <none>                                      <none>       (no description available)
un  python2.7-pyside.qttest            <none>                                      <none>       (no description available)
un  python2.7-pyside.qtuitools         <none>                                      <none>       (no description available)
un  python2.7-pyside.qtwebkit          <none>                                      <none>       (no description available)
un  python2.7-pyside.qtxml             <none>                                      <none>       (no description available)
un  python2.7-scipy                    <none>                                      <none>       (no description available)
un  python2.7-simplejson               <none>                                      <none>       (no description available)
un  python2.7-talloc                   <none>                                      <none>       (no description available)
un  python2.7-tk                       <none>                                      <none>       (no description available)
un  python2.7-twisted                  <none>                                      <none>       (no description available)
un  python2.7-twisted-bin              <none>                                      <none>       (no description available)
un  python2.7-twisted-core             <none>                                      <none>       (no description available)
un  python2.7-urwid                    <none>                                      <none>       (no description available)
un  python2.7-wsgiref                  <none>                                      <none>       (no description available)
un  python2.7-xapian                   <none>                                      <none>       (no description available)
un  python2.7-zope.interface           <none>                                      <none>       (no description available)
ii  python3                            3.5.3-1                                     i386         interactive high-level object-oriented language (default python3 version)
un  python3-all                        <none>                                      <none>       (no description available)
un  python3-all-dbg                    <none>                                      <none>       (no description available)
un  python3-all-dev                    <none>                                      <none>       (no description available)
ii  python3-apt                        1.4.0~beta2                                 i386         Python 3 interface to libapt-pkg
un  python3-apt-dbg                    <none>                                      <none>       (no description available)
un  python3-beaker                     <none>                                      <none>       (no description available)
un  python3-brlapi                     <none>                                      <none>       (no description available)
ii  python3-cairo                      1.10.0+dfsg-5+b1                            i386         Python 3 bindings for the Cairo vector graphics library
un  python3-cffi                       <none>                                      <none>       (no description available)
ii  python3-cffi-backend               1.9.1-2                                     i386         Foreign Function Interface for Python 3 calling C code - runtime
un  python3-cffi-backend-api-9729      <none>                                      <none>       (no description available)
un  python3-cffi-backend-api-max       <none>                                      <none>       (no description available)
un  python3-cffi-backend-api-min       <none>                                      <none>       (no description available)
ii  python3-chardet                    2.3.0-2                                     all          universal character encoding detector for Python3
ii  python3-crypto                     2.6.1-7                                     i386         cryptographic algorithms and protocols for Python 3
un  python3-crypto-dbg                 <none>                                      <none>       (no description available)
ii  python3-cryptography               1.7.1-2                                     i386         Python library exposing cryptographic recipes and primitives (Python 3)
un  python3-cryptography-vectors       <none>                                      <none>       (no description available)
ii  python3-cups                       1.9.73-1                                    i386         Python3 bindings for CUPS
ii  python3-cupshelpers                1.5.7-2                                     all          Python utility modules around the CUPS printing system
un  python3-dbg                        <none>                                      <none>       (no description available)
ii  python3-dbus                       1.2.4-1                                     i386         simple interprocess messaging system (Python 3 interface)
un  python3-dbus-dbg                   <none>                                      <none>       (no description available)
ii  python3-debian                     0.1.30                                      all          Python 3 modules to work with Debian-related data formats
ii  python3-debianbts                  2.6.1                                       all          Python interface to Debian's Bug Tracking System
ii  python3-dev                        3.5.3-1                                     i386         header files and a static library for Python (default)
ii  python3-dirspec                    13.10-1                                     all          Python User Folders Specification Library
un  python3-doc                        <none>                                      <none>       (no description available)
ii  python3-docopt                     0.6.2-1                                     all          command-line interface description language (Python3)
un  python3-docutils                   <none>                                      <none>       (no description available)
un  python3-examples                   <none>                                      <none>       (no description available)
un  python3-fiona                      <none>                                      <none>       (no description available)
ii  python3-gi                         3.22.0-2                                    i386         Python 3 bindings for gobject-introspection libraries
ii  python3-gi-cairo                   3.22.0-2                                    i386         Python 3 Cairo bindings for the GObject library
un  python3-gtkspellcheck              <none>                                      <none>       (no description available)
ii  python3-httplib2                   0.9.2+dfsg-1                                all          comprehensive HTTP client library written for Python3
ii  python3-idna                       2.2-1                                       all          Python IDNA2008 (RFC 5891) handling (Python 3)
ii  python3-keyring                    10.1-1                                      all          store and access your passwords safely - Python 3 version of the package
ii  python3-keyrings.alt               1.3-1                                       all          alternate backend implementations for python3-keyring
ii  python3-latexcodec                 1.0.3-4                                     all          LaTeX lexer and codec library for Python3
un  python3-louis                      <none>                                      <none>       (no description available)
ii  python3-mako                       1.0.6+ds1-1                                 all          fast and lightweight templating for the Python 3 platform
ii  python3-markupsafe                 0.23-3                                      i386         HTML/XHTML/XML string library for Python 3
ii  python3-minimal                    3.5.3-1                                     i386         minimal subset of the Python language (default python3 version)
ii  python3-notify2                    0.3-3                                       all          desktop notifications API for Python 3
un  python3-openssl                    <none>                                      <none>       (no description available)
ii  python3-pip                        9.0.1-2                                     all          Python package installer
ii  python3-pkg-resources              33.1.1-1                                    all          Package Discovery and Resource Access using pkg_resources
ii  python3-pluggy                     0.4.0-1                                     all          plugin and hook calling mechanisms for Python
un  python3-profiler                   <none>                                      <none>       (no description available)
ii  python3-py                         1.4.32-3                                    all          Advanced Python development support library (Python 3)
ii  python3-pyasn1                     0.1.9-2                                     all          ASN.1 library for Python (Python 3 module)
ii  python3-pyatspi                    2.20.3+dfsg-1                               all          Assistive Technology Service Provider Interface - Python3 bindings
un  python3-pyatspi2                   <none>                                      <none>       (no description available)
ii  python3-pycurl                     7.43.0-2                                    i386         Python bindings to libcurl (Python 3)
un  python3-pycurl-dbg                 <none>                                      <none>       (no description available)
un  python3-pykde4                     <none>                                      <none>       (no description available)
ii  python3-pysimplesoap               1.16-2                                      all          simple and lightweight SOAP Library (Python 3)
un  python3-pytest                     <none>                                      <none>       (no description available)
ii  python3-reportbug                  7.1.4                                       all          Python modules for interacting with bug tracking systems
ii  python3-requests                   2.12.4-1                                    all          elegant and simple HTTP library for Python3, built for human beings
un  python3-scipy                      <none>                                      <none>       (no description available)
ii  python3-secretstorage              2.3.1-2                                     all          Python module for storing secrets - Python 3.x version
ii  python3-setuptools                 33.1.1-1                                    all          Python3 Distutils Enhancements
un  python3-sfml                       <none>                                      <none>       (no description available)
ii  python3-six                        1.10.0-3                                    all          Python 2 and 3 compatibility library (Python 3 interface)
ii  python3-smbc                       1.0.15.6-1                                  i386         Python 3 bindings for the Samba client library
un  python3-socks                      <none>                                      <none>       (no description available)
ii  python3-software-properties        0.96.20.2-1                                 all          manage the repositories that you install software from
un  python3-speechd                    <none>                                      <none>       (no description available)
un  python3-taglib                     <none>                                      <none>       (no description available)
un  python3-tk                         <none>                                      <none>       (no description available)
ii  python3-uno                        1:5.2.5-1                                   i386         Python-UNO bridge
ii  python3-urllib3                    1.19.1-1                                    all          HTTP library with thread-safe connection pooling for Python3
un  python3-urwid                      <none>                                      <none>       (no description available)
ii  python3-venv                       3.5.3-1                                     i386         pyvenv-3 binary for python3 (default python3 version)
ii  python3-virtualenv                 15.1.0+ds-1                                 all          Python virtual environment creator
ii  python3-wheel                      0.29.0-2                                    all          built-package format for Python
ri  python3-xdg                        0.25-4                                      all          Python 3 library to access freedesktop.org standards
un  python3.1                          <none>                                      <none>       (no description available)
un  python3.1-minimal                  <none>                                      <none>       (no description available)
un  python3.3-uno                      <none>                                      <none>       (no description available)
un  python3.4                          <none>                                      <none>       (no description available)
rc  python3.4-minimal                  3.4.4-2                                     i386         Minimal subset of the Python language (version 3.4)
ii  python3.5                          3.5.3-1                                     i386         Interactive high-level object-oriented language (version 3.5)
un  python3.5-apt                      <none>                                      <none>       (no description available)
un  python3.5-crypto                   <none>                                      <none>       (no description available)
un  python3.5-cups                     <none>                                      <none>       (no description available)
un  python3.5-dbus                     <none>                                      <none>       (no description available)
ii  python3.5-dev                      3.5.3-1                                     i386         Header files and a static library for Python (v3.5)
un  python3.5-doc                      <none>                                      <none>       (no description available)
ii  python3.5-minimal                  3.5.3-1                                     i386         Minimal subset of the Python language (version 3.5)
un  python3.5-smbc                     <none>                                      <none>       (no description available)
ii  python3.5-venv                     3.5.3-1                                     i386         Interactive high-level object-oriented language (pyvenv binary, version 3.5)

jaraco added a commit to jaraco/setuptools-issue-967 that referenced this issue Feb 14, 2017

@jaraco

This comment has been minimized.

Member

jaraco commented Feb 14, 2017

Using Python 2.7, I also fail to trigger the behavior. But here's something curious - even though I pass --upgrade, it's not attempting to upgrade setuptools. And in fact it's "searching for setuptools==28.8.0" which suggests to me that the dependency that was requiring setuptools may have pinned it.

In an attempt to replicate your environment more closely, I've created a test repository configured in Travis-CI to run your steps.

@jaraco

This comment has been minimized.

Member

jaraco commented Feb 14, 2017

In this build, I see mediagoblin installs just fine. I do notice it's installing setuptools==12.0.5, which may be the version that's made available by that version of virtualenv.

@jaraco

This comment has been minimized.

Member

jaraco commented Feb 14, 2017

At this point, I'm going to close this ticket, though I do welcome you to investigate further. If you can come up with some steps that will reliably reproduce a failure, that would be helpful. The more distilled and simple those steps, the better. Even better would be if you could investigate into the underlying cause in the code to identify what the flaw is. Specifically, why is specifiers not present in the packaging module, when we know it should be for packaging 16.8.

@jwodder

This comment has been minimized.

Contributor

jwodder commented Mar 14, 2017

I just ran into this bug, not when trying to upgrade setuptools, but when trying to test something out with the python_requires argument. Fortunately, I was able to create a minimal reproducible setup in Docker, building on the Ubuntu Xenial image. Building & running the attached image (regardless of whether PYTHON in run.sh is set to python2 or python3) will demonstrate python setup.py check failing with "AttributeError: module 'packaging' has no attribute 'specifiers'". If the python_requires line in setup.py is commented out, the check command completes successfully.

@kradan

This comment has been minimized.

kradan commented Mar 15, 2017

I ran the gist files in a local environment on debian stretch. AttributeError: module 'packaging' has no attribute 'specifiers' was raised as @jwodder said for python 3.5 and 2.7.13. Adding import packaging.specifiers to run.sh as @andvgal found out fixed it.

@andvgal

This comment has been minimized.

andvgal commented Mar 17, 2017

@jaraco Please take a look at #990
There is an obvious import bug in setuptools uncovered by latest Python runtime fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment