Skip to content

'MPRester' object has no attribute 'search' #2923

Closed Answered by janosh
binaynayak asked this question in Q&A
Discussion options

You must be logged in to vote

The filter syntax you're using is Mongo-style which is only supported by the old MPRester in which case the method you want to use is query, not search. However, you're using a new API key which is not compatible with the old MPRester. If you have an old API key, use that and change search to query.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@binaynayak
Comment options

@janosh
Comment options

Answer selected by janosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2921 on March 30, 2023 18:44.