HTTP404 AFLOWDataRetrieval request


I`m having some troubles requesting information using the AFLOWDataRetrieval class, and have been using the unit-test at the github repository to reproduction.

This has resulted in the following error:
ERROR: test_get_data (main.AFLOWDataRetrievalTest)
Traceback (most recent call last):
File “”, line 14, in test_get_data
df = self.aflowdr.get_dataframe(
File “/home/oliver/.local/lib/python3.8/site-packages/matminer/data_retrieval/”, line 83, in get_dataframe
df = self._collect_requests(query, request_limit)
File “/home/oliver/.local/lib/python3.8/site-packages/matminer/data_retrieval/”, line 142, in _collect_requests
query._request(1, query.k)
File “/home/oliver/.local/lib/python3.8/site-packages/aflow/”, line 148, in _request
rawresp = urlopen(url).read().decode(“utf-8”)
File “/usr/lib/python3.8/urllib/”, line 222, in urlopen
return, data, timeout)
File “/usr/lib/python3.8/urllib/”, line 531, in open
response = meth(req, response)
File “/usr/lib/python3.8/urllib/”, line 640, in http_response
response = self.parent.error(
File “/usr/lib/python3.8/urllib/”, line 569, in error
return self._call_chain(*args)
File “/usr/lib/python3.8/urllib/”, line 502, in _call_chain
result = func(*args)
File “/usr/lib/python3.8/urllib/”, line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Ran 1 test in 0.648s

FAILED (errors=1)

-pip 20.0.2
-python 3.8
-matminer 0.6.4

Hi there,

Sorry for the late reply! This looks like we need to update the AFLOW code. I’ll add this to the current issues. In the meantime, if you have a fix for it, we would welcome a PR!


Thank you.
I am currently in the end game of a thesis and therefore did a workaround. When I have more time, I will investigate if my workaround can be provided as a fix. I’ll keep you posted.

Best regards,

1 Like