[lsst-dm-stack-users] "Problem building stack on Ubuntu Raring Ringtail"

Paul Price price at astro.princeton.edu
Fri Nov 15 18:18:51 PST 2013


The forum appears to be down, so I'm answering you directly.

setuptools 0.6c11 is ancient, and I hope our use of it will be replaced soon (I've just e-mailed the current release manager).

In the mean time, there should be no reason why you need to use an LSST python instead of your system python.  I'm assuming eups is already set up (by the newinstall.sh script).  Try this:

Put in your ~/.eups/manifest.remap file:

python:2.7.3+1    system

Then to create the package:

mkdir -p $(eups path)/$(eups flavor)/python/system/ups
cd $(eups path)/$(eups flavor)/python/system/ups
wget http://sw.lsstcorp.org/pkgs/external/python/2.7.3/python.cfg
wget http://sw.lsstcorp.org/pkgs/external/python/2.7.3/python.table
eups declare python system -r $(eups path)/$(eups flavor)/python/system/


Once that's done, I hope you can just do:

eups distrib install -t v7_2 lsst_distrib

and it will install everything else.

Oh, since you're on an Ubuntu machine, check that you've done:

export LDFLAGS+=" -Wl,--no-as-needed"
SCONSFLAGS+=" LINKFLAGS='-Wl,--no-as-needed' --setenv"

P.



On Nov 15, 2013, at 6:57 PM, hsc at hsca.ipmu.jp wrote:

> 
> fjammes posted a question.
> Question : Problem building stack on Ubuntu Raring Ringtail
> 
> bash newinstall
> fails while installing python.
> 
> Here the sub-command which fails :
> 
> /opt/lsst/Linux64/external/python/2.7.3+1/bin/python ez_setup.py
> Actually it seems that http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg redirect to an https url (using curl confirms that), and that /opt/lsst/Linux64/external/python/2.7.3+1/bin/python doesn't have ssl support.
> 
> May somebody help ?
> 
> Here's the error message in log file
> 
> cat /opt/lsst/EupsBuildDir/Linux64/python-2.7.3+1/Python-2.7.3/build.log
> ...
> installing ez_setup.py...
> /opt/lsst/Linux64/external/python/2.7.3+1/bin/python ez_setup.py
> Downloading <a href="http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg">http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg</a>
> Traceback (most recent call last):
>   File "ez_setup.py", line 278, in <module>
>     main(sys.argv[1:])
>   File "ez_setup.py", line 210, in main
>     egg = download_setuptools(version, delay=0)
>   File "ez_setup.py", line 158, in download_setuptools
>     src = urllib2.urlopen(url)
>   File "/opt/lsst/Linux64/external/python/2.7.3+1/lib/python2.7/urllib2.py", line 126, in urlopen
>     return _opener.open(url, data, timeout)
>   File "/opt/lsst/Linux64/external/python/2.7.3+1/lib/python2.7/urllib2.py", line 406, in open
>     response = meth(req, response)
>   File "/opt/lsst/Linux64/external/python/2.7.3+1/lib/python2.7/urllib2.py", line 519, in http_response
>     'http', request, response, code, msg, hdrs)
>   File "/opt/lsst/Linux64/external/python/2.7.3+1/lib/python2.7/urllib2.py", line 438, in error
>     result = self._call_chain(*args)
>   File "/opt/lsst/Linux64/external/python/2.7.3+1/lib/python2.7/urllib2.py", line 378, in _call_chain
>     result = func(*args)
>   File "/opt/lsst/Linux64/external/python/2.7.3+1/lib/python2.7/urllib2.py", line 625, in http_error_302
>     return self.parent.open(new, timeout=req.timeout)
>   File "/opt/lsst/Linux64/external/python/2.7.3+1/lib/python2.7/urllib2.py", line 400, in open
>     response = self._open(req, data)
>   File "/opt/lsst/Linux64/external/python/2.7.3+1/lib/python2.7/urllib2.py", line 423, in _open
>     'unknown_open', req)
>   File "/opt/lsst/Linux64/external/python/2.7.3+1/lib/python2.7/urllib2.py", line 378, in _call_chain
>     result = func(*args)
>   File "/opt/lsst/Linux64/external/python/2.7.3+1/lib/python2.7/urllib2.py", line 1240, in unknown_open
>     raise URLError('unknown url type: %s' % type)
> urllib2.URLError: <urlopen error unknown url type: https>
> To change freqency and content of these alerts, please visit your user profile.
> 
> If you believe that this message was sent in an error, please email about it the forum administrator at steven.bickerton at gmail.com.
> 
> Sincerely,
> Administrator
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listserv.lsstcorp.org/pipermail/dm-users/attachments/20131115/61db3942/attachment.html>


More information about the dm-users mailing list