[gpaw-users] GPAW installation through Homebrew on Mac OS X Mavericks
Ask Hjorth Larsen
asklarsen at gmail.com
Tue Apr 5 20:56:38 CEST 2016
Dear Vardha
2016-04-05 20:39 GMT+02:00 Varadharajan Srinivasan
<varadharajan.srinivasan at gmail.com>:
> Dear Ask,
>
> Thank you for your reply. I tried what you suggested and indeed it gave me
> the same error. Other https pages are able to open.
> But it seems from my gnaw-info output that the PAW-datasets have already
> been installed. In fact, I ran the gnaw-test and all tests passed. Does this
> imply a successful installation?
>
> At an earlier step I had run brew install
> https://svn.fysik.dtu.dk/projects/gpaw/trunk/doc/platforms/MacOSX/gpaw-setups.rb
>
> Could this have helped?
It appears that you have a working installation of GPAW then, but
something strange is wrong either with the server or your Python or
SSL. (The svn link is broken now that the source moved.)
Best regards
Ask
>
> Best,
> Vardha.
>
> On Tue, Apr 5, 2016 at 6:36 PM, Ask Hjorth Larsen <asklarsen at gmail.com>
> wrote:
>>
>> Dear Vardha
>>
>> 2016-04-01 21:27 GMT+02:00 Varadharajan Srinivasan via gpaw-users
>> <gpaw-users at listserv.fysik.dtu.dk>:
>> > Dear all,
>> >
>> > After trying in vain to fix the error on my Mavericks installation I
>> > tried
>> > to check if I could install GPAW on my MacbookPro which runs El Capitan.
>> > Everything went smoothly and I could install GPAW and ASE (using the
>> > home-brew instructions and virtualenvs). I ran gpaw info and it gave me
>> > the
>> > following :
>> >
>> > python-2.7.10 /Users/apple/Virtualenvs/gpaw-trunk/bin/python
>> > gpaw-1.0.1b1
>> > /Users/apple/Virtualenvs/gpaw-trunk/lib/python2.7/site-packages/gpaw/
>> > ase-3.10.0
>> > /Users/apple/Virtualenvs/gpaw-trunk/lib/python2.7/site-packages/ase/
>> > numpy-1.10.4 /usr/local/lib/python2.7/site-packages/numpy/
>> > scipy-0.17.0 /usr/local/lib/python2.7/site-packages/scipy/
>> > _gpaw
>> > /Users/apple/Virtualenvs/gpaw-trunk/lib/python2.7/site-packages/_gpaw.so
>> > parallel /Users/apple/Virtualenvs/gpaw-trunk/bin/gpaw-python
>> > FFTW no
>> > scalapack no
>> > libvdwxc no
>> > PAW-datasets /usr/local/share/gpaw-setups:
>> > /usr/share/gpaw-setups
>> >
>> > I tried running gpaw --verbose install-data and got the following
>> > error :
>> > Traceback (most recent call last):
>> > File "/Users/apple/Virtualenvs/gpaw-trunk/bin/gpaw", line 3, in
>> > <module>
>> > main()
>> > File
>> >
>> > "/Users/apple/Virtualenvs/gpaw-trunk/lib/python2.7/site-packages/gpaw/cli/main.py",
>> > line 75, in main
>> > func(*args, **kwargs)
>> > File
>> >
>> > "/Users/apple/Virtualenvs/gpaw-trunk/lib/python2.7/site-packages/gpaw/cli/install_data.py",
>> > line 73, in main
>> > urls = get_urls(opts.source)
>> > File
>> >
>> > "/Users/apple/Virtualenvs/gpaw-trunk/lib/python2.7/site-packages/gpaw/cli/install_data.py",
>> > line 215, in get_urls
>> > response = urllib2.urlopen(page)
>> > File
>> >
>> > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>> > line 154, in urlopen
>> > return opener.open(url, data, timeout)
>> > File
>> >
>> > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>> > line 431, in open
>> > response = self._open(req, data)
>> > File
>> >
>> > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>> > line 449, in _open
>> > '_open', req)
>> > File
>> >
>> > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>> > line 409, in _call_chain
>> > result = func(*args)
>> > File
>> >
>> > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>> > line 1240, in https_open
>> > context=self._context)
>> > File
>> >
>> > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>> > line 1197, in do_open
>> > raise URLError(err)
>> > urllib2.URLError: <urlopen error EOF occurred in violation of protocol
>> > (_ssl.c:590)>
>> >
>> > Has anybody faced this error? If so how do I fix it?
>> >
>> > Looking forward for some help.
>>
>> Please excuse the late reply.
>>
>> If you open Python and manually run:
>>
>> import urllib2
>>
>> urllib2.urlopen('https://wiki.fysik.dtu.dk/gpaw/_sources/setups/setups.txt')
>>
>> does this cause the same error? It is supposed to do exactly the same
>> thing, but without referring in any way to the installed GPAW, so
>> presumably the effect will be the same.
>>
>> In that case it would be an issue between Python (urllib2), ssl, and
>> the DTU/CAMD web server - as far as I can tell.
>>
>> If it yields the same error, can you find other https pages where urlopen
>> works?
>>
>> An alternative is always to install the setups manually.
>>
>> Best regards
>> Ask
>>
>>
>>
>> >
>> > Best,
>> > Vardha.
>> >
>
>
More information about the gpaw-users
mailing list