dutzi / tamper

Devtools extension, lets you locally edit files served from the web (based on mitmproxy).
http://dutzi.github.io/tamper
MIT License
394 stars 36 forks source link

can't install tamper #38

Open unifreak opened 8 years ago

unifreak commented 8 years ago

I'm using windows 7 64bit, python 2.7.11, here is the output when I'm trying to install tamper usisng pip install tamper:

C:\Python27\Scripts>pip install tamper
Collecting tamper
  Using cached tamper-0.24.5.tar.gz
Collecting gevent-websocket>=0.9.3 (from tamper)
  Using cached gevent-websocket-0.9.5.tar.gz
Collecting mitmproxy==0.11.1 (from tamper)
  Using cached mitmproxy-0.11.1.tar.gz
Collecting gevent (from gevent-websocket>=0.9.3->tamper)
  Using cached gevent-1.1.1.tar.gz
Collecting Flask>=0.10.1 (from mitmproxy==0.11.1->tamper)
  Using cached Flask-0.11.1-py2.py3-none-any.whl
Collecting pyasn1>0.1.2 (from mitmproxy==0.11.1->tamper)
  Using cached pyasn1-0.1.9-py2.py3-none-any.whl
Collecting tornado>=4.0.2 (from mitmproxy==0.11.1->tamper)
  Using cached tornado-4.3.tar.gz
Collecting sortedcontainers>=0.9.1 (from mitmproxy==0.11.1->tamper)
  Using cached sortedcontainers-1.5.3-py2.py3-none-any.whl
Collecting pyOpenSSL>=0.14 (from mitmproxy==0.11.1->tamper)
  Using cached pyOpenSSL-16.0.0-py2.py3-none-any.whl
Collecting netlib<0.12,>=0.11 (from mitmproxy==0.11.1->tamper)
  Using cached netlib-0.11.2.tar.gz
Collecting pydivert>=0.0.4 (from mitmproxy==0.11.1->tamper)
  Using cached pydivert-0.0.7.zip
Collecting greenlet>=0.4.9 (from gevent->gevent-websocket>=0.9.3->tamper)
  Using cached greenlet-0.4.10.zip
Collecting click>=2.0 (from Flask>=0.10.1->mitmproxy==0.11.1->tamper)
  Using cached click-6.6.tar.gz
Collecting itsdangerous>=0.21 (from Flask>=0.10.1->mitmproxy==0.11.1->tamper)
  Using cached itsdangerous-0.24.tar.gz
Collecting Werkzeug>=0.7 (from Flask>=0.10.1->mitmproxy==0.11.1->tamper)
  Using cached Werkzeug-0.11.10-py2.py3-none-any.whl
Collecting Jinja2>=2.4 (from Flask>=0.10.1->mitmproxy==0.11.1->tamper)
  Using cached Jinja2-2.8-py2.py3-none-any.whl
Collecting backports.ssl-match-hostname (from tornado>=4.0.2->mitmproxy==0.11.1-
>tamper)
  Using cached backports.ssl_match_hostname-3.5.0.1.tar.gz
Collecting singledispatch (from tornado>=4.0.2->mitmproxy==0.11.1->tamper)
  Using cached singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting certifi (from tornado>=4.0.2->mitmproxy==0.11.1->tamper)
  Using cached certifi-2016.2.28-py2.py3-none-any.whl
Collecting backports-abc>=0.4 (from tornado>=4.0.2->mitmproxy==0.11.1->tamper)
  Using cached backports_abc-0.4-py2.py3-none-any.whl
Collecting cryptography>=1.3 (from pyOpenSSL>=0.14->mitmproxy==0.11.1->tamper)
  Using cached cryptography-1.4.tar.gz
Collecting six>=1.5.2 (from pyOpenSSL>=0.14->mitmproxy==0.11.1->tamper)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting passlib>=1.6.2 (from netlib<0.12,>=0.11->mitmproxy==0.11.1->tamper)
  Using cached passlib-1.6.5-py2.py3-none-any.whl
Collecting MarkupSafe (from Jinja2>=2.4->Flask>=0.10.1->mitmproxy==0.11.1->tampe
r)
  Using cached MarkupSafe-0.23.tar.gz
Collecting idna>=2.0 (from cryptography>=1.3->pyOpenSSL>=0.14->mitmproxy==0.11.1
->tamper)
  Using cached idna-2.1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in c:
\python27\lib\site-packages (from cryptography>=1.3->pyOpenSSL>=0.14->mitmproxy=
=0.11.1->tamper)
Collecting enum34 (from cryptography>=1.3->pyOpenSSL>=0.14->mitmproxy==0.11.1->t
amper)
  Using cached enum34-1.1.6-py2-none-any.whl
Collecting ipaddress (from cryptography>=1.3->pyOpenSSL>=0.14->mitmproxy==0.11.1
->tamper)
  Using cached ipaddress-1.0.16-py27-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=1.3->pyOpenSSL>=0.14->mitmproxy==0.11
.1->tamper)
  Using cached cffi-1.6.0-cp27-none-win_amd64.whl
Collecting pycparser (from cffi>=1.4.1->cryptography>=1.3->pyOpenSSL>=0.14->mitm
proxy==0.11.1->tamper)
  Using cached pycparser-2.14.tar.gz
Installing collected packages: greenlet, gevent, gevent-websocket, click, itsdan
gerous, Werkzeug, MarkupSafe, Jinja2, Flask, pyasn1, backports.ssl-match-hostnam
e, six, singledispatch, certifi, backports-abc, tornado, sortedcontainers, idna,
 enum34, ipaddress, pycparser, cffi, cryptography, pyOpenSSL, passlib, netlib, p
ydivert, mitmproxy, tamper
  Running setup.py install for greenlet
  Running setup.py install for gevent
  Running setup.py install for gevent-websocket
  Running setup.py install for click
  Running setup.py install for itsdangerous
  Running setup.py install for MarkupSafe
  Running setup.py install for backports.ssl-match-hostname
  Running setup.py install for tornado
  Running setup.py install for pycparser
  Running setup.py install for cryptography
    Complete output from command c:\python27\python.exe -c "import setuptools, t
okenize;__file__='c:\\users\\fanghao\\appdata\\local\\temp\\pip-build-chi0wh\\cr
yptography\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).rea
d().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\fanghao
\appdata\local\temp\pip-uek9tl-record\install-record.txt --single-version-extern
ally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-2.7
    creating build\lib.win-amd64-2.7\cryptography
    copying src\cryptography\exceptions.py -> build\lib.win-amd64-2.7\cryptograp
hy
    copying src\cryptography\fernet.py -> build\lib.win-amd64-2.7\cryptography
    copying src\cryptography\utils.py -> build\lib.win-amd64-2.7\cryptography
    copying src\cryptography\__about__.py -> build\lib.win-amd64-2.7\cryptograph
y
    copying src\cryptography\__init__.py -> build\lib.win-amd64-2.7\cryptography

    creating build\lib.win-amd64-2.7\cryptography\hazmat
    copying src\cryptography\hazmat\__init__.py -> build\lib.win-amd64-2.7\crypt
ography\hazmat
    creating build\lib.win-amd64-2.7\cryptography\x509
    copying src\cryptography\x509\base.py -> build\lib.win-amd64-2.7\cryptograph
y\x509
    copying src\cryptography\x509\extensions.py -> build\lib.win-amd64-2.7\crypt
ography\x509
    copying src\cryptography\x509\general_name.py -> build\lib.win-amd64-2.7\cry
ptography\x509
    copying src\cryptography\x509\name.py -> build\lib.win-amd64-2.7\cryptograph
y\x509
    copying src\cryptography\x509\oid.py -> build\lib.win-amd64-2.7\cryptography
\x509
    copying src\cryptography\x509\__init__.py -> build\lib.win-amd64-2.7\cryptog
raphy\x509
    creating build\lib.win-amd64-2.7\cryptography\hazmat\backends
    copying src\cryptography\hazmat\backends\interfaces.py -> build\lib.win-amd6
4-2.7\cryptography\hazmat\backends
    copying src\cryptography\hazmat\backends\multibackend.py -> build\lib.win-am
d64-2.7\cryptography\hazmat\backends
    copying src\cryptography\hazmat\backends\__init__.py -> build\lib.win-amd64-
2.7\cryptography\hazmat\backends
    creating build\lib.win-amd64-2.7\cryptography\hazmat\bindings
    copying src\cryptography\hazmat\bindings\__init__.py -> build\lib.win-amd64-
2.7\cryptography\hazmat\bindings
    creating build\lib.win-amd64-2.7\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\cmac.py -> build\lib.win-amd64-2.
7\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\constant_time.py -> build\lib.win
-amd64-2.7\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\hashes.py -> build\lib.win-amd64-
2.7\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\hmac.py -> build\lib.win-amd64-2.
7\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\keywrap.py -> build\lib.win-amd64
-2.7\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\padding.py -> build\lib.win-amd64
-2.7\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\serialization.py -> build\lib.win
-amd64-2.7\cryptography\hazmat\primitives
    copying src\cryptography\hazmat\primitives\__init__.py -> build\lib.win-amd6
4-2.7\cryptography\hazmat\primitives
    creating build\lib.win-amd64-2.7\cryptography\hazmat\backends\commoncrypto
    copying src\cryptography\hazmat\backends\commoncrypto\backend.py -> build\li
b.win-amd64-2.7\cryptography\hazmat\backends\commoncrypto
    copying src\cryptography\hazmat\backends\commoncrypto\ciphers.py -> build\li
b.win-amd64-2.7\cryptography\hazmat\backends\commoncrypto
    copying src\cryptography\hazmat\backends\commoncrypto\hashes.py -> build\lib
.win-amd64-2.7\cryptography\hazmat\backends\commoncrypto
    copying src\cryptography\hazmat\backends\commoncrypto\hmac.py -> build\lib.w
in-amd64-2.7\cryptography\hazmat\backends\commoncrypto
    copying src\cryptography\hazmat\backends\commoncrypto\__init__.py -> build\l
ib.win-amd64-2.7\cryptography\hazmat\backends\commoncrypto
    creating build\lib.win-amd64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\backend.py -> build\lib.win
-amd64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\ciphers.py -> build\lib.win
-amd64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\cmac.py -> build\lib.win-am
d64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\decode_asn1.py -> build\lib
.win-amd64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\dsa.py -> build\lib.win-amd
64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\ec.py -> build\lib.win-amd6
4-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\encode_asn1.py -> build\lib
.win-amd64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\hashes.py -> build\lib.win-
amd64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\hmac.py -> build\lib.win-am
d64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\rsa.py -> build\lib.win-amd
64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\utils.py -> build\lib.win-a
md64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\x509.py -> build\lib.win-am
d64-2.7\cryptography\hazmat\backends\openssl
    copying src\cryptography\hazmat\backends\openssl\__init__.py -> build\lib.wi
n-amd64-2.7\cryptography\hazmat\backends\openssl
    creating build\lib.win-amd64-2.7\cryptography\hazmat\bindings\commoncrypto
    copying src\cryptography\hazmat\bindings\commoncrypto\binding.py -> build\li
b.win-amd64-2.7\cryptography\hazmat\bindings\commoncrypto
    copying src\cryptography\hazmat\bindings\commoncrypto\__init__.py -> build\l
ib.win-amd64-2.7\cryptography\hazmat\bindings\commoncrypto
    creating build\lib.win-amd64-2.7\cryptography\hazmat\bindings\openssl
    copying src\cryptography\hazmat\bindings\openssl\binding.py -> build\lib.win
-amd64-2.7\cryptography\hazmat\bindings\openssl
    copying src\cryptography\hazmat\bindings\openssl\_conditional.py -> build\li
b.win-amd64-2.7\cryptography\hazmat\bindings\openssl
    copying src\cryptography\hazmat\bindings\openssl\__init__.py -> build\lib.wi
n-amd64-2.7\cryptography\hazmat\bindings\openssl
    creating build\lib.win-amd64-2.7\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\dh.py -> build\lib.win
-amd64-2.7\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\dsa.py -> build\lib.wi
n-amd64-2.7\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\ec.py -> build\lib.win
-amd64-2.7\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\padding.py -> build\li
b.win-amd64-2.7\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\rsa.py -> build\lib.wi
n-amd64-2.7\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\utils.py -> build\lib.
win-amd64-2.7\cryptography\hazmat\primitives\asymmetric
    copying src\cryptography\hazmat\primitives\asymmetric\__init__.py -> build\l
ib.win-amd64-2.7\cryptography\hazmat\primitives\asymmetric
    creating build\lib.win-amd64-2.7\cryptography\hazmat\primitives\ciphers
    copying src\cryptography\hazmat\primitives\ciphers\algorithms.py -> build\li
b.win-amd64-2.7\cryptography\hazmat\primitives\ciphers
    copying src\cryptography\hazmat\primitives\ciphers\base.py -> build\lib.win-
amd64-2.7\cryptography\hazmat\primitives\ciphers
    copying src\cryptography\hazmat\primitives\ciphers\modes.py -> build\lib.win
-amd64-2.7\cryptography\hazmat\primitives\ciphers
    copying src\cryptography\hazmat\primitives\ciphers\__init__.py -> build\lib.
win-amd64-2.7\cryptography\hazmat\primitives\ciphers
    creating build\lib.win-amd64-2.7\cryptography\hazmat\primitives\interfaces
    copying src\cryptography\hazmat\primitives\interfaces\__init__.py -> build\l
ib.win-amd64-2.7\cryptography\hazmat\primitives\interfaces
    creating build\lib.win-amd64-2.7\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\concatkdf.py -> build\lib.win
-amd64-2.7\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\hkdf.py -> build\lib.win-amd6
4-2.7\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\kbkdf.py -> build\lib.win-amd
64-2.7\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\pbkdf2.py -> build\lib.win-am
d64-2.7\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\x963kdf.py -> build\lib.win-a
md64-2.7\cryptography\hazmat\primitives\kdf
    copying src\cryptography\hazmat\primitives\kdf\__init__.py -> build\lib.win-
amd64-2.7\cryptography\hazmat\primitives\kdf
    creating build\lib.win-amd64-2.7\cryptography\hazmat\primitives\twofactor
    copying src\cryptography\hazmat\primitives\twofactor\hotp.py -> build\lib.wi
n-amd64-2.7\cryptography\hazmat\primitives\twofactor
    copying src\cryptography\hazmat\primitives\twofactor\totp.py -> build\lib.wi
n-amd64-2.7\cryptography\hazmat\primitives\twofactor
    copying src\cryptography\hazmat\primitives\twofactor\utils.py -> build\lib.w
in-amd64-2.7\cryptography\hazmat\primitives\twofactor
    copying src\cryptography\hazmat\primitives\twofactor\__init__.py -> build\li
b.win-amd64-2.7\cryptography\hazmat\primitives\twofactor
    running egg_info
    writing requirements to src\cryptography.egg-info\requires.txt
    writing src\cryptography.egg-info\PKG-INFO
    writing top-level names to src\cryptography.egg-info\top_level.txt
    writing dependency_links to src\cryptography.egg-info\dependency_links.txt
    writing entry points to src\cryptography.egg-info\entry_points.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'src\cryptography.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs\_build'
    warning: no previously-included files matching '*' found under directory 've
ctors'
    writing manifest file 'src\cryptography.egg-info\SOURCES.txt'
    running build_ext
    generating cffi module 'build\\temp.win-amd64-2.7\\Release\\_padding.c'
    creating build\temp.win-amd64-2.7
    creating build\temp.win-amd64-2.7\Release
    generating cffi module 'build\\temp.win-amd64-2.7\\Release\\_constant_time.c
'
    generating cffi module 'build\\temp.win-amd64-2.7\\Release\\_openssl.c'
    building '_openssl' extension
    creating build\temp.win-amd64-2.7\Release\build
    creating build\temp.win-amd64-2.7\Release\build\temp.win-amd64-2.7
    creating build\temp.win-amd64-2.7\Release\build\temp.win-amd64-2.7\Release
    C:\Users\FangHao\AppData\Local\Programs\Common\Microsoft\Visual C++ for Pyth
on\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\python27\in
clude -Ic:\python27\PC /Tcbuild\temp.win-amd64-2.7\Release\_openssl.c /Fobuild\t
emp.win-amd64-2.7\Release\build\temp.win-amd64-2.7\Release\_openssl.obj
    _openssl.c
    build\temp.win-amd64-2.7\Release\_openssl.c(423) : fatal error C1083: Cannot
 open include file: 'openssl/opensslv.h': No such file or directory
    error: command 'C:\\Users\\FangHao\\AppData\\Local\\Programs\\Common\\Micros
oft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status
 2

    ----------------------------------------
Command "c:\python27\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\fanghao\\appdata\\local\\temp\\pip-build-chi0wh\\cryptography\\setup.py';ex
ec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'
), __file__, 'exec'))" install --record c:\users\fanghao\appdata\local\temp\pip-
uek9tl-record\install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in c:\users\fanghao\appdata\local\temp\pip-build-chi0wh
\cryptography
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
saalmaan commented 8 years ago

try this guide https://github.com/dutzi/tamper/wiki/Troubleshooting and see if it helps, its only been tested on OSX, see if it gives you any hints