JHUISI / charm

Charm: A Framework for Rapidly Prototyping Cryptosystems
http://charm-crypto.io
GNU Lesser General Public License v3.0
541 stars 166 forks source link

error in using the make command on ubuntu 20.04 #261

Open chaima99 opened 3 years ago

chaima99 commented 3 years ago

'm trying to install Charm library in python 3.8, but when I use the make command this error occurs, does anyone know how to solve this problem?


ubuntu@ubuntu-VirtualBox:~/Charm-Crypto-0.43$ make
Setup build/staging directories
set -x
set +x
Building the Charm Framework
/usr/bin/python distribute_setup.py
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.42.tar.gz
Traceback (most recent call last):
  File "distribute_setup.py", line 497, in <module>
    main(sys.argv[1:])
  File "distribute_setup.py", line 492, in main
    tarball = download_setuptools()
  File "distribute_setup.py", line 193, in download_setuptools
    src = urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: SSL is required
make: *** [Makefile:28: all] Error 1
lrusso96 commented 3 years ago

Hi @chaima99, this is due to the following URL https://github.com/JHUISI/charm/blob/acb55513b244bfdebbfe715cec7b564c8e850779/distribute_setup.py#L50 that uses http rather than https protocol.