QuantumATK Forum

QuantumATK => General Questions and Answers => Topic started by: berlin on April 3, 2025, 13:56

Title: Search (Materials Project) not work with legacy API in ATK 2019
Post by: berlin on April 3, 2025, 13:56
I am using ATK 2019, 

Recently, I found that using the Materials Project plugin is causing error:
Quote
REST query returned with error status code 403. Content: b' {"error“:  "You are trying to use the deprecated legacy API. Flease read our documentati on (https://docs.materialsproject.org) and upgrade to the latest version of the mp-api client (https//pypi.org/project/mp-api/),"version”: "blocked"}'

How can I update this plugin? note that it is Unable to obtain a list of available add-ons now for ATK 2019 .:
Quote
The exception message:
HTTPConnectionPool(host='repository.quantumwise.com', port=80): Max retries exceeded with url: /2019.03/manifest.json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x0000022D7ADE1828>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))

Is there a way to download the updated ZIP file and update it manually?
Title: Re: Search (Materials Project) not work with legacy API in ATK 2019
Post by: Anders Blom on April 23, 2025, 22:25
This old version is no longer supported, and I would strongly recommend updating to a new version which gives many other benefits.

You could try to edit the plugin yourself to switch from legacy to the new API; the plugin is open sourced and located in lib\site-packages\AddOns\MaterialsProjectDatabase.