web-push-libs / encrypted-content-encoding

A simple implementation of the encrypted content-encoding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip install issue

mwent-cray opened this issue · comments

Hi I'm having an issue installing this package:

❯ pip install --user http_ece
Collecting http_ece
  Using cached http_ece-1.0.1.tar.gz
    Complete output from command python setup.py egg_info:
    error in http_ece setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers

    ----------------------------------------

Any clue why this is happening?

Issue seems to be that:

install_requires=[
        'cryptography~=1.9',
    ],

Where the ~= isn't handled properly, and works with >=

~= 1.9 # Compatible release. Same as >= 1.9, == 1.*

I'm not sure what is going on here. I have an ancient version of pip on one of my machines (7.1.2) and it understands the ~= well enough.

Turns out to be a different issue. It is Mac OS X related...
Apparently Mac OS X runs a different SSL library than needed (needed is OpenSSL)
Turns out that http_ece tries to install it's own version (1.8 if I'm not mistaken) of cryptography.
Cryptography needs to be compiled and for that version needs openssl to be available on the system.

Managed to fix this issue by manually installing openssl on mac os x
brew install openssl
https://github.com/pyca/cryptography/issues/2692#issuecomment-272773481