Author Topic: Search (Materials Project) not work with legacy API in ATK 2019  (Read 2952 times)

0 Members and 1 Guest are viewing this topic.

Offline berlin

  • Heavy QuantumATK user
  • ***
  • Posts: 32
  • Country: cn
  • Reputation: 0
    • View Profile
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?

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5658
  • Country: dk
  • Reputation: 111
    • View Profile
    • QuantumATK at Synopsys
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.