http error 403 ssl is required install matplotlib

Asked by Mustafa Ashry

Dear Benjamin,

I installed ma5_v1.6 and when I'm trying to install matpltlib within it I obtain the follwoing error
MA5-ERROR: impossible to build the project. For more details, see the log file:
MA5-ERROR: /home/mashry/hep/madanalysis5/tools/matplotlib/compilation.log
MA5: Installation NOT complete.

The content of the compilation.log is

Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
Traceback (most recent call last):
  File "setup.py", line 10, in <module>
    use_setuptools()
  File "/tmp/mashry/MA5_matplotlib/matplotlib-1.3.1/distribute_setup.py", line 163, in use_setuptools
    return _do_download(version, download_base, to_dir, download_delay)
  File "/tmp/mashry/MA5_matplotlib/matplotlib-1.3.1/distribute_setup.py", line 132, in _do_download
    to_dir, download_delay)
  File "/tmp/mashry/MA5_matplotlib/matplotlib-1.3.1/distribute_setup.py", line 212, 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

Your help is appreciated

Mustafa

Question information

Language:
English Edit question
Status:
Answered
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi Mustafa,

Please try with v1.7 (that should be released tomorrow but already available from launchpad,
  https://code.launchpad.net/~ma5dev/madanalysis5/v1.7beta

Cheers,

Benjamin

> On 11 Feb 2019, at 13:47 , Mustafa Ashry <email address hidden> wrote:
>
> New question #678476 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/678476
>
> Dear Benjamin,
>
> I installed ma5_v1.6 and when I'm trying to install matpltlib within it I obtain the follwoing error
> MA5-ERROR: impossible to build the project. For more details, see the log file:
> MA5-ERROR: /home/mashry/hep/madanalysis5/tools/matplotlib/compilation.log
> MA5: Installation NOT complete.
>
> The content of the compilation.log is
>
> Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz
> Traceback (most recent call last):
> File "setup.py", line 10, in <module>
> use_setuptools()
> File "/tmp/mashry/MA5_matplotlib/matplotlib-1.3.1/distribute_setup.py", line 163, in use_setuptools
> return _do_download(version, download_base, to_dir, download_delay)
> File "/tmp/mashry/MA5_matplotlib/matplotlib-1.3.1/distribute_setup.py", line 132, in _do_download
> to_dir, download_delay)
> File "/tmp/mashry/MA5_matplotlib/matplotlib-1.3.1/distribute_setup.py", line 212, 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
>
> Your help is appreciated
>
> Mustafa
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Mustafa Ashry (mashry) said :
#2

Hello Benjamin,

Thank you for the prompt reply. I tried both ma5v1.7.alpha and ma5_v1.7.tmp but, unfortunately, they both give the same eroor as before.

I looked for a possible solution and I knew that I should change http: to https: (i.e., to add s) in the file
/tmp/mashry/MA5_matplotlib/matplotlib-1.3.1/distribute_setup.py

I found the file and editted it, but once I try to reinstall matplotlib again from ma5, it delete the file and reproduce it again with the old format.

Any suggestion?

Mustafa

Revision history for this message
Benjamin Fuks (fuks) said :
#3

Hi Mustafa,

Please try to install matplotlib externally and see whether it works.

Cheers,

B>

> On 11 Feb 2019, at 16:09 , Mustafa Ashry <email address hidden> wrote:
>
> Question #678476 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/678476
>
> Status: Answered => Open
>
> Mustafa Ashry is still having a problem:
> Hello Benjamin,
>
> Thank you for the prompt reply. I tried both ma5v1.7.alpha and
> ma5_v1.7.tmp but, unfortunately, they both give the same eroor as
> before.
>
> I looked for a possible solution and I knew that I should change http: to https: (i.e., to add s) in the file
> /tmp/mashry/MA5_matplotlib/matplotlib-1.3.1/distribute_setup.py
>
> I found the file and editted it, but once I try to reinstall matplotlib
> again from ma5, it delete the file and reproduce it again with the old
> format.
>
> Any suggestion?
>
> Mustafa
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Can you help with this problem?

Provide an answer of your own, or ask Mustafa Ashry for more information if necessary.

To post a message you must log in.