question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip install raven 6.2.0 is missing contextlib2

See original GitHub issue

We are getting the following error on our jenkins :

[snip]
raven/__init__.py:54: in <module>
    from raven.base import * 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    """
    
    from __future__ import absolute_import
    
    import zlib
    import logging
    import os
    import sys
    import time
    import uuid
    import warnings
    
    from datetime import datetime
    from inspect import isclass
    from random import Random
    from types import FunctionType
    from threading import local
    
    if sys.version_info >= (3, 2):
        import contextlib
    else:
>       import contextlib2 as contextlib
E       ImportError: No module named contextlib2

it seems to have appeared since the release of 6.2.0.

pip install raven in a clean virtualenv doesn’t seem to be pulling contextlib2…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kdeldyckecommented, Sep 22, 2017

I guess the package shouldn’t be declared as a universal wheel, because dependencies are computed dynamically.

Maybe you should use extra Python requirements, with a “marker” as in: https://github.com/kdeldycke/meta-package-manager/blob/v2.6.0/setup.py#L49

2reactions
superseedcommented, Sep 22, 2017

It seems like it’s a problem with the way the wheel is built:

$ pip install --no-binary :all: raven
Collecting raven
  Using cached raven-6.2.0.tar.gz
Collecting contextlib2 (from raven)
  Using cached contextlib2-0.5.5.tar.gz
Skipping bdist_wheel for raven, due to binaries being disabled for it.
Skipping bdist_wheel for contextlib2, due to binaries being disabled for it.
Installing collected packages: contextlib2, raven
  Running setup.py install for contextlib2 ... done
  Running setup.py install for raven ... done
Successfully installed contextlib2-0.5.5 raven-6.2.0
$ pip install raven
Collecting raven
  Using cached raven-6.2.0-py2.py3-none-any.whl
Installing collected packages: raven
Successfully installed raven-6.2.0
Read more comments on GitHub >

github_iconTop Results From Across the Web

raven · PyPI
Raven is a Python client for Sentry. It provides full out-of-the-box support for many of the popular frameworks, including Django, Flask, and Pylons....
Read more >
Cellprofiler 3.1.9 on Ubuntu 18.04 LTS - Image.sc Forum
So I am trying to install Cellprofiler 3.1.9 on Ubuntu 18.04 (as the title might have hinted) so I can use the generated...
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. It is automatically generated based on the packages in this Spack version....
Read more >
Index of /pub/archive/epel/6/x86_64/Packages/p - Fedora
perl-Inline-Python-0.49-3.el6.x86_64.rpm 2015-06-26 12:45 52K [ ] ... perl-Sysadm-Install-0.36-1.el6.noarch.rpm 2011-05-02 17:18 34K [ ] ...
Read more >
Open Source Used In Stealthwatch Enterprise (official) 7.3.2
1.212 libsub-install-perl 0.928-1 ... 1.2246 objectweb-asm 6.2.0 ... No license file was found, but licenses were detected in source scan.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found