Closed jasbneal closed 10 months ago
(note for PC dev team):
change:
class UniProtWithExpBackoff(UniProt):
"""
Specialize the UniProt class to set the MAX_RETRIES to be a DefaultExpBackoffRetry
object.
"""
def __init__(self, *args, **kwargs):
u = super().__init__(*args, **kwargs)
u.services.settings.MAX_RETRIES = DefaultExpBackoffRetry()
to:
class UniProtWithExpBackoff(UniProt):
"""
Specialize the UniProt class to set the MAX_RETRIES to be a DefaultExpBackoffRetry
object.
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.services.settings.MAX_RETRIES = DefaultExpBackoffRetry()
This should be resolved as of the most recent release.
I'm trying to pull down the hCG beta subunit protein via UniProt accession number and keep running into an AttributeError. I've tried the command
python ProteinCartography/fetch_accession.py -a P0DN86 -o input -f fasta pdb
and receive the following error:I looked at line 59 of the api_utils.py file and
u.services.settings.MAX_RETRIES = DefaultExpBackoffRetry()
seems to be the issue. Is this a problem with bioservices or am I doing something completely wrong? I also checked to make sure that bioservices is included in the cartography_tindy conda environment.